LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Panels Cutted

I have a Problems with Panels.
I programmed a Software and on my PC and on 4 other PC it looks fine.
But on one PC all panels are cutted to the size of the Main-Panel.

Here is the Main-Panel of the Software:



And here is another Panel which should be much bigger:



What can i do, that the Panels have there normal size?

thanks

Programmer1234
0 Kudos
Message 1 of 5
(3,239 Views)
Programmer1234,
Could you provide more information please. Which software did you use to create this front panel, Labview, CVI or other? And what version? I presume the images you attached are from your application, is it possible to build the application again? Is it not possible to resize these windows?
Regards,
0 Kudos
Message 2 of 5
(3,224 Views)
I programmed this SW in LabWindows CVI Version 7.0.0.

The Images are from my Application. Normaly the Panel from the second Screenshot is much bigger but because of this problem the panel is cutted to the size of the Main-Panel.
No it is not possible to resize this Panels. i have deactivated this feature.

I can rebuild this application as much as i want and on the most PC it works perfect except one PC with Windows 2000 which have this problem.
I also tried other PC with Windows 2000 and it worked fine..

so my first try would be to resize the panel automaticaly after the loading to the size i want.

any other ideas?

greets
Programmer1234
0 Kudos
Message 3 of 5
(3,191 Views)
Hi Programmer,

easily use the function SetPanelSize:

Sets the height and width of the panel. The top and left edges of the panel remain constant.

Although you can change the height or width independently using SetPanelAttribute, you must use SetPanelSize if you want to change both the height and width of a panel for which you have enabled the ATTR_SCALE_CONTENTS_ON_RESIZE attribute. When you change the height and width in one call, SetPanelSize scales and redraws the panel only once.

To change the position of a panel, call SetPanelPos.


Prototype

int SetPanelSize (int Panel_Handle, int Height, int Width);



Hope this Helps,

Alex Rudolph

NI Switzerland

Message 4 of 5
(3,175 Views)
Thanks.. it worked with the Resize-Funktion:

I wrote it like this:

int CVICALLBACK REG_LOAD (int panel, int event, void *callbackData,
        int eventData1, int eventData2)
{
    switch (event)
        {
        case EVENT_GOT_FOCUS:
            SetPanelSize(panel, 715, 1014);
            break;
        case EVENT_LOST_FOCUS:

            break;
        case EVENT_CLOSE:

            break;
        }
    return 0;
}

Message Edited by Programmer1234 on 10-19-2007 09:05 AM

0 Kudos
Message 5 of 5
(3,152 Views)