Jump to content

How To Change the Font of ShowMessage()


i2u4ever

Recommended Posts

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

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...