1. 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

new topic     » topic index » view message » categorize

2. Re: WIN32LIB: destroy()

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu