Jump to content

Search the Community

Showing results for tags 'messagedlg'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • uniGUI Public
    • Announcements
    • General
    • Feature Requests
    • Installation
    • Deployment
    • Other Platforms
  • Licensing
    • Licensing
    • Ordering uniGUI
  • Bug Reports
    • Active Reports
    • Closed Reports
    • Old Bug Reports
  • uniGUI Development
    • General Development
    • uniGUI Releases & Roadmaps
    • Utilities
  • Mobile Platform
    • uniGUI Mobile
    • Mobile Browsers
  • Users Area
    • Sample Projects
    • Components and Code Samples
    • Third Party Components
  • Non-English
    • Non-English
  • Miscellaneous
    • Hosting
    • Server Security
    • Jobs

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 16 results

  1. I have used this code for a long time but now need 4 Buttons instead of 3. At present it only paints the first 3 buttons - any ideas how to force the 4th button to be painted ? Thanks in advance MessageDlg(DateStr, mtConfirmation, [mbOK, mbYes, mbNo, mbAll], msgMyCallback); UniSession.AddJS('Ext.select("#messagebox-1001 .x-btn").elements[0].querySelectorAll(''[data-ref="btnInnerEl"]'')[0].innerHTML="One"'); UniSession.AddJS('Ext.select("#messagebox-1001 .x-btn").elements[1].querySelectorAll(''[data-ref="btnInnerEl"]'')[0].innerHTML="Two"'); UniSession.AddJS('Ext.select("#messagebox-1001 .x-btn").elements[2].querySelectorAll(''[data-ref="btnInnerEl"]'')[0].innerHTML="Three"'); UniSession.AddJS('Ext.select("#messagebox-1001 .x-btn").elements[3].querySelectorAll(''[data-ref="btnInnerEl"]'')[0].innerHTML="Four"');
  2. I have tried the following but it fails MessageDlg('Choose', mtConfirmation, [mbOK, mbYes, mbNo, mbCancel], MyCallback); UniSession.AddJS('Ext.select("#ext-messagebox .x-button .x-text-el").elements[0].innerHTML="A"'); UniSession.AddJS('Ext.select("#ext-messagebox .x-button .x-text-el").elements[1].innerHTML="B"'); UniSession.AddJS('Ext.select("#ext-messagebox .x-button .x-text-el").elements[2].innerHTML="C"'); UniSession.AddJS('Ext.select("#ext-messagebox .x-button .x-text-el").elements[3].innerHTML="D"'); Please advise - thanks
  3. I was looking for an alternative for the default message dialog, which gets shipped with uniGUI. Goal was to have something which fits 100% to the design of my pages. I am sure that somebody will now say "Use CSS styles" to achieve what you are looking for. But to be honest digging for the right CSS settings finally would take even more time than my little development and finally is not as flexible. Below is a screen shot of the message dialog I tailored for my needs. As you can see it also is already adjusted to my native language (German). If you are interesting to get the code for an alternative message dialog, just let me know.
  4. Ни в мобильной, ни в десктопной версии диалога MessageDlg() заголовок не локазизован. В мобильной версии (картинка 2) в том числе и кнопки не локазизованы.
  5. ORLANDO

    Messagedlg

    preciso fazer uma opcao com messagedlg tipo voce e casado: se sim executa uma procedure se nao for executa outra procedure, mas ai ele nao executa corretamente, fiz assim no botaoonclick var vbcasado:booelan; begin vbcasado:=false; MessageDlg('Vc é Casado?', mtConfirmation, mbYesNo, procedure(Sender: TComponent; Res: Integer) begin case Res of mrYes : vbcasado :=true ; mrNo : vbcasado:=false; end; end ); if vbcasado then casado else solteiro; end; O problema e que ele executa como false, depois que ele pergunta, ou seja, ele nao para para esperar a resposta e depois dar continuidade. Alguem sabe como resolver isso.
  6. uniGUI DOES Humane.JS (Updated) >>Why humane.js: A simple, modern, framework-independent, well-tested, unobtrusive, notification system. Utilizes CSS transitions when available, falls back to JS animation when not available. Includes mobile support and tested OK on uniGUI. It's not a component, just classes calling procedures hence no future problems with uniGUI and Ext.JS updates. You can work with no worries in Desktop and Mobile (Android e iOS) and is very simple to use IN your current projects and get read of ShowMessages and Messagedlg with more style and nice UI. See Humane.ShowMessage ( mytext, theme, style). I create this procedure to facilitate showmessage replacement and usage. >>Supports and compatibility: Internet Explorer 7+ Firefox 3+ Chrome 9+ Safari 3+ Opera 10+ iOS 4+ Android 2+ Uses CSS Transitions where available otherwise falls back to JS animation, degrades gracefully. >>How to use in uniGUI 1-Declare in ServerModule.CustomFiles files/humane.js files/themes/human.css files/themes/libnotify.css files/themes/bigbox.css files/themes/boldlight.css files/themes/jackedup.css files/themes/original.css files/themes/flatty.css 2- Declare humanejs at USES clause of your unit. 3- See main example Desktop or Mobile. 4- Same code works the same in Desktop and Mobile. 5- This example also contains Mainm Form for your tests. >>This version is updated to the latest humane.js a. New themes. b. Procedures refactored to Delphi code. c. and I added some new codes to the original since it had some major changes to make easy theme selection, style etc. See procedures in humanejs.pas on Mainform. >>This code is originally based on zilav post, see: http://forums.unigui.com/index.php?/topic/1808-humanejs-notification-system-for-unigui/ Project available at https://www.unigui.express
  7. Hi, I use the below code to change the caption and button in web application; however, it does not work in mobile application. messagedlg('test', mtError, [mbOK], Nil); UniSession.AddJS('Ext.get("messagebox-1001_header-title-textEl").setText("Your Caption")'); UniSession.AddJS('Ext.get("button-1005-btnInnerEl").setText("Your Button")'); Can anyone help?
  8. Hi all, it seems that MessageDlg function only supports a few different buttons: - mbOk - mbYes - mbNo - mbCancel I am unable to see mbAll, mbNotToAll, mbRetry, ... Is that something that I could fix ? I really need the All button in addition to Yes and No. Thanks Andrea
  9. Ejemplo al presionar el botón ok procedure btnOKClick(Sender: TObject); procedure Imprimir; begin UniMainModule.CrearWebFilePath; UniSession.AddJS('window.open('+QuotedStr(UniMainModule.WebFilePath)+',"_blank", "status=no,location=no,resizable=no,dependent=yes,toolbar=no,menubar=no", "false");' ); end; begin UniScreenMask1.AttachedControl := btnOk; UniScreenMask1.TargetControl := Self; Self.MessageDlg('Desea imprimir el contenido?', mtConfirmation, mbYesNo, procedure (Sender: TComponent; Res: Integer) var cerrarModal: boolean; begin cerrarModal := Res = mrNo; if not cerrarModal then Imprimir else CloseModal; end); end; En ese ejemplo no sale nunca el mensaje, y mucho menos se abre la nueva ventana que contendría el archivo pdf a imprimir. La prueba fue hecha sobre Chrome. Porqué puede ser que no dispare el messagedlg?. Tampoco cierra el form porque nunca se ejecuta el callback
  10. Hello How to change the title of the messagedlg using: UniSession.AddJS('Ext.get("messagebox-1001_header_hd-textEl").setHTML("Caption text")'); ok, that's how it works for me: MessageDlg('test messagedlg'+ #13#10+ ' Confim ?'+ #13#10, mtWarning, mbYesNo, x...); UniSession.AddJS('Ext.get("messagebox-1001_header_hd-textEl").setHTML("Caption text")'); My question: how to include UniSession.AddJS in the example below: procedure TMainForm.UniBitBtn1Click(Sender: TObject); var vConfirm: Bool; begin MessageDlg('Message Test. Confirm ?', mtConfirmation, mbYesNo, procedure (Sender: TComponent; Res: Integer) begin vConfirm := Res = mrYes; if vconfirm then Memo1.Lines.Add('Confirm = True') else Memo1.Lines.Add('Confirm = False'); end); end; I need an example, please. Thank you
  11. Hi Can I add YesToAll ,NoToAll to messagedlg constant? I want set this mbYesNoYesToAllNoToAll. Best Regards.
  12. Aşağıdaki Şekilde Çağrılan Message Dialog Nesnesi Form Üzerindeki Nesneleri Block Etmiyor ve TAB Tuşu ile üzerlerinde Gezine biliniyor Hatta Değişiklik bile yapılabiliyor Bunu Engellemenin Bir Yöntemi Varmıdır. Yani MessageDLG Nesnesi ShowModal Açılabilirmi? MessageDlg('Formu Kapatmak Üzeresiniz...', mtWarning, mbYesNo, CallBack); procedure TUniForm1.CallBack(Sender: TComponent; Res: Integer); begin case Res of mrYes : Begin Close(); Exit; End; mrNo : Begin UniEdit1.SetFocus; Exit; End; end; end;
  13. 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.
  14. Hello friends, someone could help me? In the code below only the last message is displayed to the user in a Form login can guide me if i am doing something wrong? I thank you. if Trim(edtUsuario.Text)='' then begin MessageDlg('Digite o Usuário Corretamente!' ,mtWarning, [mbOK], procedure(Sender: TComponent; Res: Integer) begin edtUsuario.SetFocus; exit; end ); end; if Trim(edtSenha.Text)='' then begin MessageDlg('Digite a Senha Corretamente!' ,mtWarning, [mbOK], procedure(Sender: TComponent; Res: Integer) begin edtSenha.SetFocus; exit; end ); end;
  15. Hi Friends, A simple animation for standard ShowMessage and MessageDlg... Add this CSS in UniServerModule.CustomCSS. .x-message-box { -moz-transition: 0.5s ease-out; /* for Firefox 15 */ -webkit-transition: 0.5s ease-out; /* for Chrome and Safari */ transition: 0.5s ease-out; } http://www.w3schools.com/cssref/css3_pr_transition.asp Best regards.
  16. helo every body, how can i catch a value of messagedlg function with mtconfirmation ? i don't know how to know which button is pressed was it yes or no. here is my code MessageDlg(aPesan,mtConfirmation,mbYesNo) in desktop application i just do this if MessageDlg(aPesan,mtConfirmation,mbYesNo,0)=mrYes then begin //.......blah blah blah end; how do i implement the same things in unigui ? thanks in advance
×
×
  • Create New...