-------- Message transféré -------- Sujet : [Gambas Bug Tracker] Bug #1136: ColorButton fails with error bad drawing under gtk2 and gtk3 Date : Sat, 02 Sep 2017 02:22:27 GMT De : bugtrac...@gambaswiki.org Pour : tmore...@ajm-software.com, g4m...@gmail.com http://gambaswiki.org/bugtracker/edit?object=BUG.1136&from=L21haW4- Comment #2 by Tony MOREHEN: I published the program with the problem to the Software Farm as gbTerm. Yes yet another terminal emulator. This emulator has a quick navigate sidebar on the left. It also has a pretty full cli, comparable to other standard emulators. gbTerm -h for instructions. BTW I can't see any way to attach the program to this report. Any way, the version I uploaded uses QT for the gui; you'll need to switch to one of the gtk components. Clich Edit then Preferences then crash. I did some more error tracing. The crash occurs the first time that FillPicture in ColorButton.class is run. When QT runs this function, $hPicture is Null. When gtk runs FillPicture, $hPicture is not Null, but has 0 width and height (and probably other invalid parameters). Hence, the crash at Draw.Begin. Private Sub FillPicture() If $hPicture Then '$hPicture.Fill($iColor) Draw.Begin($hPicture) '<===== crashes here Draw.LineStyle = Line.None Draw.FillStyle = Fill.Solid Draw.FillColor = $iColor Draw.Rect(2, 2, $hPicture.Width - 4, $hPicture.Height - 4) Draw.LineStyle = Line.Solid Draw.FillStyle = Fill.None Draw.Foreground = Color.LightForeground Draw.Rect(0, 0, $hPicture.Width, $hPicture.Height) Draw.Foreground = Color.White Draw.Rect(1, 1, $hPicture.Width - 2, $hPicture.Height - 2) Draw.End Endif $hButton.Picture = $hPicture End Tony MOREHEN changed the state of the bug to: Accepted. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1136: ColorButton fails with error bad drawing under gtk2 and gtk3
Benoît Minisini via Gambas-user Sat, 02 Sep 2017 04:12:15 -0700
- [Gambas-user] Fwd: [Gambas Bug Tracker] B... Benoît Minisini via Gambas-user
- [Gambas-user] Fwd: [Gambas Bug Track... Benoît Minisini via Gambas-user
- [Gambas-user] Fwd: [Gambas Bug Track... Benoît Minisini via Gambas-user
- [Gambas-user] Fwd: [Gambas Bug Track... Benoît Minisini via Gambas-user
- [Gambas-user] Fwd: [Gambas Bug Track... Benoît Minisini via Gambas-user
- [Gambas-user] Fwd: [Gambas Bug Track... Benoît Minisini via Gambas-user
- [Gambas-user] Fwd: [Gambas Bug Track... Benoît Minisini via Gambas-user
- [Gambas-user] Fwd: [Gambas Bug Track... Benoît Minisini via Gambas-user