wxStatusBar updating statustext on listener Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
webmask
Earned a small fee
Earned a small fee
Posts: 10
Joined: Thu May 18, 2006 10:45 am

wxStatusBar updating statustext on listener

Post by webmask » Thu May 25, 2006 8:11 am

hi all,

how can i update a wxStatusBar statustext during an event listener? What im doing is i have a status box and i have a seperate class that listens to all the events on the socket. What i wana do is reflect the line connection state to the status box.

what do you think is the best way? derive my own class from the wxStatusBar?

thanks
webmask
A wanna be...

Cursor
Earned some good credits
Earned some good credits
Posts: 120
Joined: Sun Aug 29, 2004 3:09 pm
Location: Grenoble, France
Contact:

Post by Cursor » Thu May 25, 2006 8:18 am

A simple way to modify status text from anywhere is to use wxLogStatus.
http://www.wxwidgets.org/manuals/2.6.3/ ... xlogstatus
What is little and green, witch go up and down ??
Yoda playing with the force.

webmask
Earned a small fee
Earned a small fee
Posts: 10
Joined: Thu May 18, 2006 10:45 am

Post by webmask » Thu May 25, 2006 9:47 am

Thanks cursor. it works now.. 8)
A wanna be...

Post Reply