How can i change font size of menu items?

Just starting out? Need help? Post your questions and find answers here.
skinkairewalker
Posts: 87
Joined: Tue Jun 14, 2016 7:17 pm

How can i change font size of menu items?

Post by skinkairewalker »

hello everyone !
i would like to know how can i change font size of Menu Items

Image
killer128k
Posts: 7
Joined: Sat Apr 03, 2021 10:54 am

Re: How can i change font size of menu items?

Post by killer128k »

Code: Select all

  !console.log( document.getElementById("spiderbody").style.fontSize = "40%" );
  Procedure MenuEvents()
    Debug "Menu item selected: " + EventMenu()
  EndProcedure
  If OpenWindow(0, 200, 200, 400, 100, "Menu Example")
    If CreateMenu(0, WindowID(0))    ; menu creation starts....
      MenuTitle("    Project")
      MenuItem(1, "Open"    + #TAB$ + "Shift+O")
      MenuItem(2, "Save"    + #TAB$ + "Shift+S")
      MenuItem(3, "Save as" + #TAB$ + "Shift+A")
      MenuItem(4, "Close"   + #TAB$ + "Shift+C")
      MenuTitle("edit")
      MenuItem(1, "past"    + #TAB$ + "Shift+v")
      !var editable_elements = document.querySelectorAll(".dijitMenuBar div");
      ;.dijitMenuBar div[2] span
      !v_nb= editable_elements.length;
      Debug "nb "+nb    
      For a=0 To nb-1
        Debug "div menu "+a
      Next    
    EndIf
    BindEvent(#PB_Event_Menu, @MenuEvents())
  EndIf
Post Reply