Resizing Window
Posted: Sat Sep 08, 2018 12:33 pm
I have created a routine that enables me to reset all the column widths within a ListIconGadget.
If a window is resized then I would like to call this routine but I cannot find any way to do that. If I set the gadget to lock left, right, top and bottom then the Form Designer automatically creates a procedure called "ResizeGadgetsMYWINDOWNAME()" which is called in the event loop:
I would naturally add a call to my procedure in here but, of course, the Form Designer overwrites this file on save or switching back to the form view.
The ListIconGadget does not report a #PB_Event for resizing so am unable to check for it in my own event checker for the ListIcon. I can get left click, right click, double clicks etc. as defined in the help file but I don't even get a Change event.
Can someone point me in the right direction, please?
If a window is resized then I would like to call this routine but I cannot find any way to do that. If I set the gadget to lock left, right, top and bottom then the Form Designer automatically creates a procedure called "ResizeGadgetsMYWINDOWNAME()" which is called in the event loop:
Code: Select all
Case #PB_Event_SizeWindow
The ListIconGadget does not report a #PB_Event for resizing so am unable to check for it in my own event checker for the ListIcon. I can get left click, right click, double clicks etc. as defined in the help file but I don't even get a Change event.
Can someone point me in the right direction, please?