Options»Preferences
Select Options»Preferences to open the Editor Preferences dialog box.
Use the User Interface Editor Preferences section to set options that affect the operation of the User Interface Editor.
- Initial editor background color—Specifies the initial background color of the User Interface Editor.
- Default—Restores the initial background color of the User Interface Editor to the default color.
- Use localized decimal symbol—Replaces the traditional decimal symbol used by LabWindows/CVI in numeric, graph, and table controls with the decimal symbol specified in the Regional Settings Properties configuration of your Windows Control Panel.
- Automatically save copy of UIR as TUI file—Saves the .uir file as an ASCII text formatted .tui file. LabWindows/CVI saves the .tui file in the same directory and with the same name as the .uir file.
- Show Editor Grid Lines—Displays a grid on user interface panels. You can use the grid lines to align and resize controls.
- Grid Line Type—Specifies the appearance of the grid lines. You can select crosses, solid lines, dots, and dotted lines.
- Grid Line Spacing—Specifies the amount of space that appears between grid lines. The default is 25 pixels.
- Snap to Grid Lines—Snaps a control to the nearest grid line as you move the control on the panel or resize the control. Snapping to grid lines works only when you move or resize the control within a certain distance of a grid line.
Use the Preferences for New Panels section to set initial attribute values for each panel that you create in the User Interface Editor.
- Resolution Adjustment(%)—Specifies the degree
to which LabWindows/CVI scales panels and their contents when
you display them on screens with resolutions different than the one
on which you create them. This option also appears in the Other
Attributes dialog box, which you can open from the Edit Panel
dialog box.
To programmatically override this setting, call SetSystemAttribute with the ATTR_RESOLUTION_ADJUSTMENT attribute before calling LoadPanel or LoadPanelEx. - Conform to System Colors—Forces panels and
the controls they contain to use the system colors. This option also
appears in the Other Attributes dialog box, which you can open from
the Edit Panel dialog box.
To programmatically set this option, call SetPanelAttribute
with the ATTR_CONFORM_TO_SYSTEM attribute.
When you enable this option, you cannot change any panel or control colors in the User Interface Editor. However, you can change panel or control colors programmatically.
Note Some controls have different default system colors when they are in indicator mode than when they are in other control modes. - Use Windows Visual Styles for Controls—Specifies whether user interface control appearance is based on the Theme setting on Windows. You can override this behavior for individual controls by enabling the ATTR_DISABLE_PANEL_THEME attribute.
When you enable this option, you cannot change most panel or control colors in the User Interface Editor. Also, setting the colors through the User Interface Library attributes has no effect.Note The tab control can draw based on the Windows Theme setting only when the tabs appear on the top of the tab control. If you change the tab location, the theming is disabled. - Use system colors as defaults for panels and controls—Forces LabWindows/CVI to use the system colors as the initial colors for panels and controls you create. You can change the colors without restriction.
- Background color—Specifies the default background color of user interface panels.
- Frame color (child panels only)—Specifies the default color of the frame surrounding the child panel.
- Title bar color (child panels only)—Specifies the default color of the titlebar for child panels.
![]() |
Note You must disable two options, Conform to System Colors and Use system colors as defaults for panels and controls, to set the Background color, Frame color (child panels only), and Title bar color (child panels only) options. To change each of these three options in the User Interface Editor, you can use the Paintbrush tool on the background, frame, or title bar of a panel. To set these colors programmatically, use SetPanelAttribute with the ATTR_BACKCOLOR, ATTR_FRAME_COLOR, and ATTR_TITLE_BACKCOLOR attributes. |
- Encoding—Specifies the character encoding. Select Use Project Encoding, UTF-8, or ANSI. Use Project Encoding is the default setting and will set the panel encoding to the project encoding specified in the New Project Options dialog box.
Use the Preferences for New Controls section of the Editor Preferences dialog box to set initial attribute values for each control that you create in the User Interface Editor.
- Control Text Style—Sets the initial font and text style for all new controls.
- Label Text Style—Sets the initial font and text style for all labels.
Click More to open the Other User Interface Editor Preferences dialog box.