FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to set status messages

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
baxissimo



Joined: 23 Oct 2006
Posts: 241
Location: Tokyo, Japan

PostPosted: Sat Nov 17, 2007 3:17 am    Post subject: How to set status messages Reply with quote

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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Mon Nov 19, 2007 10:01 am    Post subject: Re: How to set status messages Reply with quote

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
View user's profile Send private message
baxissimo



Joined: 23 Oct 2006
Posts: 241
Location: Tokyo, Japan

PostPosted: Mon Nov 19, 2007 10:24 am    Post subject: Re: How to set status messages Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group