fail to change width of a dropdown Control
I create a dropdown controll and try to create it with this code
Quote:
Quote:
Quote:
Can anyone help me out, please. |
Most control functions expect the object as first parameter.
So either obj.SetWidth(obj, 100) or obj:SetWidth(100) |
The template you are using, "ZO_Options_Dropdown" is not the dropdown control itself. It is a wrapper control that contains a label and a dropdown box laid out horizontally.
You need to get the actual dropdown control from your wrapper control. I suggest you use "/zgoo mycontrolname" to look through the children of the wrapper control and figure out exactly what you need to extract. Also, as a side-note you should probably use ZO_ComboBox instead since it doesn't have the unnecessary label, but I still think you'd need to extract the dropdown from it in the same way. |
Now i take the ZO_ComboBox and all work fine. Thanks
|
All times are GMT -6. The time now is 03:39 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI