Hi all,
I need to retrieve the RGB code for the "Selected text background" color in awt controls, like TextEdit or ListBoxes.
Paolo ,
look at this code i tryed foor making and coloring a text input field in a dialog maybe its similar for your "awt controls)
MaakOnderschrift4
oDialog.Model.Step = 1
oTextModel = oDialogModel.createInstance( "com.sun.star.awt.UnoControlEditModel" )
oTextModel.Step = 1
oTextModel.PositionX = 59
oTextModel.PositionY = 46
oTextModel.Width = 183
oTextModel.Height = 300
oTextModel.Name = "Onderschrift"
oTextModel.BackgroundColor = rgb(254,254,100)'12048383 '>>>>searched by' = oDialog.Model.ImageControl1.BackgroundColor
oTextModel.FontHeight = 10
oTextModel.Vscroll = true
oTextModel.MultiLine = true
oTextModel.HardLineBreaks = true
oTextModel.text = sSelection
sSelection = ""
oDialogModel.insertByName( "Onderschrift", oTextModel )
' oDialog.Execute()
End Sub
Greetz Fernand Belgium
Is there any way to get this information from API's ? (maybe from accessibility?)
It would be nice if awt would offer some constants for system colors, but I've
not found anything.
thank you for any help Paolo Mantovani
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
