Sergii Posted March 31, 2021 Share Posted March 31, 2021 Доброго времени суток. Как увеличить высоту кнопок в MessageDlg? Quote Link to comment Share on other sites More sharing options...
x11 Posted March 31, 2021 Share Posted March 31, 2021 Попробуй что-нибудь из этого выжать procedure TMessages.MessageDlgMy(const Msg: string; DlgType: TMsgDlgType; Buttons: TMsgDlgButtons; CallBack: TUniDialogCallBackAnonProc); begin MessageDlg(Msg, DlgType, Buttons, CallBack); // локализация диалога if not UniMainModule.IsMobilePlatform then begin UniSession.AddJS('Ext.get("messagebox-1001_header-title-textEl").setText("' + constAttention + '")'); end else begin UniSession.AddJS('Ext.select("#ext-messagebox .x-messageboxtitle .x-text-el").setText("' + constAttention + '")'); if Buttons = mbYesNo then begin UniSession.AddJS('Ext.select("#ext-messagebox .x-button .x-text-el").elements[0].innerHTML="' + constBtnYes + '"'); UniSession.AddJS('Ext.select("#ext-messagebox .x-button .x-text-el").elements[1].innerHTML="' + constBtnNo + '"'); end; UniSession.AddJS('Ext.select("#ext-messagebox .x-icon-el").elements[0].style["background-image"]="url(files/dialoginfo24.png)";'); end; end; 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.