Change style's to DATA

Change style's to DATA

Postby sambomb » 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...
Code: Select all  Expand view
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
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Re: Change style's to DATA

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42097
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Change style's to DATA

Postby sambomb » Wed Jan 14, 2009 4: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
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Re: Change style's to DATA

Postby Antonio Linares » Sat Jan 24, 2009 7:02 pm

Windows API's rules :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42097
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Change style's to DATA

Postby sambomb » 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
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil


Re: Change style's to DATA

Postby Antonio Linares » Mon Jan 26, 2009 1:37 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42097
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Change style's to DATA

Postby sambomb » Mon Jan 26, 2009 5:50 pm

Thanks, I will take a look :wink:
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil


Return to To do - WishList / Por hacer - Peticiones

Who is online

Users browsing this forum: No registered users and 2 guests