[Gambas-user] System colors

Martín mbelmonte at belmotek.net
Fri May 5 13:34:43 CEST 2023


ok, the final code is.

   Dim myClass As Class = Classes["Color"]
   Dim sSymbol As String

   For Each sSymbol In myClass.Symbols
     If myClass[sSymbol].Kind = Class.Constant Then
       $Colors[sSymbol] = myClass[sSymbol].Value
     Else If myClass[sSymbol].Kind = Class.Property
       $Colors[sSymbol] = Object.GetProperty(Color, sSymbol)
     Endif
   Next

Thanks Bruce.

Best regards.

Martin.



More information about the User mailing list