09-18-2005 07:43 PM
09-19-2005 04:35 AM
09-19-2005 06:28 AM
A workoround for panel_load event: put in the panel a timer control enabled and with interval = 0.
Immediately after the panel load the timer should execute its callback: in the callback do what you need for the panel_load event and then disable the timer so that its callback is executed only once.
Otherwise, you could simplify your code by creating your own function for panel loading.
int MyLoadPanel (int Parent_Panel_Handle, char Filename[],
int Panel_Resource_ID, ctrlCallbackPtr LoadCallback);
Then you can call MyLoadPanel instead of traditional function where a special callback has to run after panel loading.
09-19-2005 06:14 PM
Neat trick, thanks!
It's shear madness though that there is no LOAD event, anyone know why?
Dave 🙂
09-20-2005 10:42 AM
09-20-2005 06:07 PM
Fair enough, and makes sense when you think abut it I guess, but as a result the code will always be a bit messier and non-consitent across different developers. Coming from a VB background I find this limitation rather annoying.
Thanks
Dave 🙂