how does Statusbar or SET MESSAGE work ?

how does Statusbar or SET MESSAGE work ?

Postby Jimmy » Tue Feb 21, 2023 5:29 am

hi,

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

i have try
Code: Select all  Expand view
  oStatusBar:SetMsg( cText )

or
Code: Select all  Expand view
  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
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: how does Statusbar or SET MESSAGE work ?

Postby Natter » Tue Feb 21, 2023 7:44 am

oMsgBar:SetText("mytext")
oMsgBar:Refresh()
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Re: how does Statusbar or SET MESSAGE work ?

Postby Jimmy » Tue Feb 21, 2023 8:39 am

hi,
Natter wrote:oMsgBar:SetText("mytext")
oMsgBar:Refresh()

ah, i need :Refresh() :idea:
thx for help
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: how does Statusbar or SET MESSAGE work ?

Postby Jimmy » Tue Feb 21, 2023 10:25 am

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 view
  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: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Re: how does Statusbar or SET MESSAGE work ?

Postby Jimmy » Wed Feb 22, 2023 6:34 am

hi Enrico,
Enrico Maria Giordano wrote:
Code: Select all  Expand view
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
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 99 guests