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... Quote 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 Quote 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.