PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Elias Montoya on May 27, 2009, 06:35:41 PM

Title: Button double clicks
Post by: Elias Montoya on May 27, 2009, 06:35:41 PM

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. :)
Title: Re: Button double clicks
Post by: TechSupport on May 27, 2009, 07:52:34 PM
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)

Title: Re: Button double clicks
Post by: Elias Montoya on May 27, 2009, 10:47:08 PM
 Thanx paul, i had so much things on my head i couldn't remember that. :)