On Feb 13, 2011, at 3:44 AM, Werner F. Bruhin wrote:
>> I haven't tested it on anything other than OS X. It should draw a
>> magenta border around the object, or show the dotted sizer lines if you are
>> highlighting a sizer.
> I am on Windows 7 and I don't see any dotted lines. I am doing the
> testing with dDockFrame and selecting any sizer in the treelist and then
> clicking highlight doesn't show the lines.
I tried some basic drawing on Win28K, and even something as simple as
form.drawRectangle(50, 50, 100, 100, penWidth=3) doesn't work correctly. It
turns out that under Windows, drawing on the form draws on the form itself,
i.e., on the background *below* everything. If you think of the objects on a
form being layered on the z-axis, there is the form, followed by the base
panel, followed by controls - and the drawing occurs on the form, behind the
base panel.
So this is not a problem for the inspector; it's a problem for
low-level drawing on Windows, period. If that's fixed, the inspector will work
correctly. I've looked at the code in the wx inspection tool, and it shows that
they handle Mac drawing separately; for Win and Gtk, they use a ScreenDC in
order to have the drawings appear on top. I'll have to look into adapting this
strategy for Dabo drawing.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]