Using the group object to control..

Started by vanjast, January 03, 2012, 05:36:26 PM

Previous topic - Next topic

vanjast

I think I'm a bit dense today (maybe always  :green2).
I cannot figure out how to create a windows procedure for the 'group' object.

The idea is to control all the controls contained in a particular group within a tab object.

thanks for any input

dedndave


Ramon Sala

Hi vanjast,

If you are using Easy Code, the procedure for a Group object (just for visual projects) must be the name of the window where the Group is, plus its own name (both case sensitive). For example, for a Group named Group1 being inside a window named Window1, the procedure for the Group has to be named Window1Group1:

Window1Group1 Proc hWnd:HWND, uMsg:ULONG, wParam:WPARAM, lParam:LPARAM
    .If uMsg == ...

    .ElseIf uMsg == ...

    .EndIf
    Xor Eax, Eax
    Ret
Window1Group1 EndP


But remember that, in visual projects, the WM_COMMAND and WM_NOTIFY messages send by child controls are received by the owner window even if they are children of a Group or a Picture.

Hope that can help you.
Greetings from Catalonia

vanjast

Thank you kind sirs... for making me clever again  :green2