FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour toolbar class as Menu 2015
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
toolbar class as Menu 2015
Posted: Wed Jan 20, 2016 09:16 AM
Ho w Ican modify the color of the toolbar as colors of menu2015 ?

the menu 2015




I try to insert the menu on the toolbar and I change the background of the button but I cannot modify the color od the rebar



oImageList:AddMasked( TBitmap():Define( "TOOLBAR_ESERCIZI",, ::oWndMain ), RGB( 244, 245, 245 ) )

any solution ?
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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: toolbar class as Menu 2015
Posted: Wed Jan 20, 2016 09:41 AM
Silvio.Falconi wrote:Ho w Ican modify the color of the toolbar as colors of menu2015 ?

the menu 2015




I try to insert the menu on the toolbar and I change the background of the button but I cannot modify the color od the rebar



oImageList:AddMasked( TBitmap():Define( "TOOLBAR_ESERCIZI",, ::oWndMain ), RGB( 244, 245, 245 ) )

any solution ?


Silvio, style 2015 in oBar is implemented in next build
We're doing tests
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: toolbar class as Menu 2015
Posted: Wed Jan 20, 2016 09:51 AM

I not mean buttonbar but on toolbar (REbar class)

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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: toolbar class as Menu 2015
Posted: Wed Jan 20, 2016 09:53 AM
Silvio.Falconi wrote:I not mean buttonbar but on toolbar (REbar class)


Ok, Any small example?
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: toolbar class as Menu 2015
Posted: Wed Jan 20, 2016 11:20 AM

Local oImageList, oReBar,oHand
Local nColore_ToolBar:= RGB( 244, 245, 245 ) //2015...

 DEFINE CURSOR oHand HAND

DEFINE IMAGELIST oImageList SIZE 32,30

  oImageList:AddMasked( TBitmap():Define( "TOOLBAR_ESERCIZI",,  ::oWndMain ), nColore_ToolBar )
  oImageList:AddMasked( TBitmap():Define( "TOOLBAR_ATTIVITA",,  ::oWndMain ), nColore_ToolBar )
  oImageList:AddMasked( TBitmap():Define( "TOOLBAR_APUNTES",,   ::oWndMain ), nColore_ToolBar )

oReBar = TReBar():New( ::oWndMain )

  DEFINE TOOLBAR ::oBar OF oReBar SIZE 36,36 IMAGELIST oImageList

  ::oBar:lTTBalloon:=.t.
  ::oBar:oCursor:=  oHand

  oReBar:InsertBand( ::oBar )

  ::oBar:nHeight -= 2

DEFINE TBBUTTON OF ::oBar ;
ACTION NIL ;
TOOLTIP i18n( "Gestione Esercizi" ) ;
MESSAGE i18n( "Gestione Esercizi." )

    DEFINE TBBUTTON OF ::oBar ;
      ACTION NIL ;
      TOOLTIP i18n( "Gestione Attivit脿" ) ;
     MESSAGE i18n( "Gestione Attivit脿." )

  DEFINE TBSEPARATOR OF ::oBar


     DEFINE TBBUTTON OF ::oBar ;
      ACTION NIL ;
      TOOLTIP i18n( "Gestione Movimenti" ) ;
     MESSAGE i18n( "Gestione Movimenti." )
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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: toolbar class as Menu 2015
Posted: Wed Jan 20, 2016 11:30 AM

Sorry
I wanted to say if you can attach a picture

Thanks

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: toolbar class as Menu 2015
Posted: Wed Jan 20, 2016 12:03 PM
Silvio

First implementation

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: toolbar class as Menu 2015
Posted: Thu Jan 21, 2016 08:09 AM

not depend from my bitmaps I use for create the button of toolbar
I have c5bar and it run ok only I wish use toolbar fwh class

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