COLORMENU vertical MenuItem

COLORMENU vertical MenuItem

Postby Jimmy » Tue Dec 27, 2022 8:35 am

hi,

i have "read" about COLORMENU
Code: Select all  Expand view
  MENU oMenu HEIGHT -4.8 FLAT COLORMENU RGB(1,1,1), CLR_MSPURPLE ;
      COLORLINEBOTTOM RGB(1,1,1) FONT oFontMenu NOBORDER // 2013

and try to use it
Code: Select all  Expand view
║   MENU oMenu COLORMENU BGcolor, BFcolor ;
║         COLORLINEBOTTOM BGcolor FONT oFontDefault NOBORDER // 2013

it does "paint" Horizontal Menu as i want in "Dark-Mode" but "fail" on Vertical Menu
Image
what i´m doing wrong :?:

p.s. how does COLORMENU work with POPUP ?
Code: Select all  Expand view
  MENU oMenu POPUP COLORMENU BGcolor, BFcolor ;
         COLORLINEBOTTOM BGcolor FONT oFontDefault // NOBORDER 2015
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: COLORMENU vertical MenuItem

Postby cnavarro » Tue Dec 27, 2022 3:38 pm

Try
Code: Select all  Expand view

   MENU oMenu 2013 ;
       FONT oFontMenu HEIGHT -4.8 NOBORDER ;
       COLORMENU Rgb( 0, 0, 1 ), CLR_MSPURPLE ;
       COLORPNEL CLR_WHITE, Rgb( 0, 0, 1 ) ;
       COLORSELECT CLR_YELLOW, CLR_YELLOW, Rgb( 0, 0, 1 ) //;   //  COLORSELECT CLR_YELLOW, CLR_GRAY, Rgb( 0, 0, 1 )
//       COLORBOX CLR_RED
 

For POPUP Menus, use COLORPNEL and not use COLORMENU
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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: COLORMENU vertical MenuItem

Postby Jimmy » Tue Dec 27, 2022 5:39 pm

hi,

thx for you answer.

have "play" with your Sample using different Color and Setting and found out

1.) need Style 2013
2.) must be Rgb( 0, 0, 1 ) instead of Rgb( 0, 0, 0 )

this is what i use now
Code: Select all  Expand view
  MENU oMenu 2013 ;
      COLORMENU BGcolor, BFcolor ;
      COLORPNEL BFcolor, BGcolor ;
      COLORLEFT BFcolor, BGcolor ;
      COLORSELECT BFcolor, BGcolor, BFcolor
   oMenu:oFont := oFontDefault

BGcolor = Background Color
BFcolor = Foreground Color

Question : which other Style than 2013 can i try :?: (have try 2015)

---

Dark-Mode Menu look nice using Gradient
but with "white" Menu it is hard to read Horizontal Menu when it is "small"
Image
Image
is there a Way not to use Gradient with COLORSELECT :?: (which need 3 x Parameter)
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: COLORMENU vertical MenuItem

Postby cnavarro » Tue Dec 27, 2022 6:30 pm

In the COLORSELECT clause the first two parameters are for the background: if they are different it produces a gradient, but if you put the same color then you will get a single background color.
Clause 2013 is the one that allows the user to define the color or aspects of a totally personalized menu. If you use the 2007, 2010 or 2015 styles, it will use the colors that are already defined for that style in Fivewin.
You can also use the MENU command with the COLORS clause without defining any styles, which will allow you to modify FONTs, colors and appearances of the menu, but my advice, to get a fully customized menu is to include the 2013 clause.
MENU oMenu COLORS FONT oFontMenu ...

Pd.: not use CLR_BLACK or Rgb( 0, 0, 0 ), The class understands that the color is empty ( color value = 0 ), and assigns the default color. This is a topic that I have yet to review.
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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: COLORMENU vertical MenuItem

Postby Jimmy » Wed Dec 28, 2022 8:56 am

hi,

thx for Answer and Information

there is still a lot i have to learn about Fivewin.
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 72 guests

cron