PDA

View Full Version : Dialog UI items: width, Height, etc...


galagast
03-26-2005, 11:08 AM
I was wondering... why cant I get/set the width or height (and maybe some other values) of a UI item in the dialog such as a button or an activeX item? (the only parameters that i can access are the common UI ones)
It seems that while trying to access it within or from the listener, it returns an unknown property error...
im using this code by the way:

test_rollout.my_button.width = foo
--or
test_rollout.my_activeX.height = foo


got this from the helpfile:
...these parameters are not properties of the user-interface item and cannot be accessed or changed by a script. [Rollout User-Interface Controls - Common Layout Parameters]
is there another way to set this? :)

If thers no other way, how does the Layer Manager handle it? Im trying to resize my ActiveX ListView item whenever the dialog is resized.

Bobo
03-26-2005, 06:27 PM
The Layer Manager is not a script.
I wish they would be accessible.
The only way around is to rebuild the UI - my TreeMatoGraph script was doing that when resizing...

galagast
03-27-2005, 06:24 AM
i see, i myt do the same then.. i just hope it doesnt bog my script down.. :thumbsup: thanks again almighty Bobo!

[edit:03-30-05]
whew, didnt notice that activeX controls have 2 common properties... which are .size and .pos


rollout test "test"
(
activexControl list_ax "MSComctlLib.ListViewCtrl" width:320 height:300
on test resized size do
(
list_ax.size = size - [20, 20]
)
)
createdialog test width:340 height:320 style:#(#style_titlebar, #style_sysmenu, #style_resizing)


at least this got the activeX UI resizing.. for the buttons, i cant do much. :scream:

CGTalk Moderation
03-27-2005, 06:24 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.