[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gambas-bugtracker] Bug #2941: Selected radio button icon
[Thread Prev] | [Thread Next]
- Subject: [Gambas-bugtracker] Bug #2941: Selected radio button icon
- From: <bugtracker@xxxxxxxxxxxxxx>
- Date: Sat, 28 Sep 2024 09:47:29 GMT
- To: gradobag@xxxxxxxxxxx,bsteers@xxxxxxxxx,bugtracker@xxxxxxxxxxxxxxxxxxxxxx
http://gambaswiki.org/bugtracker/edit?object=BUG.2941&from=L21haW4- Comment #3 by Bruce STEERS: But that's what Style.PaintOption is for and it's not really how Stock.class works. Gambas hand made icons are copied to ~/.local/share/icons/ at one time. They are pictures made by Benoit, all the other Stock.class icons are desktop icon "theme" pictures. There generally is not a radio-checked theme icon as Radio is a toolkit image not a theme image. (hence no CheckBox icon either) We showed you the only code needed to do it using Style.class. (adapted to both fix the cropping issue and allow other sizes) The same code works for PaintCheck Private Sub MakeRadioPicture(Value As Boolean, Optional Size As Integer = 16) As Picture Dim hPic As Picture = New Picture(22, 22, True) Paint.Begin(hPic) Style.PaintOption(0, 0, 22, 22, Value) Paint.End If Size<>22 then hPic = hPic.Stretch(Size, Size) Return hPic End Please explain what is the problem with that and why you did not want to use it? Respects ----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----
[Gambas-bugtracker] Bug #2941: Selected radio button icon | <bugtracker@xxxxxxxxxxxxxx> |