02-27-2013 01:49 AM
Hi,
I'm using CVI 2012, and I have a question about the maximum width of a panel.
I have created a panel on the user interface editor of 3840 pixel width, but when I run my application, the displayed width of the panel seem to be 3350 pixel (and the rest is cropped).
Even if I try to enlarge the panel with mouse the limit remaining.
There is a way to pass this limit ?
Thanks for your precious support.
Solved! Go to Solution.
02-27-2013 02:14 AM
Hi,
in principle the panel width can be much larger, i.e. 32767 pixel wide, according to the help. While I have not used such large panels due to the lack of sufficiently large displays I could imagine that your observation might be caused by memory constraints...
Try calling GetPanelAttribute (, ATTR_WIDTH, ) and see what the result is, you may also try calling SetPanelAttribute (, ATTR_WIDTH, ) and see if you receive an error message.
02-27-2013 02:50 AM
Hi Wolfgang,
Thanks for your reply.
I did as you suggested:
"GetPanelAttribute" get 3344 pixel width (the portion of panel displayed), and SetPanelAttribute (panel, ATTR_WIDTH, 10000) return 0 (non errors), but the portion of panel displayed remain unchanged.
You do not need a large display to run the test.
Attached the code
Thanks again
02-27-2013 03:16 AM
OK, I have tried your code (indeed the widest panel I have seen ): In my case I receive a panel width of 3192, no error. Interestingly this width does not change for panels less high, so it is not the sheer number of pixels causing the problem. But because your and my value are different this seems to point to a graphic driver/memory issue. Sorry that I can't help you further.
By the way, if you upload code, you do not need to include the debug information (the cvibuild folder and the *.cdb file) and the executable.
02-27-2013 04:56 AM
Hi Wolfgang,
Sorry, but I don't think that this is related to a graphic driver/memory issue.
I have run the same test on my old PC with XP and CVI 7.0 and the maximum width is different (3350) for some pixels.
Probably these small differences depend on the Operative System and the window border (frame) style.
Is it possible that it is a limit derived from CVI run-time?
Thanks again
02-27-2013 05:13 AM
@Biccio wrote:
Is it possible that it is a limit derived from CVI run-time?
For this probably an anwer from an NI expert would be needed...
The number I mentioned above was obtained using CVI2012 and Win XP64.
I feel that the difference between 3344/3350 pixels in your case and 3192 pixels in my case seems too large to be explained only by a different Windows style, but let's wait what the experts say...
03-06-2013 07:20 AM - edited 03-06-2013 07:25 AM
I believe that the CVI run-time enforces a limit that is proportional to the width of the virtual screen. Check to see how the limits that you're seeing compare to the values returned by GetSystemMetrics(SM_CXVIRTUALSCREEN).
Luis
03-06-2013 07:36 AM
Luis,
if this is the case it should be mentioned in the documentation... Right now one would assume that panels can be as wide as 32767 pixels.
03-06-2013 07:39 AM
Somehow, I knew you were going to say that...
Notice how I used a weasely, vague term, like "proportional". I don't know myself what the exact limit is, certainly not enough to add it to the documentation with any certitude. But we'll see.
Luis
03-06-2013 07:45 AM
It's always good to know your friends