Menu with Gradient Color
Posted: Fri Sep 03, 2021 5:44 am
hi,
this Demo show how to set Background Color of App Menu with Gradient Color
in c:\hmg.3.4.4\SOURCE\c_menu.C where i have add "LinearGradientBrush" from MiniGUI h_gradient.prg
---
Syntax : SetMenuBkGradient(hWnd, lSubMenu, RGB1, RGB2, nDirection, Wide, Height)
i do not know how to get Size of 1 x MenuItem so you have to try Wide, Height
---
todo : it does not work with CONTEXT MENU ... i try to figure out how that work
Jimmy
this Demo show how to set Background Color of App Menu with Gradient Color
is based onHB_FUNC ( SETMENUBKGRADIENT )
Code: Select all
HB_FUNC ( SETMENUBKCOLOR )---
Syntax : SetMenuBkGradient(hWnd, lSubMenu, RGB1, RGB2, nDirection, Wide, Height)
Code: Select all
hWnd -> Handle of Form e.n. GetFormhandle("Win_1")
lSubMenu -> include SibMenu .T. / .F.
RGB1 -> 1st Colorm[r.g.b}
RGB2 -> 2nd Colorm[r.g.b}
nDirection -> Horizontal = 1 / Vertical = 2
Wide -> ... about Wide
Height -> ... about Height
---
todo : it does not work with CONTEXT MENU ... i try to figure out how that work
Jimmy