FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index To do - WishList / Por hacer - Peticiones Change style's to DATA
Posts: 389
Joined: Mon Oct 13, 2008 11:26 AM
Change style's to DATA
Posted: Tue Jan 13, 2009 10:50 AM
I'm with a trouble to change a Buttombmp style(especificaly WS_TABSTOP) and a LOT of good programmers don't know how to change the style in execution...
I think that change the nStyle for logical Data will solve all this troubles...
Ex.:  Redefine ButtonBMP oBtn;
        ID         100
        Prompt "Can be focused";
        Update;
        Action CanFocus(oBtn)

Procedure CanFocus(oObj)

   oObj:[red]WS_TABSTOP[/red] := !oObj:WS_TABSTOP
   if   oObj:WS_TABSTOP
      oObj:settext( "Can't be focused" )
   else
      oObj:settext( "Can be focused" )
   end
   
   oObj:Refresh()

Return


The only trouble I see is a lot of classes to be changed (or not I don't know how it can be done)
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Change style's to DATA
Posted: Tue Jan 13, 2009 11:11 PM

You can use:

SetWindowLong( oBtn:hWnd, GWL_STYLE, nXor( GetWindowLong( oBtn:hWnd, GWL_STYLE ), WS_TABSTOP ) )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 389
Joined: Mon Oct 13, 2008 11:26 AM
Re: Change style's to DATA
Posted: Wed Jan 14, 2009 04:01 PM

Thanks Linares, I already discover how to change :D but it's difficult to understand.

Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Change style's to DATA
Posted: Sat Jan 24, 2009 07:02 PM

Windows API's rules :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 389
Joined: Mon Oct 13, 2008 11:26 AM
Re: Change style's to DATA
Posted: Mon Jan 26, 2009 11:22 AM
Antonio Linares wrote:Windows API's rules :-)

Where I can find these rules?

PS.: If it was in portuguese is better for me...
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Change style's to DATA
Posted: Mon Jan 26, 2009 01:37 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 389
Joined: Mon Oct 13, 2008 11:26 AM
Re: Change style's to DATA
Posted: Mon Jan 26, 2009 05:50 PM

Thanks, I will take a look :wink:

Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2

Continue the discussion