how does Statusbar or SET MESSAGE work ?

Post Reply
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

how does Statusbar or SET MESSAGE work ?

Post by Jimmy »

hi,

i have a Statusbar / SET MESSAGE in my App.
but how does it work :o

i have try

Code: Select all | Expand

   oStatusBar:SetMsg( cText )
or

Code: Select all | Expand

   oMain:SetMsg( cText )
but it "seems" to have no Effect

when "move" Mouse fromOne TGrid() to other TGrid() i got Message in Statusbar of Select Item (even when have no Focus)
but it does not change when "navigate" in TGrid ...

what i´m doing wrong :?:
greeting,
Jimmy
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Re: how does Statusbar or SET MESSAGE work ?

Post by Natter »

oMsgBar:SetText("mytext")
oMsgBar:Refresh()
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: how does Statusbar or SET MESSAGE work ?

Post by Jimmy »

hi,
Natter wrote:oMsgBar:SetText("mytext")
oMsgBar:Refresh()
ah, i need :Refresh() :idea:
thx for help
greeting,
Jimmy
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: how does Statusbar or SET MESSAGE work ?

Post by Jimmy »

hi,

it does work now ... but after some Time it (automatic) disappear :shock:

as i want to use Color i have take SET MESSAGE ... but "where" can i put Object "Name" :?:
so i use CLASS TMsgBar() Syntax

Code: Select all | Expand

   oStatusBar := TMsgBar():New( oMain, "",, .T., .T., .T., BFCOLOR, BGCOLOR, oFontSmall, .F., .F., .F., .F., .F. )
have use all Parameter which seems to be OK, but why does Message disappear :?:
greeting,
Jimmy
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: how does Statusbar or SET MESSAGE work ?

Post by Jimmy »

hi Enrico,
Enrico Maria Giordano wrote:

Code: Select all | Expand

oStatusBar:cMsgDef = "My message"
YES, that work when set last String also to o:cMsgDef

Question : can you tell me "why" there is a "Timeout" :?:
greeting,
Jimmy
Post Reply