On 2011-03-21 05:27:49 +1000, Alexander Klenin wrote: > On Mon, Mar 21, 2011 at 05:14, Leonardo M. Ramé <[email protected]> wrote: > > On 2011-03-21 04:54:45 +1000, Alexander Klenin wrote: > >> On Mon, Mar 21, 2011 at 04:44, Leonardo M. Ramé <[email protected]> wrote: > >> >> Of course, since you are converting an object to the type it does not > >> >> belong to. > >> >> You should create a TBitmap or another similar object. > >> >> Did you look at the savedemo as I proposed in a previous mail? > >> > > >> > Yes, if I try to PaintOnCanvas of a TBitmap, for example. I get "Canvas > >> > does not allow drawing". > >> > >> That is very strange. I have created a nogui demo in r29942, > >> which does not have any gui, and creates a bitmap file with the chart. > >> Does it work for you? > >> > > > > It works when compiled with Gtk2 widgetset. If you set the nogui > > widgetset you'll get the "Canvas does not allow drawing error". > > That is true. > You have to link you CGI app with some graphic widgetset, > which will unfortunately bloat an executable, but should otherwise work. >
Well, I tested that, but I get "Internal Server Error" from my Apache. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
