[Gambas-user] (Quicky) Separators in combobox lists

Gianluigi bagonergi at gmail.com
Fri Sep 18 23:04:39 CEST 2020


Il giorno ven 18 set 2020 alle ore 20:37 Bruce <adamnt42 at gmail.com> ha
scritto:

> On 19/9/20 3:32 am, Gianluigi wrote:
> > Il giorno ven 18 set 2020 alle ore 16:02 Gianluigi <bagonergi at gmail.com>
> ha
> > scritto:
> >
> >>
> >>
> >> Il giorno mer 16 set 2020 alle ore 23:43 T Lee Davidson <
> >> t.lee.davidson at gmail.com> ha scritto:
> >>
> >>> On 9/16/20 3:25 PM, Bruce wrote:
> >>>> (Don't think too hard on this one it's just an idea)
> >>>
> >>>> Anyway, just a quicky, anyone got any ideas?
> >>>>
> >>>
> >>> Space$(10)
> >>> ..
> >>>
> >>
> >> I enclose a minimal combobox type component which shows a list with the
> >> desired number of lines (max 20), and separators of different style,
> color
> >> and thickness.
> >> ...
> >> Attached as a zip to avoid problems with GMail.
> >>
> >
> > Who explains to me how I could have inserted an enumeration instead of an
> >...
>
> AFAIK and according to the help, you cant use an enum.
> But you can use a (public) constant list, so
> create a class, say "septype" that just exposes the constants
> and use
> _properties ... ,septype {*} = septype.Solid .....
>
> and you can use the same constants in your code.
>

I followed your advice even though I would have preferred to act
differently to have everything in only one class.
I added you to the authors :-P
Project 3 attached

Ciao
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20200918/0a5329c7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ComboRowsSeparator-3.zip
Type: application/zip
Size: 31848 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20200918/0a5329c7/attachment-0001.zip>


More information about the User mailing list