Hello,
What is the best way to generate a popup with no title bar and not have the issue with the popup being hidden by another panel. I want it to be a part of the panel in which it was generated.
I would like to utilize a pop-up menu in which there is no title bar or menu bar. I will program my own "Close" menu button
I have tried the follow below with no success - the title bar still displays Note: The module is being opened in the user interface and not in quick test
int titleBar (bool bFlag [, string moduleName, string panelName])
This command displays the popup just as I want it to display However if the user clicks on the panel behind the popup it covers up the pop up, which I do not want
ModuleOnWithPanel("addModule",600,320,200,300,1,1, "none",filepath,"Add a Module",makeDynString()); I can use this if there is a way to disable panel behind the
popup until the user closes the popup.
Thanks
Lori
Pop-ups without title or menu bar
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Pop-ups without title or menu bar
A popup can be implemented by opening a child panel. A child panel is a child window of a Module. When using ModuleOnWithPanel() you open a new main window, which has no parent/child relation to the window
from which it was opened, and therefore can be also on top of the originating module.
To get rid of the titlebar and window frame, use
in the childpanel init script
from which it was opened, and therefore can be also on top of the originating module.
To get rid of the titlebar and window frame, use
Code: Select all
self.windowFlags("FramelessWindowHint");
- lakefalos
- Posts:27
- Joined: Thu Feb 01, 2018 3:13 pm
Re: Pop-ups without title or menu bar
Thanks so much Martin - you saved me lots of time!