Write to Left on Msgbar insert a button

Write to Left on Msgbar insert a button

Postby Silvio.Falconi » 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: Select all  Expand view  RUN

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


Image


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

SET MESSAGE OF ::oWndMain TO ::cMsgBar NOINSET

Image

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 ::oWndMain: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
Image
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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi and 53 guests