Re: [Gambas-user] Creating a picture and inserting

2017-08-09 Thread Rolf-Werner Eilert
There was a typo in what I programmed yesterday, I found it - sorry for the noise and thank you very much again, Fabien! Regards Rolf Am 09.08.2017 18:20, schrieb Rolf-Werner Eilert: One more question: If I need a Picture (e.g. for a GridView), how do I convert it? Regards Rolf Am 09.08.20

Re: [Gambas-user] Creating a picture and inserting

2017-08-09 Thread Rolf-Werner Eilert
One more question: If I need a Picture (e.g. for a GridView), how do I convert it? Regards Rolf Am 09.08.2017 17:23, schrieb Fabien Bodard: Dim i As Integer Dim hImg As Image For i = 0 To 200 hImg = New Image(32, 32, Color.Transparent) Paint.Begin(hImg) Paint.Font.Bol

Re: [Gambas-user] Creating a picture and inserting

2017-08-09 Thread Rolf-Werner Eilert
Yes! That was it! Thank you very much, Fabien! Regards Rolf Am 09.08.2017 17:23, schrieb Fabien Bodard: Dim i As Integer Dim hImg As Image For i = 0 To 200 hImg = New Image(32, 32, Color.Transparent) Paint.Begin(hImg) Paint.Font.Bold = True Paint.Ellipse(0, 0, P

Re: [Gambas-user] Creating a picture and inserting

2017-08-09 Thread Fabien Bodard
This is how :-) ' Gambas class file Public Sub Form_Open() Dim i As Integer Dim hImg As Image For i = 0 To 200 hImg = New Image(32, 32, Color.Transparent) Paint.Begin(hImg) Paint.Font.Bold = True Paint.Ellipse(0, 0, Paint.Width, Paint.Height) Paint.Brush = Paint.Col

Re: [Gambas-user] Creating a picture and inserting

2017-08-09 Thread Rolf-Werner Eilert
I meant the latter: drawing the picture by the program dynamically and then use it directly. The only way I found was Picture.Save(), then Picture.Load() in the ListView or whatever, but that is somewhat roundabout. In my program, I could use it, because the picture would have to be made only

Re: [Gambas-user] Creating a picture and inserting

2017-08-09 Thread Fabien Bodard
well i do not understand what you want exactly ... drawing a picture with the mouse on the drawing area and copy the picture in a list view ? or Drawing picture/image dynamiquely in memory and then use it in a list view ? 2017-08-09 16:14 GMT+02:00 Rolf-Werner Eilert : > A similar question li

[Gambas-user] Creating a picture and inserting

2017-08-09 Thread Rolf-Werner Eilert
A similar question like a few days ago - now with a list view... Is there a way to create some form of a Picture and use it for the running program? What I think about: Using a DrawingArea, draw something small, make it a Picture and then directly use it to insert it into a ListView, GridView