for example I want this button to dynamically move if I change the height of the listview:
This code achieves that
Code: Select all
MyGui:= Gui(,'Category Manager')
lvCategory := MyGui.AddListView('vcategory_list w600 r25', ['Category', 'Type'])
MyGui.AddButton('w75 ym', 'Add')
MyGui.AddButton('w75 xp', 'Delete')
lvCategory.GetPos(,,,&height)
yloc := height - 25 * 3
MyGui.AddButton('y+' yloc ' w75', 'Close').OnEvent('Click', (*)=>MyGui.Hide())
MyGui.Show()
I would love to simply be able to refer to ctrl.x, ctrl.y, ctrl.width and ctrl.height!
It think it should be the same for GUI objects.
It would help making the creation of responsive GUIs a little bit more intuitive.
Of course I know that we can use the Section option to save the positions of controls for later use, but there is no ws or hs AND you can only have one saved section at a time... so there are situations in which if you have a very complex gui you cant have several sections saved.
I should create another wish post with named sections for different saved positions haha