[Gambas-user] gb.form.stock not usable with gb.web.gui

Bruce Steers bsteers4 at gmail.com
Mon Jul 17 15:36:23 CEST 2023


On Mon, 17 Jul 2023 at 14:28, Bruce Steers <bsteers4 at gmail.com> wrote:

>
>
> On Mon, 17 Jul 2023 at 12:42, Bruce Steers <bsteers4 at gmail.com> wrote:
>
>>
>>
>> On Sun, 16 Jul 2023 at 17:48, T Lee Davidson <t.lee.davidson at gmail.com>
>> wrote:
>>
>>> On 7/15/23 14:00, Safiur Rahman wrote:
>>> > Hi
>>> > The gb.web.gui applications are no more loading gb.form.stock icons
>>> from gambas version 3.18.3. The result is as all controls
>>> > using icons from this components look ugly.
>>> > Now neither gb.web.gui loads this stock icon components nor you can
>>> select this component in your web project. Is there any way
>>> > out to use these stock icons?
>>> >
>>> > --
>>> > Regards
>>> > Safiur Rahman
>>>
>>> Confirmed on v3.18.3.
>>>
>>> I tried it with the small "apply" icon.
>>>
>>> The HTML for the image source on the button is:
>>> <img src="/~user/cgi-bin/webguiapp.gambas/icon:icon::small:apply"
>>> class="gw-button-image">
>>>
>>> What actually works is:
>>> <img src="/~user/cgi-bin/webguiapp.gambas/icon:small:apply"
>>> class="gw-button-image">
>>>
>>>
>>> I realize that doesn't help you with the issue at the moment. But, it
>>> might help someone, who knows more about gb.web.gui than
>>> I, track down the cause.
>>>
>>
>>
> I actually found that format is correct !!
>
> <img src="/icon:icon::16:agenda" class="gw-button-image">
>
> see attached image how it works just fine.
> So i have no idea of the problem sorry.
> BruceS
>

does it fix if you change the _GetLink line to not have Application.Root in
the url?
(i suggest as my image links do not have a root path just / and they work
okay)

  Else If sLink Begins "icon:/" Or If sLink Begins "flag:/" Then
    Return "/" & "icon:" & Replace(sLink, "/", ":")

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230717/74f54489/attachment.htm>


More information about the User mailing list