B4J Question Font size in ContextMenu

kompiler

Member
Licensed User
Longtime User
Hi, I need an example of how to set the font size in ContextMenu for TableView.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
1713335154961.png


Add a file named menu.css with (name isn't important):
B4X:
.context-menu {
   -fx-background-color: #C8CFD7;
  -fx-border-color: #BBC2CC;
  -fx-text-fill: white;
  -fx-font-size: 18px;
   -fx-font-weight: bold;
}

B4X:
B4XPages.GetNativeParent(Me).Stylesheets.Add(xui.FileUri(File.DirAssets, "menu.css"))
 
Upvote 1

kompiler

Member
Licensed User
Longtime User
Hello, is it possible to adjust the context-menu font size in code? When the window is maximized and all elements are enlarged, then the context-menu size does not change - it has css style.
 
Upvote 0
Top