WinStudio
IWSApplication interface
Retrieves the value of a WinStudio user preference setting.
Application.GetUserPreferenceValue( string )
Part |
Description |
| string | Required. Name of the user preference setting for which you want to retrieve the value. |
The return value is a string containing the value of the designated user preference setting or a Boolean value indicating the user preference setting.
The following table lists the user preference values for which you can request the value, along with the possible return values:
| User Preference Value Names | Possible Values |
|---|---|
| BaseFormForeColorDescriptor | String using RGB format (rrR,ggG,bbB) |
| BaseFormBackColorDescriptor | String using RGB format (rrR,ggG,bbB) |
| NormalForegroundColorDescriptor | String using RGB format (rrR,ggG,bbB) |
| NormalBackgroundColorDescriptor | String using RGB format (rrR,ggG,bbB) |
| ProtectedForegroundColorDescriptor | String using RGB format (rrR,ggG,bbB) |
| ProtectedBackgroundColorDescriptor | String using RGB format (rrR,ggG,bbB) |
| RequiredForegroundColorDescriptor | String using RGB format (rrR,ggG,bbB) |
| RequiredBackgroundColorDescriptor | String using RGB format (rrR,ggG,bbB) |
| TBDForegroundColorDescriptor | String using RGB format (rrR,ggG,bbB) |
| TBDBackgroundColorDescriptor | String using RGB format (rrR,ggG,bbB) |
| InboxNewMessagesUseBoldFont | Boolean:
|
| InboxNewMessagesUseBGColor | Boolean:
|
| InboxNewMessagesBGColorDescriptor | String using RGB format (rrR,ggG,bbB) |
For more information about these user preferences, see the WinStudio users' Help: From the Help menu, select Contents and Index. Then, in the Contents pane, select Basics > Getting Around in the System > Setting Preferences > Run Time Settings.
Dim inboxNewMessagesUseBGColor As String
Dim inboxNewMessagesBGColorDescriptor As String
inboxNewMessagesUseBGColor = Application.GetUserPreferenceValue("InboxNewMessagesUseBGColor")
inboxNewMessagesUseBoldFont = Application.GetUserPreferenceValue("InboxNewMessagesUseBoldFont")
If (inboxNewMessagesUseBGColor = "1") Then
inboxNewMessagesBGColorDescriptor = Application.GetUserPreferenceValue("InboxNewMessagesBGColorDescriptor")
End If