The setting made with SetTextAlign is used by TextOut and ExtTextOut. Perhaps 
SetTextAlign was in winapi.inc because this sort of compatibility was planned 
at one point. Delphi code that calls SetTextAlign to set the text alignment 
flags won't work correctly when it then calls TextOut or ExtTextOut since 
SetTextAlign is not implemented.

Thanks.



-----Original Message-----
From: Mattias Gaertner [mailto:[EMAIL PROTECTED]
Sent: Tue 7/31/2007 9:07 AM
To: [email protected]
Subject: Re: [lazarus] Roadmap "Status of features"
 
On Tue, 31 Jul 2007 09:39:04 -0400
"Hess, Philip J" <[EMAIL PROTECTED]> wrote:

> SetMapMode is a uniquely powerful API function. The MM_ANISOTROPIC
> mode lets you work with any logical units you want (for example, high
> resolution) and let the GDI map them to lower-res units (for example,
> screen coordinates). Of course, to be useful we would also need
> SetWindowExtEx and SetViewportExtEx.
> 
> It appears as though implementing these in win32winapi.inc would only
> take one line of code each (pass through to Windows unit). I don't
> have any idea of what implementing these functions in other
> widgetsets would take.

Of course it is a one liner in win32winapi ;).
The question is how to do it in the other default widgetset: gtk.
I see 3 possibilities:
1. Find a solution how to do it in gtk
2. Improve the qt widgetset to become better than the gtk widgetset and
implement the qt SetMapMode
3. Write a pascal unit with SetMapMode(s) for the various platforms and
add it to virtualtree. Then advice the users that vt needs
qt or win32/64.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

<<winmail.dat>>

Reply via email to