FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Write to Left on Msgbar insert a button
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Write to Left on Msgbar insert a button
Posted: Sat Feb 22, 2020 12:14 PM
on Msgbar I must write a message and insert a button after the txt with an action

Code (fw): Select all Collapse
 oApp:oWndMain:oMsgBar:cMsgDef:=""
   cMessage:="Elementi Totali:"+str(nElementiTotali)+" | "+;
             "Liberi:"+str(nElementiLiberi)+" | "+;
             "Occupati :"+str(nElementiOcc)





but on Main this have another message (cmsgBar) with not buttons

SET MESSAGE OF ::oWndMain TO ::cMsgBar NOINSET



then I have another msgitems as you can see on picture but I wish use the first al left

I tried to create one empty

DEFINE MSGITEM ::oMsgItem1;
OF ::oMsgBar;
PROMPT "";
SIZE 120;
TOOLTIP " "

and then disable it with Hide () /disable() but it doesn't work it is showed at init

How I can to insert a temporaney button and erase all when I close the procedure reinserted the oldest cMsgbar ?


Now I try to insert anothe msgitem

It could go good but How I can make to insert the button on right , so at left of txt message ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion