[Gambas-devel] User Control

Benoît Minisini gambas at ...1...
Mon Feb 27 14:16:54 CET 2012


Le 27/02/2012 13:23, LJMA at ...689... a écrit :
> Hi Benoît,
>
> Traducir del: español
> Escribe texto o la dirección de un sitio web, o bien, traduce un
> documento <http://translate.google.es/?tr=f&hl=es>.
> Cancelar <http://translate.google.es/?tr=t&hl=es>
> Sorry for not reading.The first problem solved, but I can not create a
> property with a list of options. According to the How To:
>
> For properties that take their value into a list of predefined
> constants of the same class, you can specify a class instead of a
> property kind, with an optional list of constants.
> Class . ( * | Constant1 ; Constant2 ; ... ) [ = Default ]
> The IDE will will use a ComboBox control to edit the value of the
> property, and will fill it with the specified constants.
>
> The Class1:
> Public Const Entero As String = "Entero"
> Public Const Float As String = "Float"
> Public Const Cadena As String = "Cadena"
>
>
> Public Const _Properties As String =
> "*,Obligatorio=True,Tipo{Class1.*}=Cadena"
> Property Tipo As String
> Private $Tipo As String = "Cadena"
>
> Thanks for your help again,
>
> Regards,
>
>

I'm not sure that you can use string constants at the moment. You should 
use numeric constant.

Regards,

-- 
Benoît Minisini




More information about the Devel mailing list