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
Rolling releases Lazarus[...
by
Martin_fr
[
Today
at 03:11:01 pm]
Question about optimizer ...
by
Martin_fr
[
Today
at 02:57:57 pm]
Adjacent rectangles not a...
by
jamie
[
Today
at 02:36:34 pm]
Very simple Style Manager...
by
sgj
[
Today
at 02:21:54 pm]
How to set the Excel cell...
by
dodgex
[
Today
at 02:06:25 pm]
PeaZip project turns 20 t...
by
JanRoza
[
Today
at 01:57:46 pm]
How to implement multiple...
by
bills
[
Today
at 01:26:29 pm]
AdvancedHTTPServer: A Go-...
by
CynicRus
[
Today
at 12:48:43 pm]
RPNCalc in Lazarus
by
jwdietrich
[
Today
at 12:13:43 pm]
Feature announcement: Fun...
by
cocce
[
Today
at 12:06:51 pm]
Is this Pascal Compiler t...
by
HKPhysicist
[
Today
at 11:11:59 am]
Maze Makers: Modified Cyl...
by
Boleeman
[
Today
at 08:51:29 am]
Olympic Rings (Interleave...
by
Boleeman
[
Today
at 04:28:24 am]
Unit decfloat
by
MathMan
[January 17, 2026, 08:29:41 pm]
Funny
by
Ten_Mile_Hike
[January 17, 2026, 08:18:39 pm]
New book on Object Pascal
by
Ten_Mile_Hike
[January 17, 2026, 07:34:06 pm]
New open source component...
by
salvadordf
[January 17, 2026, 06:26:56 pm]
Strings in Free Pascal: I...
by
Bart
[January 17, 2026, 05:33:17 pm]
Desenvolvimento visual pa...
by
sc10tech
[January 17, 2026, 05:17:58 pm]
Como compilar uma lib par...
by
sc10tech
[January 17, 2026, 05:05:14 pm]
The compiler fails to war...
by
AlexanderK
[January 17, 2026, 04:35:04 pm]
Fast Canvas Library V1.05...
by
Gigatron
[January 17, 2026, 02:34:26 pm]
CudaText editor (written ...
by
andersonscinfo
[January 17, 2026, 01:57:57 pm]
AVRPascal – free code edi...
by
ackarwow
[January 17, 2026, 10:57:09 am]
RTTIPropertyGrid expand
by
ig
[January 17, 2026, 09:11:09 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: BitBtn with icons to MessageDlg (Read 2312 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: 13334
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