View previous topic :: View next topic |
Author |
Message |
baxissimo
Joined: 23 Oct 2006 Posts: 241 Location: Tokyo, Japan
|
Posted: Sat Nov 17, 2007 3:17 am Post subject: How to set status messages |
|
|
Is there some way to set the status message on a form rather than getting a pointer to the form's statusbar and setting it directly?
I'm looking for something like an application-level message, or maybe something on a form itself like form.setStatusText(). or form.statusbar property. If there were that then I could do findForm().statusbar.text = "foo".
Another thing I've seen in a few toolkits is a way to set status messages with the label of items. So for instance setting this menuitem label would set an accelerator (see previous message) and create a status message that showed when you hovered over the menu item:
Code: | mi.text = "Open\tCtrl+O\tOpen an existing file."; |
|
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Mon Nov 19, 2007 10:01 am Post subject: Re: How to set status messages |
|
|
baxissimo wrote: | Is there some way to set the status message on a form rather than getting a pointer to the form's statusbar and setting it directly?
I'm looking for something like an application-level message, or maybe something on a form itself like form.setStatusText(). or form.statusbar property. If there were that then I could do findForm().statusbar.text = "foo". | No, there's no other way. I'm not sure if that's a good idea.
Quote: | Another thing I've seen in a few toolkits is a way to set status messages with the label of items. So for instance setting this menuitem label would set an accelerator (see previous message) and create a status message that showed when you hovered over the menu item:
Code: | mi.text = "Open\tCtrl+O\tOpen an existing file."; |
| There's an idea; I'll think about it. |
|
Back to top |
|
|
baxissimo
Joined: 23 Oct 2006 Posts: 241 Location: Tokyo, Japan
|
Posted: Mon Nov 19, 2007 10:24 am Post subject: Re: How to set status messages |
|
|
Chris Miller wrote: | baxissimo wrote: | Is there some way to set the status message on a form rather than getting a pointer to the form's statusbar and setting it directly?
I'm looking for something like an application-level message, or maybe something on a form itself like form.setStatusText(). or form.statusbar property. If there were that then I could do findForm().statusbar.text = "foo". | No, there's no other way. I'm not sure if that's a good idea.
|
The goal is just to have some sort of loose coupling mechansim with status messages since every component may want to set the status, and every form may have it's own status bar. Every serious GUI toolkit I've used as had something along those lines. Qt, WxWidgets, FOX, and something nobody ever heard of called Visix Galaxy. So whether its a good idea or not, a lot of people apparently have thought it was.
But anyway for now I'm glad just to hear definitively that DFL doesn't have any mechanism like that so I can stop trying to find one. |
|
Back to top |
|
|
|