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...
The only trouble I see is a lot of classes to be changed (or not I don't know how it can be done)
I think that change the nStyle for logical Data will solve all this troubles...
Code: Select all
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