[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TestClearButton


On 1/3/26 4:00 PM, Benoît Minisini wrote:
Le 03/01/2026 à 21:28, Lee a écrit :
On 1/3/26 2:52 PM, Benoît Minisini wrote:
It's because the ComboBox searches the clear button icon in the icon stock, and 'gb.form.stock' is not loaded.

Maybe it should use in that case a default clear button instead of raising an error...

 From what I could tell by looking at the code, it attempts to load "clear.png". And, if it not found in the current directory is moves up the directory tree trying to find it. (I'm not sure of that as I do not understand the use of SUPER in a class that inherits no parent.)

A /comp/src/gb.gui.base/clear.png symbolic link exists which points to ../gb.form.stock/gambas-thin/128/clear.png which also exists. If my (mis)understanding of bMoveUp and Super.Load is correct, it seems to me it should work.


The problem should be fixed by the last commits.

Regards,


Yes, it is fixed.

I see that you removed the algorithm that uses 'bMoveUp' from the Picture.Load method. That algorithm is still being used in the '_get' method. I didn't know if you wanted to optimize that as well, so I thought I'd just mention it.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


References:
TestClearButtonCD <dessere.claude@xxxxxx>
Re: TestClearButtonLee <t.lee.davidson@xxxxxxxxx>
Re: TestClearButtonBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: TestClearButtonLee <t.lee.davidson@xxxxxxxxx>
Re: TestClearButtonBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>