[Gambas-user] Stock
Fabien Bodard
gambas.fr at gmail.com
Wed Dec 30 18:49:10 CET 2020
It's difficult to me to be understanding
In fact the normal use of stock is :
Picture["icon:/size/name"]... it take the icon name in the stock map
file and then use the accurate one or the internal one if
gb.form.stock is loaded.
Another tricks is to use some magics
for example to get a mime icon :
Stock[CStr(Size) &/ "$(mime)" &/ sMime]
the $mime enforce the use of the mimetype folder is the icons storage
for your linux system.
But icons name also follow a kind of standart in naming ... for
example 'drive-harddisk' or 'drive-removable-media'
Le mer. 30 déc. 2020 à 18:36, Gianluigi <bagonergi at gmail.com> a écrit :
>
> Hi Fabien,
>
> I don't think you mean something like:
>
> Dim s As String
> For Each s As String In Stock.Icons
> Print s
> Next
> ?
> Regards
> Gianluigi
>
> Il giorno mer 30 dic 2020 alle ore 18:25 Fabien Bodard <gambas.fr at gmail.com> ha scritto:
>>
>> Well :-D
>>
>> I want to use a real icon based in the icons system location and
>> taking theme into account :-).
>>
>> But I don't remember If i've donne something about this case in the
>> past ... so far :-/
>>
>> Le mer. 30 déc. 2020 à 18:06, Bruce Steers <bsteers4 at gmail.com> a écrit :
>> >
>> > I use Stock class
>> >
>> > hPic = Stock["icon:32/media-floppy"]
>> >
>> > On Wed, 30 Dec 2020 at 16:38, Fabien Bodard <gambas.fr at gmail.com> wrote:
>> >>
>> >> Is someone remember how to reach a specific icon in the linux stock ?
>> >>
>> >>
>> >> for example
>> >> hPic = Picture["icon:/devices/media-floppy"]
>> >>
>> >> If not I need to re read the code :-/
>> >>
>> >> --
>> >> Fabien Bodard
>> >>
>> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>> >
>> >
>> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
>>
>>
>> --
>> Fabien Bodard
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
--
Fabien Bodard
More information about the User
mailing list