1. Patch #3 for win32lib v0.54
- Posted by Derek Parnell <dparnell at BIGPOND.NET.AU> Nov 08, 2000
- 424 views
- Last edited Nov 09, 2000
Now available is Win32Lib v0.54.3 from http://users.bigpond.net/homepage/euphoria/w320054xx.zip (229K). Changes include:- - Modal windows can no longer have minimized box. It is disabled if present. - The subclassing bug (error 460) has been resolved. - Tabitems no longer bleed through when tabs are changed. The side-effect though is that you may have to repaint (onPaint[] trap) the controls on a TabItem. - The Euphoria memory routines have been replaced by native Windows routines. For those interested, I "fixed" the subclassing problem by doing it a different way. I still couldn't get ChildWindowFromPoint to work so I replaced this with a call the GetWindow using the GW_CHILD flag. This does exactly what we wanted in both Windows NT and Windows Me. The TabItem bleed problem was fixed by adding a call to repaintWindow() after hiding the controls on the current tab and showing the new tab's control. This works but there is some flickering. I tried to just invalidate the rectangle on the tab control, but while this worked in Windows Me, it failed totally in Windows NT. As a result of this, it may be necessary to trap the onPaint[] handler for the window to manually repaint some controls. I've noticed that List controls are effected for some reason. I changed the memory routines to see if they were effecting the subclassing problem, but they had no effect. They might even be a tad faster than the Euphoria ones. For the technically minded, I create a private Heap of 16000 bytes initially, and have Windows auto-grow it if required. Dan and I struggled over the minimized modal windows. I couldn't see why people should not be able to create them, but after trying to handle them correctly, I was left with the dilemma of what to set the focus to when a modal window was minimized. By default, Windows gives focus to the first control that can take focus. However, the idea of Modal windows is to prevent people using controls on any window except the modal one. But if its minimized, how do I stop them? Should I stop them? After thinking through how hard it was going to be, I took the easy way out and just disabled any minimize box in Modal windows at open time. cheers, ------ Derek Parnell Melbourne, Australia (Vote [1] The Cheshire Cat for Internet Mascot)
2. Re: Patch #3 for win32lib v0.54
- Posted by Derek Parnell <dparnell at BIGPOND.NET.AU> Nov 08, 2000
- 461 views
- Last edited Nov 09, 2000
Ooops, I forgot where I was. Try instead Now available is Win32Lib v0.54.3 from http://users.bigpond.net.au/homepage/euphoria/w320054xx.zip (229K).