Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Joint twe popup ?
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
FPC Unleashed (inline var...
by
MarkMLl
[
Today
at 09:18:30 am]
C header function with on...
by
440bx
[
Today
at 09:13:38 am]
[FPC 3.2.4, Windows] PTC ...
by
Roland57
[
Today
at 09:07:38 am]
Delimited text - how find...
by
paweld
[
Today
at 08:50:14 am]
Ann: Deinline: a de-inlin...
by
Thaddy
[
Today
at 06:37:19 am]
(Solved)TUpDown KeyDown ...
by
LeP
[April 15, 2026, 11:21:09 pm]
AI assisted translation o...
by
MathMan
[April 15, 2026, 10:47:11 pm]
Zipper: Addition of mult...
by
marcov
[April 15, 2026, 10:35:15 pm]
Seeking advice on setting...
by
gidesa
[April 15, 2026, 07:02:04 pm]
GTK3: FillRect() mispaint...
by
baldzhang
[April 15, 2026, 06:32:52 pm]
Lazarus Image Editor
by
Paolo
[April 15, 2026, 05:37:30 pm]
Ann: DeCoperators
by
Thaddy
[April 15, 2026, 01:29:40 pm]
RunFormula: math expressi...
by
Handoko
[April 15, 2026, 01:24:30 pm]
How to merge multiple cla...
by
cdbc
[April 15, 2026, 12:48:42 pm]
PWM signals, atmega328p, ...
by
pascalbythree
[April 15, 2026, 12:39:25 pm]
I hope FreePascal can sup...
by
Zvoni
[April 15, 2026, 10:22:18 am]
Remote desktop software i...
by
creaothceann
[April 15, 2026, 10:09:49 am]
Naming daemons during ins...
by
LeP
[April 15, 2026, 08:46:39 am]
[SOLVED] Can't pass strin...
by
mas steindorff
[April 14, 2026, 08:51:15 pm]
Fast Canvas Library V1.05...
by
Gigatron
[April 14, 2026, 08:39:38 pm]
Translation of Lazarus ID...
by
pmralbuquerque
[April 14, 2026, 07:47:01 pm]
Necromancer's Dos Navigat...
by
Thaddy
[April 14, 2026, 06:26:29 pm]
Trying to plot points, bu...
by
garymq
[April 14, 2026, 02:01:36 pm]
SPC Player Library
by
creaothceann
[April 14, 2026, 01:59:25 pm]
Fractal of Mandelbrot
by
Boleeman
[April 14, 2026, 10:20:21 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Joint twe popup ? (Read 693 times)
majid.ebru
Hero Member
Posts: 530
Joint twe popup ?
«
on:
November 01, 2022, 12:15:43 pm »
Hi
i have two popup.
how can i joint these and show them in one pupop ?
thank you
Logged
wp
Hero Member
Posts: 13486
Re: Joint twe popup ?
«
Reply #1 on:
November 01, 2022, 12:53:20 pm »
Basic idea:
Code: Pascal
[Select]
[+]
[-]
procedure
MergePopups
(
AResult
,
APopup1
,
APopup2
:
TPopupMenu
)
;
var
i
:
Integer
;
item
:
TMenuItem
;
begin
AResult
.
Items
.
Clear
;
for
i
:
=
0
to
APopup1
.
Items
.
Count
-
1
do
begin
item
:
=
TMenuItem
.
Create
(
AResult
.
Owner
)
;
item
.
Assign
(
APopup1
.
Items
[
i
]
)
;
AResult
.
Items
.
Add
(
item
)
;
end
;
item
:
=
TMenuItem
.
Create
(
AResult
.
Owner
)
;
item
.
Caption
:
=
'-'
;
AResult
.
Items
.
Add
(
item
)
;
for
i
:
=
0
to
APopup2
.
Items
.
Count
-
1
do
begin
item
:
=
TMenuItem
.
Create
(
AResult
.
Owner
)
;
item
.
Assign
(
APopup2
.
Items
[
i
]
)
;
AResult
.
Items
.
Add
(
item
)
;
end
;
end
;
«
Last Edit: November 01, 2022, 12:56:04 pm by wp
»
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Joint twe popup ?
TinyPortal
© 2005-2018