i2u4ever Posted September 4, 2016 Share Posted September 4, 2016 I want to change the Font of Message Text in ShowMessage() and MessageDlg() Font size, Font name, etc. And Prompt() procedure has two fields, MessageText and Input Field. Can I change the Font of them? I want to know how to change the Font of 3 procedures. I use regular version 0.99.96.1317 Best Regards. Link to comment Share on other sites More sharing options...
Sherzod Posted September 5, 2016 Share Posted September 5, 2016 Hi, For now can you try this solution ?! 1. UniServerModule->CustomCSS: .msgbox .x-form-display-field { color: #ff33cc; font-weight: bold; font-family: "Arial" !important; font-size: 17px !important; line-height: 17px !important; } .msgbox .x-form-item-body .x-form-field { color: green; font-family: "Arial" !important; font-size: 17px !important; height: auto; } 2. MainForm->Script: Ext.onReady(function(){ Ext.Msg.addCls("msgbox"); }); Best regards. Link to comment Share on other sites More sharing options...
i2u4ever Posted September 5, 2016 Author Share Posted September 5, 2016 Fine, it works. Thank you, you an angel to me. I tried to change the Font of Button text in ShowMessage(), MessageDlg() and Prompt(), but failed. What should I do to change the Font? Best Regards. Link to comment Share on other sites More sharing options...
Sherzod Posted September 7, 2016 Share Posted September 7, 2016 I tried to change the Font of Button text in ShowMessage(), MessageDlg() and Prompt(), but failed. What should I do to change the Font? Hi, For now can you try this?!: 1. UniServerModule->CustomCSS: .msgbox .x-form-display-field { color: #ff33cc; font-weight: bold; font-family: "Arial" !important; font-size: 17px !important; line-height: 17px !important; } .msgbox .x-form-item-body .x-form-field { color: green; font-family: "Arial" !important; font-size: 17px !important; height: auto; } .msgbox .x-btn-inner { color: green; font-family: "Arial" !important; font-size: 17px !important; } 2. MainForm->Script: Ext.onReady(function(){ Ext.Msg.addCls("msgbox"); }); Best regards. Link to comment Share on other sites More sharing options...
i2u4ever Posted September 7, 2016 Author Share Posted September 7, 2016 Many Thanks. It works perfect. A few uniGUI Components and Controls have a problem applying it's Font when using the Unicode of 2 bytes Char(One Char has 2 bytes) They are ShowMessge(), MessageDLg(), Prompt(), Caption of Uniform and UniTabSheet, UniFileUpload, UniListBox and UniComboBox. Among them ShowMessge(), MessageDLg(), Prompt(), Caption of UniForm and UniTabSheet are solved by you, "Delphi Developer". The remains are UniListBox's Text and UniComboBox's Text at the DropDown Area. UniFileUpload also has a problem(Input Field and Button Text). The uniGUI Components and Controls may be perfect if the remains' Font applying is solved. None can solve this problem without you, I think. Best Regards. Link to comment Share on other sites More sharing options...
Alessandro Posted September 12, 2016 Share Posted September 12, 2016 You can do so ... showMessage('<big><big>Hello, World!</big></big>'); or showMessage('<big><big><span style="color: rgb(51, 51, 255);">Hello</span>,<span style="color: rgb(204, 0, 0);">World</span>!</big></big>'); 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