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
Problem with the title bar
Re: Problem with the title bar
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.
Best Regards,
Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
Re: Problem with the title bar
Ok. Then the problem will probably be solved with the next ixDeveloper release, I guess....
Thank you.
Best regards
Thank you.
Best regards
Re: Problem with the title bar
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;
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
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?
- Attachments
-
- Desired.jpg (88.07 KiB) Viewed 13348 times
-
- Actual.jpg (115.44 KiB) Viewed 13348 times
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Problem with the title bar
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.
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer