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

Bruce Steers bsteers4 at gmail.com
Mon Jul 17 15:28:48 CEST 2023


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





>
> I've tracked it down.
>
> WebControl.class
>
> Static Public Sub _GetLink(sLink As String) As String
>
>   If sLink Begins "http://" Or If sLink Begins "https://" Then
>     Return sLink
>   Else If sLink Begins "icon:/" Or If sLink Begins "flag:/" Then
>     Return "/" &/ Application.Root &/ "icon:" & Replace(sLink, "/", ":")
>   Else
>     Return "/" &/ Application.Root &/ sLink
>   Endif
>
> End
>
> so the second condition..
>   Else If sLink Begins "icon:/" Or If sLink Begins "flag:/" Then
>     Return "/" &/ Application.Root &/ "icon:" & Replace(sLink, "/", ":")
>
> the link already begins icon:/  then i adds icon: in the next line
>
> for now create an auto-inherited class called WebControl.class and add
> that _GetLink method to it and fix that line.
>
> I'm sure Ben will fix as soon as he's back from holiday.
>
> Respects
> BruceS
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230717/aa8f0766/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled.jpg
Type: image/jpeg
Size: 155965 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230717/aa8f0766/attachment-0001.jpg>


More information about the User mailing list