Button double clicks

Started by Elias Montoya, May 27, 2009, 06:35:41 PM

Previous topic - Next topic

Elias Montoya


Is there a way to remove the CS_DBLCLKS style from a button's class before it is created by firefly? Or can it be changed at run time?

I would like to be able to do it from within firefly instead of having to add my own SDK code.
Thanx. :)

TechSupport

You should be able to change it at runtime.

Try putting the following in the WM_CREATE message handler to remove the class style from a command button.


    Local hClassStyles As Dword
   
    hClassStyles = GetClassLong( HWND_FORM1_COMMAND1, %GCL_STYLE )
   
    SetClassLong HWND_FORM1_COMMAND1, %GCL_STYLE, hClassStyles And (Not %CS_DBLCLKS)


Elias Montoya

 Thanx paul, i had so much things on my head i couldn't remember that. :)