Hi, i am trying to identify the selected text background color from the rumba green screen. Am using rumba 7.5.2 version.
please advise.
#Rumba
Hi, i am trying to identify the selected text background color from the rumba green screen. Am using rumba 7.5.2 version.
please advise.
Hi, i am trying to identify the selected text background color from the rumba green screen. Am using rumba 7.5.2 version.
please advise.
Hi, i am trying to identify the selected text background color from the rumba green screen. Am using rumba 7.5.2 version.
please advise.
Hi, i am trying to identify the selected text background color from the rumba green screen. Am using rumba 7.5.2 version.
please advise.
Hi jayk,
you have the option to read the color from your RUMBA Profile wdm , wda or wdu Profile.
It's the color that was last used when the profile was saved.
The ProfEdit.Dll is very helpful when you want to get or set information from the Rumba Profile. (The dll can be found under... RUMBA\\System\\profedit)
Sub Macro()
Dim Profedit As Object
Dim bgcolor As String
Set Profedit = CreateObject("ProfileEditor.ProfileEditor.1", "")
Profedit.ProfileName = "c:\\temp\\test.wdm"
bgcolor = Profedit.MainframeDisplay.BackColor
MsgBox (bgcolor)
End Sub
The Color is provided as an OLE_COLOR value.
The default is black (&H8000000F). Listed below are examples of some common colors and their RGB values in decimal and hex.
Color RGB value - decimal RGB value - hex
Black 0 0x000000
Red 255 0x0000FF
Green 65280 0x00FF00
Blue 16711680 0xFF0000
Yellow 65535 0x00FFFF
Pink 16711935 0xFF00FF
Cyan 16776960 0xFFFF00
White 16777215 0xFFFFFF
With Rumba 9.4.1 and newer you can use VBA to read the color at any time
Sub GetBgColor()
apiDesc = Session1.GetRDEObjectDescriptor()
Set api = GetObject(apiDesc)
bgcolor = api.BackColor 'OLE Color
MsgBox (bgcolor)
End Sub
cheers
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.