[Gambas-user] Custom controls, Non-String arrays in the IDE
Bruce Steers
bsteers4 at gmail.com
Tue Aug 23 12:52:51 CEST 2022
On Thu, 18 Aug 2022 at 18:38, Bruce Steers <bsteers4 at gmail.com> wrote:
>
>
> On Thu, 18 Aug 2022 at 17:30, Benoit Minisini <
> benoit.minisini at gambas-basic.org> wrote:
>
>> Le 18/08/2022 à 18:22, Bruce Steers a écrit :
>> >
>> > On that branch i have added a new property type called ListOf
>> >
>>
>> Maybe it would be better to automatically detect property kind or
>> datatype that ends with "[]", and act accordingly?
>>
>> --
>> Benoît Minisini.
>>
>
> Yes that's probably better.
> okay removed ListOf and added some Case Like "*\\[]" conditions (Like *[]
> is used "after" any others check for something ending in [])
>
> So then any unhandled (by you) array types will go through the
> FArrayChooser dialog and if not handled there it prints a message that type
> is unhandled.
>
Updated this and submitted merge (it's guaranteed not to be correct ;) lol)
- NEW: make ArrayChooser gui from FList gui
- NEW: use various array types as _Properties in the IDE like
ColorList{Color[]} and FontList{Font[]} etc to set a String[] list using
the corresponding chooser gui with ArrayChooser.
- NEW: additional array type File[], Synonym for Path[] for IDE property
purposes, gives dialog file selector.
- NEW: additional array type for IDE property purposes, Dir[], Folder[]
, gives dialog directory selector.
- NEW: additional array type for IDE property purposes, FixedFont[] ,
like Font[] but only shows fixed font selector.
- NEW: additional array type for IDE property purposes, Audio[] , a
synonym for WebAudio[].
- NEW: Enable drag-n-drop on ArrayChooser for files. single or multiple
files dropped on list will be appended.
- NEW: Show colors/fonts/images in ArrayChooser list. (WebFont size only
shows if px, pt or em sizes are used)
- NEW: if invalid array type is used then pop up a message showing
available types.
Supported Array[] types are...
"Picture", "Image", "Animation", "WebImage", "SvgImage", "Font",
"FixedFont", "WebFont", "Color", "WebAudio", "Audio", "Path", "File",
"Folder", "Dir"
To be honest i'm trailing off of actually needed this now lol but i still
think it's a handy option to be able to utilize the various choosers for
lists of various types.
The route i'm now taking is changing the GradientButton into the
BrushButton and using ReportBrush and letting it use all the types, Color
(kinda pointless) , Image (nice img background) and Gradients (monochrome
gives nice effect)
PS. i thought the idea to be able to call a script/app in the project dir
was very very useful idea for custom control editing. the changes to the
IDE were minimal and it allows you to sit back and let the programmers take
care of their own editing needs.
Much Respect
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220823/9c620924/attachment.htm>
More information about the User
mailing list