On Tue, 31 Jul 2007 17:33:12 +0200 zeljko <[EMAIL PROTECTED]> wrote: > On Tuesday 31 July 2007 16:07, Mattias Gaertner wrote: > > 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. > > hum...I've read at lazarus virtualtree pages that it works with > gtk,win32 but cannot work with qt (maybe old news). So that means > that gtk vt implementation have SetMapMode() ?!?! I think that I have > to make deeper check of vt code.
No, I think, vt simply called the SetMapMode function, which did nothing under LCL. Maybe vt needs SetMapMode only in rare cases or not all? Mattias _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives