Hello,
I want to use : oButt1:cLayout := cPOSITION
because the needed Position is defined at Start like cPOSITION := "TOP"
and I want to write the Button-Code only once for each Button.
DEFINE BUTTON oButt1 OF oBar FILE aBPICTURES[1][3] ;
MESSAGE "Button 1" ;
ACTION MsgAlert( "Button 1","Attention" ) ;
PROMPT TRIM(aBTNTEXT[1][1])
oButt1:oFont := oTextFont
oButt1:cLayout := cPOSITION
It doesn't work, I get a Error :
Application
===========
Path and name: E:\T_SKINS\btnskins.exe (32 bits)
Size: 2,157,056 bytes
Time from start: 0 hours 0 mins 7 secs
Error occurred at: 01/06/10, 12:03:52
Error description: Warning BASE/1005 Message not found: TBTNBMP:_CLAYOUT
Args:
Stack Calls
===========
Called from: source\rtl\tobject.prg => TBTNBMP:ERROR(172)
Called from: source\rtl\tobject.prg => TBTNBMP:MSGNOTFOUND(205)
Called from: source\rtl\tobject.prg => TBTNBMP:_CLAYOUT(0)
Is it possible, to use a var for the BMP-position ?
Best Regards
Uwe