FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour STATUS bar
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
STATUS bar
Posted: Fri Jul 14, 2006 11:51 AM

Can I insert bitmaps ( with action) on status bar as Msgbar ?
Can YOu write me an example ?

Regards

Best Regards, Saludos



Falconi Silvio
Posts: 99
Joined: Wed Nov 02, 2005 10:40 AM
Re: STATUS bar
Posted: Fri Jul 14, 2006 01:00 PM
Silvio wrote:Can I insert bitmaps ( with action) on status bar as Msgbar ?
Can YOu write me an example ?

Regards


Try the bellow

local _applwindow
define window _applwindow ;
from 0,0 to 600,800 pixel
_applwindow:oMsgBar := TMsgBar():New(_applwindow,"sdfsdfsdf",.F.,.T.,.T.,.T.,,,,)
_applwindow:bLButtonUp:={||msginfo(1)}
_applwindow:insitem(tmsgitem():new(_applwindow:omsgbar,"Click Me",120,,,,,{||msginfo('clicked')},"bitmap.bmp","bitmap.bmp"),2)

activate window _applwindow

Regards,
A.S.K
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
STATUS bar
Posted: Fri Jul 14, 2006 01:08 PM

DEFINE MSGITEM [ <oMsgItem> ] ;
[ OF <oMsgBar> ] ;
[ PROMPT <cMsg> ] ;
[ SIZE <nSize> ] ;
[ FONT <oFont> ] ;
[ COLOR | COLORS <nClrFore>;[, <nClrBack>] ] ;
[ ACTION <uAction> ];
[ BITMAP, BITMAPS <cBitmap1> [, <cBitmap2> ] ] ;
[ TOOLTIP <cToolTip> ]

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
STATUS bar
Posted: Fri Jul 14, 2006 06:31 PM
perhaps You don't understand me ....

I wanted Status Bar 32 bit style

 
cRegistro := i18n( "Registrato per : " ) + Control->NomEmp
      DEFINE STATUSBAR oStbar PROMPT "" OF oWnd  ;
      SIZES 250, 400, oWnd:nRight              ;
      PROMPTS "Uno", "Dos", ""
      oStbar:SetPartText( 1, cRegistro )
      oStbar:SetPartText( 2, cAutore  )
      oStbar:SetPartText( 3, cSyst  )


can I insert on oStbar a bitmaps with action ?
Best Regards, Saludos



Falconi Silvio
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
STATUS bar
Posted: Fri Jul 14, 2006 10:12 PM

Silvio,

>I wanted Status Bar 32 bit style

Sorry, I didn't know there was another status bar. I have just tested it, and it appears to visually be almost identical to FW's own "messageBar." It also looks like you cannot use a graphic on it.

Since you can put graphics (BMPs) on the FW messageBar, then why not use it instead? Is there some other feature of the 32bit version that you need that the FW messageBar doesn't have?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
STATUS bar
Posted: Sat Jul 15, 2006 04:47 AM
because msgbar have a no like graphics
If you go on alanit.com you can see many program : they not use msgbar



can I create it ?
Best Regards, Saludos



Falconi Silvio
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
STATUS bar
Posted: Sat Jul 15, 2006 06:27 PM

Silvio,

I'm sorry I don't understand what you are saying. The status bar graphic you linked to doesn't have any graphics. I thought you wanted to be able to put graphics on the status bar? If so, the FW messageBar can do this.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
STATUS bar
Posted: Sun Jul 16, 2006 06:26 PM

ok you have say NOT can have...
Regards

Best Regards, Saludos



Falconi Silvio

Continue the discussion