Win32Lib: child window demo anomaly?
- Posted by Dan Moyer <danielmoyer at prodigy.net> Apr 25, 2007
- 560 views
This is not terribly important, but while looking at child windows in the Win32Lib demos, I noticed a behavior that looks bad: "child4.exw" makes a parent & a child window, with child just below titlebar of parent & filling parent; the parent has a button which is initially hidden by the child window. If, and only before you MOVE the child, you move mouse to approx. where button is under child & click, THE BUTTON IS *DRAWN* ONTO THE CHILD WINDOW! (Moving the child around so that new "button" is off the parent will "erase" those portions of it from the child.) This can't be good?? Here's the demo's code:
-- code generated by Win32Lib IDE v0.17.0 include Win32Lib.ew without warning ---------------------------------------------------------------------------- ---- -- Window Window1 constant Window1 = createEx( Window, "Window1", 0, Default, Default, 400, 300, 0, 0 ) constant PushButton2 = createEx( Button, "PushButton2", Window1, 24, 28, 260, 104, 0, 0 ) --------------------------------------------------------- ---------------------------------------------------------------------------- ---- -- Window Window2 constant Window2 = createEx( Window, "Window 2", Window1, Default, Default, 400, 300, or_all({WS_CHILD}), 0) --------------------------------------------------------- ---------------------------------------------------------------------------- ---- procedure Window1_onOpen (integer self, integer event, sequence params)--params is () openWindow(Window2,Normal) end procedure setHandler( Window1, w32HOpen, routine_id("Window1_onOpen")) WinMain( Window1,Normal )
Dan Moyer