Page 1 of 1
Problem with the title bar
Posted: Tue Jan 17, 2012 3:13 am
by Hi-Volt
Hi. I'm developing a project for a TA100 panel.
I need a popup without the close button in the right corner. I selected "No Title Bar" in the Project -> Settings -> Display/Panel menu, but the title bar is still visible.
Could you help me please?
Thank you.
Best regards
Re: Problem with the title bar
Posted: Tue Jan 17, 2012 11:28 am
by Ron L.
I see the same problem on an iX Panel TA100 here. I don't see a log for this so I will report the bug. I don't have a work-around except to use a standard non-popup screen instead.
Re: Problem with the title bar
Posted: Wed Jan 18, 2012 2:00 am
by Hi-Volt
Ok. Then the problem will probably be solved with the next ixDeveloper release, I guess....
Thank you.
Best regards
Re: Problem with the title bar
Posted: Tue Jan 08, 2013 7:39 pm
by Sarah
I copied & pasted the following from the Beijer website in the 'Support' section (it worked for me):
iX - Scripting - Remove Frame and titlebar on popup
A popup is always displayed with a frame and titlebar field.
But with a little bit of script code, you can make it disappear.
CE \ terminals
Put the following scriptline on the "Opened" event on the popup screen
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
PC (on iX Developer >=2.0)
Make sure that the popup window frame style is set to Default.
Add the following code to the public partial screen class
protected override void OnVisualParentChanged(System.Windows.DependencyObject oldParent)
{
base.OnVisualParentChanged(oldParent);
System.Windows.Window ownerWindow = Parent as System.Windows.Window;
if (ownerWindow != null)
ownerWindow.WindowStyle = System.Windows.WindowStyle.None;
}
PC (on older iX Developer <=1.31)
Put the following scriptline on the "Opened" event on the popup screen
WindowStyle = System.Windows.WindowStyle.None;
Re: Problem with the title bar
Posted: Mon Jul 29, 2013 2:24 pm
by drdeason
This code works to get rid of the title bar (I am using a T10A), but only on the PC runtime; on the hardware, the popup window still takes up as much space as it did with the title bar. Its like the popup window size on the HMI runtime is actually the popup screen size + message bar size. Notice the empty space below the popup in the second image. If I shorten the popup screen size by 25 pixels, it fixes the problem on the HMI, but cuts the popup off on the PC runtime. Can scripting correct this issue?
Re: Problem with the title bar
Posted: Mon Jul 29, 2013 3:34 pm
by mark.monroe
If you subtract 25 from the height of your dialog box then when you open the popup window on the WinCE unit it will be the correct size.
- Snap 2013-07-29 at 15.31.56.jpg (33.6 KiB) Viewed 13342 times