[Gambas-user] Adding custom colors
Marco Ancillotti
gambas at ...3466...
Tue Jul 28 18:36:14 CEST 2015
I already do somethink like that , but any time I change a color I need
to replace the color code and when I use somethink like 10 - 20 colors
it's really complex.
I'm searching a way to define a custom color and reference that by code
so I can try colors and change that when I need.
Il 28/07/2015 17:48, Charlie ha scritto:
> Create a form with one TextBox in it and use the code below. The "004F9F8B"
> is the number from the 'Select a color' dialogue in my last post. (The one
> in my last post shows "00000000")
>
> Public Sub Form_Open()
> Dim sMyColour As String = "0045279F"
> Dim sHex As String
>
> sHex = "&H" & sMyColour & "&"
> TextBox1.Background = Val(sHex)
>
> End
>
>
>
> --
> View this message in context: http://gambas.8142.n7.nabble.com/Adding-custom-colors-tp52076p52119.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list