<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>I really assumed that I had to choice between video unit and crt unit ...</p>
<p>my old unit which interfaced the video must be updated to be compiled for win32.</p>
<p>I already though about to create my window procedure and my gotoxy procedure ... this way I may not have to make a lot of changes in my program.</p>
<p>I missed SetCursorPos ... thanks a lot</p>
<p>My first step, anyway, is to verify it is compiling for win32! ... later I´ll make more changes and all the adjustments.</p>
<p>Philippe</p>
<p>On Sat, 5 Oct 2013 22:48:09 +0200, Tomas Hajny wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<pre>On Sat, October 5, 2013 21:34, Philippe wrote:</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">I am back !!! (a bit sick ... teeth ...) I am now trying to move to win32. At first leaving crt unit, moving to video unit. Problem!(?) ... I was using window, gotoxy and so on ... and I don´t find anything similar with video unit!</blockquote>
<pre>First of all, what do you try to solve by moving from unit Crt to unit
Video? I suggested using unit video as a substitution of your original
direct access to video adapter memory. Partial alternative of GotoXY
exists in unit Video - there is SetCursorPos. However, there is no direct
support for Window and thus the addressing is in absolute coordinates, not
relative to the defined window. Using direct video memory access (i.e.
very low-level approach) together with high-level routines like Window,
etc., is a bit strange. Units Video and Crt are not very compatible to
each other at the moment, unfortunately (although the incompatibility may
not be as bad on Win32 as on some other platforms). Nevertheless, you may
try it. Otherwise, you'd need either to create your own alternatives of
Window, etc., based on unit Video, or to avoid using the solution based on
directly addressing video memory/buffer.
Tomas
_______________________________________________
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a>
</pre>
</blockquote>
</body></html>