FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour how does Statusbar or SET MESSAGE work ?
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
how does Statusbar or SET MESSAGE work ?
Posted: Tue Feb 21, 2023 05:29 AM
hi,

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

i have try
Code (fw): Select all Collapse
   oStatusBar:SetMsg( cText )
or
Code (fw): Select all Collapse
   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
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: how does Statusbar or SET MESSAGE work ?
Posted: Tue Feb 21, 2023 07:44 AM

oMsgBar:SetText("mytext")

oMsgBar:Refresh()

Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: how does Statusbar or SET MESSAGE work ?
Posted: Tue Feb 21, 2023 08:39 AM
hi,
Natter wrote:oMsgBar:SetText("mytext")
oMsgBar:Refresh()
ah, i need :Refresh() :idea:
thx for help
greeting,

Jimmy
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: how does Statusbar or SET MESSAGE work ?
Posted: 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 (fw): Select all Collapse
   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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: how does Statusbar or SET MESSAGE work ?
Posted: Tue Feb 21, 2023 01:16 PM
Code (fw): Select all Collapse
oStatusBar:cMsgDef = "My message"
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: how does Statusbar or SET MESSAGE work ?
Posted: Wed Feb 22, 2023 06:34 AM
hi Enrico,
Enrico Maria Giordano wrote:
Code (fw): Select all Collapse
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

Continue the discussion