ADD / REMOVE Button from existing Toolbar ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

ADD / REMOVE Button from existing Toolbar ?

Post by AUGE_OHR »

hi,

i use a Toolbar in HBFM.

Code: Select all

DEFINE TOOLBAR <ControlName> 
...
   BUTTON <Controlname>
...
END TOOLBAR
when using FTP i need "more" Button ... like to place them into existing Toolbar ... how :idea:
have fun
Jimmy
User avatar
danielmaximiliano
Posts: 2625
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: ADD / REMOVE Button from existing Toolbar ?

Post by danielmaximiliano »

Try

Code: Select all

				BUTTON Button_2a ;
					CAPTION 'Save' ;
					PICTURE 'button5.bmp' ;
					WHOLEDROPDOWN 

					DEFINE DROPDOWN MENU BUTTON Button_2a 
						ITEM 'Exit'	ACTION Form_1.Release
						ITEM 'About'	ACTION MsgInfo ("HMG ToolBar Demo") 
					END MENU
C:\hmg.3.4.4\SAMPLES\Controls\ToolBar\TOOLBAR_2
2020-07-23 04_22_55-Window.png
2020-07-23 04_22_55-Window.png (10 KiB) Viewed 1720 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: ADD / REMOVE Button from existing Toolbar ?

Post by AUGE_OHR »

Splitbox / Toolbar / Color

hi,

i have used Splitbox / Toolbar but i got a Problem with Color
Spiltbox_Color.JPG
Spiltbox_Color.JPG (52.85 KiB) Viewed 1631 times
i can get Handle of Toolbars to "paint" Color but it "over-paint" Image ...
i can not get Handle of Splitbox ( Rebar ? )

Code: Select all

  hWnd := Win_1.SPLITBOX.Handle // -> crash
who can help to get "Darkmode" into Splitbox / Toolbar :idea:
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: ADD / REMOVE Button from existing Toolbar ?

Post by AUGE_OHR »

hi,
AUGE_OHR wrote: Sat Jul 25, 2020 2:36 am who can help to get "Darkmode" into Splitbox / Toolbar :idea:
i found out that Toolbar "inherit" BackGround Color from MAIN
Dark_Toolbar.JPG
Dark_Toolbar.JPG (48.32 KiB) Viewed 848 times
but it does not work when using SPLITBAR ... hm ...
have fun
Jimmy
Post Reply