[SOLVED] MenuItem,Text problem

Answered
0
0

Hi,

I am creating an application in VS 2017 (VB.Net) using Wisej 1..5.25 for the first time and have come across a problem which may be a bug but is possible me being obtuse.

I have created a menu, using the menu editor with the following structure:

MainMenu->MenuItems->MenuItems->MenuItems

The 2nd and 3rd level of menu items are displaying correctly, however, The text on the first level of menu items is:

People, Payroll, Banking, Recruitment, Administration, System And Sign Out

but it is displaying:

Peopl, Payrol, Bankin, Recruitme, Administratio, System, Sign

I need help – any ideas?

Gareth Bond
:

Attachment
  • You must to post comments
Best Answer
0
0

Thank you Jens!

It’s a bug in the themes. The main menu component doesn’t specify the font in the themes (the floating menus do) and it ends up inheriting the CSS from the container when it shouldn’t. In fact we even have a font defined names “menu” for the menus.

Will be fixed in the themes. I will also log an enhancement to add Font, ForColor and BackColor properties to MainMenu and MenuItem like the MenuBar already has.

As a workaround for Gareth, add a theme mixin file to the app under /Themes/Application.mixin.theme (Embedded Resource) and set to this:

 

{
  "name": "Application",
  "appearances": {
    "mainmenu": {
    "inherit": "mainmenu",
      "states": {
        "default": {
          "properties": {
            "font": {
              "size": 13,
              "family": [ "arial", "verdana", "sans-serif" ],
              "bold": false
            }
          }
        }
      }
    }
  }
}

 

  • You must to post comments
0
0

Hi Gareth,

I have tried to reproduce but it works ok here.
Does it also show wrong in the designer ?

Can you please try to wrap up a test case for us ?
You can either post it here or send it to frankATiceteagroup.com

Thanks in advance !

Best regards
Frank

  • You must to post comments
0
0

Hi,

I found out by trial and error that the MenuItem text is only truncated when you select a bold font.

  • You must to post comments
0
0

Hi Gareth,

thanks for providing more information. I have tried to reproduce it with bold menu items,
but they all show correctly here.
Can you please send us your menu definition or a test case ?

Thanks in advance.

Best regards
Frank

  • You must to post comments
0
0

Hi,

I can reproduce it with 1.5.33 when changing the Font of the Form (Window1) to “@defaultBold, 13px, Bold”.

Then the text is cut off at design- and runtime. Testcase attached.

Best,

Jens

Attachment
  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.