Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
BitBtn with icons to MessageDlg
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Extended and XML Frames o...
by
matthius
[
Today
at 01:01:09 am]
var vs out (including "co...
by
440bx
[
Today
at 12:56:32 am]
Which Linux version
by
cdbc
[August 12, 2026, 11:22:16 pm]
Strangely - Not a questio...
by
Bart
[August 12, 2026, 10:26:58 pm]
Selected Text get number ...
by
Martin_fr
[August 12, 2026, 09:47:56 pm]
To DebugLn or not to Debu...
by
Martin_fr
[August 12, 2026, 09:01:02 pm]
Unleashed Pascal (async/a...
by
Martin_fr
[August 12, 2026, 08:54:07 pm]
New Big Integer library i...
by
ad1mt
[August 12, 2026, 07:16:56 pm]
The best name for procedu...
by
LemonParty
[August 12, 2026, 07:02:53 pm]
Why does Free Pascal use ...
by
440bx
[August 12, 2026, 07:02:28 pm]
[RE-SOLVED] Splitting an ...
by
madref
[August 12, 2026, 04:58:26 pm]
'ReadStr' ?
by
J-G
[August 12, 2026, 03:37:39 pm]
Fpcupdeluxe
by
DonAlfredo
[August 12, 2026, 02:20:26 pm]
Trayslate 1.5.0 - Free tr...
by
AlexanderT
[August 12, 2026, 02:18:28 pm]
TlsLib4Pascal
by
Xor-el
[August 12, 2026, 02:16:41 pm]
enable easy marker moveme...
by
Paolo
[August 12, 2026, 01:30:39 pm]
Error installing EyeCandy...
by
JuhaManninen
[August 12, 2026, 08:46:00 am]
Lazarus undead repository...
by
CM630
[August 11, 2026, 11:40:09 pm]
LRS Explorer
by
CM630
[August 11, 2026, 11:33:24 pm]
Identify network devices
by
Warfley
[August 11, 2026, 10:55:13 pm]
Lazarus Bugfix Release 4....
by
geraldholdsworth
[August 11, 2026, 04:55:42 pm]
[Solved[ How to define th...
by
Mike.Cornflake
[August 11, 2026, 03:42:11 pm]
Dataset EnableControls/Di...
by
Mike.Cornflake
[August 11, 2026, 03:37:42 pm]
Debugging in a real termi...
by
Martin_fr
[August 11, 2026, 02:59:09 pm]
how to bring in view the ...
by
Aruna
[August 11, 2026, 02:33:55 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: BitBtn with icons to MessageDlg (Read 2370 times)
Milsa
Sr. Member
Posts: 328
BitBtn with icons to MessageDlg
«
on:
October 13, 2015, 07:30:24 pm »
I want show MessageDlg Window with icons on buttons (BitBtn). It is possible?
Logged
I work with Lazarus 4.0, FPC 3.2.2, date 2025-05-03
This information is actual to: 3rd Aug 2025
wp
Hero Member
Posts: 13646
Re: BitBtn with icons to MessageDlg
«
Reply #1 on:
October 14, 2015, 01:21:13 am »
Use CreateMessageDialog from Dialogs.pas - it looks a bit different, though:
Code: Pascal
[Select]
[+]
[-]
function
MyMessageDlg
(
const
aMsg
:
string
;
DlgType
:
TMsgDlgType
;
Buttons
:
TMsgDlgButtons
)
:
TModalResult
;
begin
with
CreateMessageDialog
(
aMsg
,
DlgType
,
Buttons
)
do
begin
Result
:
=
ShowModal
;
Free
;
end
;
end
;
procedure
TForm1
.
Button1Click
(
Sender
:
TObject
)
;
begin
MyMessageDlg
(
'Something is wrong...'
,
mtError
,
[
mbOK
,
mbCancel
]
)
;
end
;
Logged
Milsa
Sr. Member
Posts: 328
Re: BitBtn with icons to MessageDlg
«
Reply #2 on:
October 14, 2015, 09:16:41 pm »
Thank you very much.
Logged
I work with Lazarus 4.0, FPC 3.2.2, date 2025-05-03
This information is actual to: 3rd Aug 2025
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
BitBtn with icons to MessageDlg
TinyPortal
© 2005-2018