Recent

Author Topic: [SOLVED] QuestionDlg custom icons  (Read 812 times)

Pe3s

  • Hero Member
  • *****
  • Posts: 533
[SOLVED] QuestionDlg custom icons
« on: August 05, 2022, 10:00:52 am »
Hello forum members, is it possible to program custom icons in QuestionDlg?
« Last Edit: August 05, 2022, 11:44:36 am by Pe3s »

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: QuestionDlg custom icons
« Reply #1 on: August 05, 2022, 10:05:52 am »
I don't see such a feature in it.

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: QuestionDlg custom icons
« Reply #2 on: August 05, 2022, 10:41:04 am »
Lazarus provides many useful dialogs:
https://wiki.lazarus.freepascal.org/Dialog_Examples

If none is suitable for your case, you can write your own. Writing a custom dialog is relatively easy. You can put anything you like into it. For example, this has a TEdit and 2 TBitBtns:
https://forum.lazarus.freepascal.org/index.php/topic,52725.msg389274.html#msg389274

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: QuestionDlg custom icons
« Reply #3 on: August 05, 2022, 11:01:56 am »
If none is suitable for your case, you can write your own. Writing a custom dialog is relatively easy. You can put anything you like into it.

Am I right in thinking that, leaving aside the system provided printer dialog(u)es etc., a dialogue or messagebox is really just a custom form with no special magic?

I've occasionally considered doing my own warning/note boxes that have a timeout and prioritisation: in my case most of this sort of thing is logged and results in an audible warning, and it can be inconvenient to come back and find that there's a hundred low-priority warnings to be cleared off the screen before something more important can be done.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Pe3s

  • Hero Member
  • *****
  • Posts: 533
Re: QuestionDlg custom icons
« Reply #4 on: August 05, 2022, 11:44:21 am »
Thank you  :)

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: QuestionDlg custom icons
« Reply #5 on: August 05, 2022, 05:09:02 pm »
Am I right in thinking that, leaving aside the system provided printer dialog(u)es etc., a dialogue or messagebox is really just a custom form with no special magic?

I believe so.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: QuestionDlg custom icons
« Reply #6 on: August 05, 2022, 05:59:05 pm »
Am I right in thinking that, leaving aside the system provided printer dialog(u)es etc., a dialogue or messagebox is really just a custom form with no special magic?

I believe so.

Thanks.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018