Problem with the title bar

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
Hi-Volt
Posts: 29
Joined: Mon Sep 12, 2011 4:52 am

Problem with the title bar

Post 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

User avatar
Ron L.
Posts: 214
Joined: Fri Jul 15, 2011 3:21 pm

Re: Problem with the title bar

Post 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.
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

Hi-Volt
Posts: 29
Joined: Mon Sep 12, 2011 4:52 am

Re: Problem with the title bar

Post by Hi-Volt »

Ok. Then the problem will probably be solved with the next ixDeveloper release, I guess....
Thank you.
Best regards

Sarah
Posts: 12
Joined: Tue Dec 11, 2012 12:43 am

Re: Problem with the title bar

Post 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;

drdeason
Posts: 21
Joined: Wed Jun 26, 2013 6:06 am

Re: Problem with the title bar

Post 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?
Attachments
Desired.jpg
Desired.jpg (88.07 KiB) Viewed 11964 times
Actual.jpg
Actual.jpg (115.44 KiB) Viewed 11964 times

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Problem with the title bar

Post 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
Snap 2013-07-29 at 15.31.56.jpg (33.6 KiB) Viewed 11962 times
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply