Status Bar

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dickey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 118
Joined: Wed Apr 08, 2009 11:54 pm

Status Bar

Post by dickey » Mon Aug 24, 2009 1:35 am

Hello all,

I am still relatively new to RevMedia/Studio, so please indulge what may be a basic question.

I have reviewed the RevolutionUsersGuide.pdf, and scanned the dictionary.

Simple topic - I know. However I can't seem to work out how (and then best practice) for implementing a status bar at the base of an application/window (on Windows).

Perhaps you need to 'roll your own' - however I am unsure.

Any advice appreciated.

Kind regards, Andrew

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Mon Aug 24, 2009 4:42 am

What do you want to put in your status bar.

For simple text I often name the field I put there "fwStatus", and have this handler somewhere common to my scripts for easy access:

on PutS s -- short for PutStatus
put s into fld "fwStatus"
end PutS

Yep, simple, but when a lot of your scripts use it it's nice to have something short and simple. :)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Garrett
Posts: 386
Joined: Sat Apr 08, 2006 8:15 am
Contact:

Post by Garrett » Mon Aug 24, 2009 5:37 am

Yup, it's a "roll your own" deal for statusbars.
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)

dickey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 118
Joined: Wed Apr 08, 2009 11:54 pm

Status Bar

Post by dickey » Mon Aug 24, 2009 6:11 am

Thanks Richard and Garrett,

Richard - formatting, and updating a field as a status bar is fine by me.

Reading the User Guide, you might expect that status bars might reasonable be accommodated in 4.2.19 Stack Decorations – for Window Appearance, given this is where the differences between standard operating system windows are addressed. Given that the appearance of a status bar is different by default between platforms (if they are implemented at all) it is perhaps logical that it be part of the window decoration set.

I was really just checking that there wasn't a 'status bar' object and associated properties and behaviors etc in the Revolution Dictionary.

Thanks again, Andrew

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Status Bar

Post by FourthWorld » Mon Aug 24, 2009 6:42 am

Interesting idea. I've seen so little consistency among status bars that it never occurred to me that anyone would want to use any sort of "standard" object for that, or what that standard might be.

I can't recall the last time a status bar just displayed status. :)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply