Possible a Var ( oBtnBMP ) for oButton:cLayout := "TOP" ?

Possible a Var ( oBtnBMP ) for oButton:cLayout := "TOP" ?

Postby ukoenig » Wed Jan 06, 2010 11:16 am

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.

Image

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 :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Possible a Var ( oBtnBMP ) for oButton:cLayout := "TOP" ?

Postby nageswaragunupudi » Wed Jan 06, 2010 11:44 am

Please try oBtn:nLayOut
Values for nLayOut are
1 = TOP, 2 = LEFT, 3 = BOTTOM, 4 = RIGHT
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10626
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Possible a Var ( oBtnBMP ) for oButton:cLayout := "TOP" ?

Postby ukoenig » Wed Jan 06, 2010 12:06 pm

Thank You very much for Your help.
It is tested and works fine now.

Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 56 guests

cron