Hi All,
At window activation I prompt `LogIn` in the message bar. So far so good
Once the user has entered is login name I want to display the user name in the message bar.
So I use:
oMsgBar:SetMsg(cUserName), oMsgBar:Refresh()
I can see the user name display for a fraction of second and `LogIn` redisplays again on top.
What am I doing wrong ?
Message Bar problems
Message Bar problems
Gilbert Vaillancourt
turbolog@videotron.ca
turbolog@videotron.ca
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Hi all,
Sorry it took so long to reply, too muxh work I guess.
I dont have any menuitem with MESSAGE `Login`
I also tried James Bott solution but it did`nt work.
Regards,
Gilbert
Sorry it took so long to reply, too muxh work I guess.
I dont have any menuitem with MESSAGE `Login`
I also tried James Bott solution but it did`nt work.
Regards,
Gilbert
Gilbert Vaillancourt
turbolog@videotron.ca
turbolog@videotron.ca
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Gilbert,
Sorry, you also need to do a refresh().
Sorry, you also need to do a refresh().
Code: Select all
// Purpose: To test changing the message bar message
#include "fivewin.ch"
function main()
local oWnd,oBar
local cUsername:= "James"
define window oWnd
define buttonbar oBar of oWnd
define button of oBar ;
action (oWnd:oMsgBar:cMsgDef:= cUsername, oWnd:oMsgBar:setMsg(""),oWnd:oMsgBar:refresh())
set message of oWnd to "Login"
activate window oWnd
return nil