Jump to content

Recommended Posts

Posted

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).1096603182_DialogDemo.jpg.0ffe2308dfce50cda8115dbaa0b5ca74.jpg

If you are interesting to get the code for an alternative message dialog, just let me know.

  • Like 8
Posted (edited)

Ok, please find now attached my message dialog solution. For better understanding, I put it into a simple test environment. Finally it can be used very similar to the origin MessageDLG procedure. It supports already various settings, but still can be easily tailored to whatever needs you have.

Any feedback & comments are welcome ;)

P.S.  I just uploaded a new version with new options to change fonts, colors, icons (awesome font) and button content very easily from your application. Its a complete replacement of the existing messagedlg procedure. Just import the unit "uDialog.pas" and replace existing messagedlg calls with messagedlgA.

P.P.S. Happy New Year to everybody of this great community :excl:

 

uniGUI - MsgDLGDEmo.zip

Edited by Kattes
Updated Version
  • Like 4
  • Upvote 6
  • 3 months later...
  • 1 month later...
  • 1 month later...
Posted
On 8/2/2019 at 5:41 AM, devya said:

Nice one, really appreciated.

Can i use in my project ?

 

Yes, sure - that's it's main purpose!
You can also feel free to make any adaptions / modifications to your need. This is just a little gift from me to the UniGui community without any limitations from my side.

  • Like 2
  • 3 weeks later...
Posted
On 8/9/2019 at 3:05 PM, Kattes said:

Yes, sure - that's it's main purpose!
You can also feel free to make any adaptions / modifications to your need. This is just a little gift from me to the UniGui community without any limitations from my side.

Thank you for your contribution!

  • 2 weeks later...
  • 4 months later...
Posted

I don't know if somebody is using it. If yes I have an updated version which fixes a tiny bug and now allows nested message dialogs.

  • Like 2
  • 1 year later...
Posted
On 05/02/2020 at 13:07, Kattes said:

Não sei se alguém está usando. Se sim, tenho uma versão atualizada que corrige um pequeno bug e agora permite diálogos de mensagens aninhadas.

Boa noite, gostaria de utilizar essa unit, o link anterior esta quebrado, poderia compartilhar novamente, ou se preferir, enviar para meu email: edujgomes@gmail.com

No projeto anterior que tinhamos na empresa, eu criei uma chamada de mensagens personalizadas, evitando usar o showmessage e application.messagebox, pelo que entendi, o colega fez o mesmo, porém para unigui, que estou testando agora e migrando todo o projeto para este novo formato.

Desde já, agradeço.

  • 3 years later...
Posted
On 2/5/2020 at 6:07 PM, Kattes said:

I don't know if somebody is using it. If yes I have an updated version which fixes a tiny bug and now allows nested message dialogs.

I'm interested! Could you please share. Many thanks

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...