|
Summary
Set background and foreground colors.
Syntax
Boolean ConfigureColor ()
Description
The foreground, background and bold colors of the VT220 terminal can be changed by calling the ConfigureColor method. This action will cause the ActiveX control to bring up a dialog box that
allows the user to select new settings. The user can then choose the new colors for foreground, background and bold text from a list or select to use a custom color. For example the user may select
to change the background from Black to Blue for easier viewing.
The ConfigureColor method takes no parameters and returns a boolean. If the background, foreground and bold colors can be successfully changed, then the method returns True; otherwise, it returns
False. The application should ensure that the method was successfully executed by checking the return value.
Calling this method is equivalent to setting the VtAction property to VT_CONFIGURE_COLOR. This method can only be called after the VT220 emulation window has been created and initialized.
Example
Result = VT220Client.ConfigureColor () If Result = False Then MsgBox "Unable to configure colors", 64, "Sample Program" End If
|