Page 1 of 1

how does Statusbar or SET MESSAGE work ?

Posted: Tue Feb 21, 2023 5:29 am
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 :?:

Re: how does Statusbar or SET MESSAGE work ?

Posted: Tue Feb 21, 2023 7:44 am
by Natter
oMsgBar:SetText("mytext")
oMsgBar:Refresh()

Re: how does Statusbar or SET MESSAGE work ?

Posted: Tue Feb 21, 2023 8:39 am
by Jimmy
hi,
Natter wrote:oMsgBar:SetText("mytext")
oMsgBar:Refresh()
ah, i need :Refresh() :idea:
thx for help

Re: how does Statusbar or SET MESSAGE work ?

Posted: Tue Feb 21, 2023 10:25 am
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 :?:

Re: how does Statusbar or SET MESSAGE work ?

Posted: Tue Feb 21, 2023 1:16 pm
by Enrico Maria Giordano

Code: Select all | Expand

oStatusBar:cMsgDef = "My message"

Re: how does Statusbar or SET MESSAGE work ?

Posted: Wed Feb 22, 2023 6:34 am
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" :?: