[Gambas-user] gridview sort indicator

Benoît Minisini g4mba5 at gmail.com
Thu Jan 6 13:27:23 CET 2022


Le 06/01/2022 à 09:03, bb a écrit :
> On Wed, 2022-01-05 at 17:58 +0100, Benoît Minisini wrote:
>>
>> The indicator is drawn using the toolkit theme drawing routine for
>> arrows. You give this routine an arrow orientation and a rectangle
>> box
>> where the arrow should be drawn.
>>
>> Alas some widget themes partially ignore the rectangle box and you
>> get a
>> truncated arrow.
>>
>> Maybe I should draw a simple arrow and not use the widget theme
>> drawing
>> routine.
>>
>> Regards,
>>
> If, by toolkit, you mean the GUI then I don't think this is the real
> (or single) source of the problem. Here I get the truncated indicator
> in both Qt5 and GTK's.
> Also, fonts dont seem to make any difference.
> It seems to me that perhaps there is a desktop theme thing involved
> here. But that makes little sense.
> So, I'd advocate for your "simple arrow" approach, just to see if that
> helps. As BruceS suggests, getting away from the vaguaries of themes
> here there and everywhere may make this kind of stuff align more to
> expectations.
> 
> b
> 

It should be fixed by the last commit: I now use the custom 
Paint.Arrow() method instead of the widget style arrow drawing routine.

Regards,

-- 
Benoît Minisini


More information about the User mailing list