Page 1 of 1

ButtonBar 3D

Posted: Sun Oct 14, 2007 9:45 pm
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

Posted: Sun Oct 14, 2007 11:46 pm
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