Richard Clarke
New Member
OpenEdge v11.3.0
I want to be able to resize the controls on a form as the user sizes the form. Using Dock and Anchor seems like a lot of work, mainly because of all the panels you have to add and then setting the relevant properties to all of them!
In addition to changing the size and position of the controls I would like the option of increasing / decreasing the font size. I can see that I will be able to achieve what I want with: -
Define variable myControls as class Control+ControllCollcetion no-undo.
Define variable iCounter as integer no-undo.
myControls= this-object:controls.
With Repeat iCounter = 1 to myControls:Count I can access the controls and change size, p;osition.
Here comes the newbie bit!
myControls:count gives me the number of controls, but doesn’t include controls within anither control (e.g tab control). I can’t seem to find a way to access these controls.
Help with accessing these controls or other thoughts on resizing controls appreciated.
Thanks in advance
Richard.
I want to be able to resize the controls on a form as the user sizes the form. Using Dock and Anchor seems like a lot of work, mainly because of all the panels you have to add and then setting the relevant properties to all of them!
In addition to changing the size and position of the controls I would like the option of increasing / decreasing the font size. I can see that I will be able to achieve what I want with: -
Define variable myControls as class Control+ControllCollcetion no-undo.
Define variable iCounter as integer no-undo.
myControls= this-object:controls.
With Repeat iCounter = 1 to myControls:Count I can access the controls and change size, p;osition.
Here comes the newbie bit!
myControls:count gives me the number of controls, but doesn’t include controls within anither control (e.g tab control). I can’t seem to find a way to access these controls.
Help with accessing these controls or other thoughts on resizing controls appreciated.
Thanks in advance
Richard.