ButtonBar 3D

Post Reply
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

ButtonBar 3D

Post by nageswaragunupudi »

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 :

Code: Select all

DEFINE BUTTONBAR oBar OF oWnd SIZE 60,60
oBar:l3D := .T.
I am getting this kind of appearance.

Image

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

Post by Antonio Linares »

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
Post Reply