kompiler Member Licensed User Longtime User Apr 17, 2024 #1 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 Apr 17, 2024 #2 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
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"))
kompiler Member Licensed User Longtime User Apr 17, 2024 #3 Thank you, it works beautifully, thank you very much and have a nice day. Upvote 0
DonManfred Expert Licensed User Longtime User Apr 17, 2024 #4 kompiler said: Thank you, it works beautifully Click to expand... please mark Erels answer as the solution. Upvote 0
kompiler said: Thank you, it works beautifully Click to expand... please mark Erels answer as the solution.