FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ButtonBar 3D
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
ButtonBar 3D
Posted: Sun Oct 14, 2007 09:45 PM
The new button bars with 2007 look great. For a while going back to the old 3d style button bars I noticed a small problem.

If we normally define a button bar as "DEFINE BUTTONBAR oBar OF oWnd SIZE 60,60 3D", it is working. But if we try the following code :
DEFINE BUTTONBAR oBar OF oWnd SIZE 60,60
oBar:l3D := .T.

I am getting this kind of appearance.



I noticed this when I was writing code for conditional use of 2007 style depending on the ColorsQty(). Though right now, I am getting what I want by coding in a different way, I feel that the button bars should paint correctly even for the above code
Regards



G. N. Rao.

Hyderabad, India
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ButtonBar 3D
Posted: Sun Oct 14, 2007 11:46 PM

You can not set that property later on. It has to be specified when you create the buttonbar:

oBar:l3D := .T.

If you want to use it or not, use two different sentences:

if lWant3D
DEFINE BUTTONBAR ... 3D
else
DEFINE BUTTONBAR ...
endif

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion