function to lock a Gadget
function to lock a Gadget
A function to lock a Gadget so it doesn't response any actions with an Event so you can for example change the contents of a ComboBox and no Event release.
Disable Gadget (disable redraw):
Enable Gadget (activate redraw and redraw gadget)
Code: Select all
SendMessage_(GadgetID(#nb),#WM_SETREDRAW,#False,0)
Code: Select all
SendMessage_(GadgetID(#nb),#WM_SETREDRAW,#True,0)
RedrawWindow_(GadgetID(#nb), 0, 0,#RDW_INTERNALPAINT|#RDW_INVALIDATE)