Add same features for StatusBar as other gadgets

You need some new stunning features ? Tell us here.
Neil
Enthusiast
Enthusiast
Posts: 198
Joined: Wed Feb 29, 2012 8:04 am
Location: Melbourne, AUS

Add same features for StatusBar as other gadgets

Post by Neil »

Hi Polo,

Is it possible to add the same features for StatusBar as for the other form gadgets, e.g.

Use #PB_Any
Use Variable

Also, how do we edit the AddStatusBarField gadget ??

Thanks,

Neil
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Add same features for StatusBar as other gadgets

Post by davido »

PureBasic has an exceptionally good manual. Thank you again to its authors!

If you look at the StatusBar entry you will find that you can use #PB_Any when creating one.

Update using:

StatusBarText()

Syntax

StatusBarText(#StatusBar, Field, Text$ [, Appearance])
Description

Set the text for the specified 'Field' in the given '#StatusBar'. 'Appearance' is optional and can be used to alter the look of the field with the following values:
#PB_StatusBar_Raised : raised borders (has no effect on OS X)
#PB_StatusBar_BorderLess: without border
#PB_StatusBar_Center : center the text in the field
#PB_StatusBar_Right : align the text to the right of the field

The options can be combined together with the '|' (OR) operator :
#PB_StatusBar_BorderLess | #PB_StatusBar_Right : Borderless right aligned field.

For a working example look at CreateStatusBar().
DE AA EB
Neil
Enthusiast
Enthusiast
Posts: 198
Joined: Wed Feb 29, 2012 8:04 am
Location: Melbourne, AUS

Re: Add same features for StatusBar as other gadgets

Post by Neil »

Hi Davido,

Thanks for your reply.

Yes I am aware of all that info.

What I am asking Polo is if he can add the same functionality for including a StatusBar in a form as he has done for other gadgets, e.g.

1. Set a toggle to use #PB_Any.
2. Use a user named variable.

and

How do we edit the AddStatusBarField gadget ??
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Add same features for StatusBar as other gadgets

Post by Polo »

If you click on the field, then you can edit it with the form panel (to delete the field, right click).
I'll see about new features in the summer, it's mad at work at the moment, I don't have a lot of free time!
Neil
Enthusiast
Enthusiast
Posts: 198
Joined: Wed Feb 29, 2012 8:04 am
Location: Melbourne, AUS

Re: Add same features for StatusBar as other gadgets

Post by Neil »

ok

Thanks,

Neil
Post Reply