Visual Designer FLAT controls.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Visual Designer FLAT controls.

Post by thefool »

Hi!
It would be great if a FLAT propety could be set to buttons and other controls. It creates a nice effect under all M$ Win's.
Easy to do, but it would be nice to have it as an option in VD.

Ex:
You need to set this:

#BS_FLAT=$8000

Then its just like this:
ButtonGadget(#Button_1, 130, 170, 100, 20, "Exit",#BS_FLAT)


Regards, thefool
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

You can simply add that yourself.
Just edit the "Visual Designer Constants.prefs" file in your PB directory,
there you can add new constants like this one to a gadget.

Add this for example:

Code: Select all

Button,	  32768 , BS_FLAT	   , $8000

Timo
quidquid Latine dictum sit altum videtur
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Ahh! Thanks :)
Post Reply