02-21-2008 04:09 PM
02-21-2008 04:51 PM
Yes, I work for NI. For future reference, whenever you see someone's tag show up in blue instead of black, that means that the person works for NI.
I have dual citizenship (American and Portuguese). Are you asking because the screenshots might contain some sensitive information? If so, I would recommend that you not post them here, and instead submit them to the NI ftp site. Just let me know once they're there.
Luis
02-21-2008 06:12 PM
02-22-2008 11:04 AM
02-25-2008 08:59 AM
02-25-2008 03:38 PM
It works when I changed to a true type font.
Now, why does the resolution of my current display matter when I save the uir file? Can you please explain that?
02-26-2008 08:30 AM
Letty,
While it has been a while since I delved into this, IIRC it is due to the "Resolution Adjustment (%)" setting in the UIR editor. That scaling is applied when the panel is loaded into the editor, and when displayed when running your app -- and can cause havoc if you edit it with different screen resolution. You might want to try turning it off in the UIR editor and use SetSystemAttribute() to set the resolution adjustment programmatically.
Ian
02-26-2008 10:32 AM
Letty,
I'll just add to what Ian wrote by saying that the point of the resolution adjustment setting is to ensure that the panels that you create in the UI editor maintain the same physical size, regardless of the resolution of the display that ends up loading the panel. For example, if your panel takes up 80% of the screen at a 1024x768 resolution, setting this option to 100% ensures that the panel will also take up 80% of the screen at a 1600x1200 resolution. Therefore, enabling that option causes the size of your UI in pixels to be tied to the current resolution, at the time that you save the panel. If the resolution later changes, then so will the UI sizes.
Luis
02-26-2008 01:21 PM
Ian,
So do I just call SetSystemAttribute one time before any call to LoadPanel?
03-03-2008 10:40 AM
Letty,
I really have not used the feature but based on the help, "yes":
Constant: ATTR_RESOLUTION_ADJUSTMENT
Data Type: int
Description: This attribute allows you to override the panel settings in the .uir file, in which case you must set this attribute before you call LoadPanel or LoadPanelEx. See the description of the ATTR_RESOLUTION_ADJUSTMENT panel attribute.
0 = Disabled
100 = 100 percent adjustment
The User Interface Library maintains a separate value for this attribute for each thread in your program.
Default Value: VAL_USE_PANEL_SETTING
Values:
VAL_USE_PANEL_SETTING