1. WIN32LIB: destroy()
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Apr 12, 2001
- 431 views
Hi, I noticed that destroy() didn't work with RichEdit controls, I managed to fix it by adding: elsif class = COMMON_CONTROL then if not w32Func( xDestroyWindow, { window_handle[id] } ) then abortErr( Err_DESTROYCONTROL ) end if Just before: else -- no special processing. end if In destroy() I'm not sure if this is the right way to do it though, I tried it with a few other Common Control's and it worked fine, but there could easily be something I've overlooked seeing as I don't really have an overall understanding of how everything works in win32lib :) Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying
2. Re: WIN32LIB: destroy()
- Posted by Derek Parnell <ddparnell at bigpond.com> Apr 13, 2001
- 446 views
Thanks again Thomas, your contributions to the library are gratefully received. I've added your fix to the next release. The only side-effects that I had to deal with (so far anyhow) is when toolbars or statusbars are destroyed. But that seems to be working too now. ------ Derek Parnell Melbourne, Australia "To finish a job quickly, go slower." ----- Original Message ----- From: "Thomas Parslow (PatRat)" <patrat at rat-software.com> To: "EUforum" <EUforum at topica.com> Sent: Thursday, April 12, 2001 11:25 PM Subject: WIN32LIB: destroy() > Hi, > I noticed that destroy() didn't work with RichEdit controls, I managed > to fix it by adding: > > elsif class = COMMON_CONTROL then > > if not w32Func( xDestroyWindow, { window_handle[id] } ) then > abortErr( Err_DESTROYCONTROL ) > end if > > Just before: > > else > -- no special processing. > > end if > > In destroy() > > I'm not sure if this is the right way to do it though, I tried it with > a few other Common Control's and it worked fine, but there could > easily be something I've overlooked seeing as I don't really have an > overall understanding of how everything works in win32lib :) > > Thomas Parslow (PatRat) ICQ #:26359483 > Rat Software > http://www.rat-software.com/ > Please leave quoted text in place when replying