[fpc-pascal] FPC Graphics options?
Nikolay Nikolov
nickysn at gmail.com
Tue May 16 13:42:22 CEST 2017
On 05/16/2017 09:00 AM, Sven Barth via fpc-pascal wrote:
>
> Am 16.05.2017 02:46 schrieb "Nikolay Nikolov" <nickysn at gmail.com
> <mailto:nickysn at gmail.com>>:
> >> I also no longer have the 'graphwindow' handle variable so I had to
> comment out anything that was using it like
> >>
> >> SetWindowTextA(graphicwindow,graphwindowtext);
> >> And
> >> ShowWindow(graphwindow, SW_SHOW);
> >> So I just commented them out for now. I'm hoping there is a way
> to get around the graphwindow variable because I was using the above 2
> functions and I don't know how else to determine the graphic window
> handle... but the performance gain and ease of implementation will
> make working out any other issues worth the effort. Any advice on how
> I can capture the graph window handle would be appreciated
> >
> > Unfortunately, you can't do that and it's actually the main reason
> why ptcgraph is fast. Even if you modify the ptcgraph source, so that
> you get the window handle, it would do you no good, because the window
> is created in a different thread and this means that you cannot draw
> to the window from your program's thread. In fact, all the ptcgraph
> drawing routines actually render to an internal software buffer and
> issue no winapi drawing calls at all. That's the reason ptcgraph is
> fast and the regular graph unit is slow - the winapi drawing routines
> are really the bottleneck in this case and not the speed of the code,
> generated by FPC.
>
> Hmm? But he only wants to change the tttle of the window. Even on
> Windows that should work from a different thread. However a platform
> independent SetWindowTitle() for ptcgraph would be rather useful I guess.
>
I can easily add this option to ptcgraph. I'll do it tonight.
>
> Though I'd like to know why he needs ShowWindow()...
>
> Regards,
> Sven
>
>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170516/2a62280d/attachment.html>
More information about the fpc-pascal
mailing list