[Gambas-user] Keeping a menu open?

Gianluigi bagonergi at gmail.com
Mon Jan 17 10:05:47 CET 2022


Il giorno lun 17 gen 2022 alle ore 09:51 Gianluigi <bagonergi at gmail.com> ha
scritto:

>
>
> Il giorno dom 16 gen 2022 alle ore 23:24 Gianluigi <bagonergi at gmail.com>
> ha scritto:
>
>>
>> Hi Cris,
>>
>> so I really like it, if refined, it could become a component
>>
>> Regards
>> Gianluigi
>>
>
> There is a bug in the calculation of $iMenuStart in the Sub _new
>
> This code : $iMenuStart += (iScale * nContMenu)
>
> It should be replaced with this one:
>
>   i += 1
>   $iMenuStart += (iScale * i)
>
> Sorry
> Gianluigi
>

Correction:

If i = 0 Then
    i = 1
  Else
    i += 2
  Endif
  $iMenuStart += (iScale * i)

Sorry * i
Gianluigi
P.S. It is clear that I have not understood how the upstream distance is
calculated. ;-D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220117/831b5914/attachment-0001.htm>


More information about the User mailing list