Avatar of Xyptilon2
Xyptilon2Flag for China

asked on 

How do i determine if a TPopupMenu is being displayed

I'm dynamically updating a TMenuItem list, but only want to do that if the respective popup is not being displayed. Assuming the name is TPopupMenu1, how do i do this.

if (TPopupMenu1->Visible == false) {
..
}

The above doesn't work because there's no such property. Does anybody know a way to achieve this?
NetworkingEditors IDEs

Avatar of undefined
Last Comment
maggc
ASKER CERTIFIED SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Xyptilon2
Xyptilon2
Flag of China image

ASKER

Thanks, that makes sense, however, what can i use as an OnPopdown event? i mean when the popup closes again?
SOLUTION
Avatar of Surone1
Surone1
Flag of Suriname image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of maggc
maggc

Use the OnPopup event, I think that's how it is called. At this point you can dynamically restructure your whole menu right before it is being shown.
Networking
Networking

Networking is the process of connecting computing devices, peripherals and terminals together through a system that uses wiring, cabling or radio waves that enable their users to communicate, share information and interact over distances. Often associated are issues regarding operating systems, hardware and equipment, cloud and virtual networking, protocols, architecture, storage and management.

102K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo