estrify Posted March 20, 2020 Share Posted March 20, 2020 Hi, I need to add a title or convert first item into one in a popup menu. Has anyone a sample of how to do so? Thanks in advance... Link to comment Share on other sites More sharing options...
Sherzod Posted March 20, 2020 Share Posted March 20, 2020 2 hours ago, estrify said: I need to add a title Hi, One possible solution I think. 1. type TXPopupMenu = class(TUniPopupMenu) end; 2. procedure TMainForm.UniFormReady(Sender: TObject); begin TXPopupMenu(UniPopupMenu1).MenuControl.JSInterface.JSConfig('title', ['NewTitle']); end; 3. CustomCSS: .x-title.x-menu-header-title { height: 25px; text-align: center; font-weight: bold; background-image: linear-gradient(#dae7f6, #cddef3 45%, #abc7ec 46%, #abc7ec 50%, #b8cfee 51%, #cbddf3); } 1 Link to comment Share on other sites More sharing options...
estrify Posted March 20, 2020 Author Share Posted March 20, 2020 Perfect!!! As usual ... Thank you very much... Please, could you take a look at this one? http://forums.unigui.com/index.php?/topic/14036-no-scrollbars-when-mfpagetrue-and-autoscrolltrue/ It is more important to me than it seems ... Thank you in advance... 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now