Re: Win32Lib Bleeding Edge 0.45j

new topic     » goto parent     » topic index » view thread      » older message » newer message

Irv Mullins wrote:

> Not to mention that the combo on the
> IDE which is supposed to allow
> switching between windows doesn't work.

The problem is in WndProc, where Win32Lib is trying to figure out if the
event should be handled by the subclassed routine or not. The logic *used*
to be:

    -- if not a window, run subclassed behavior
    if  window_type[ id ] != Window
    and iMsg != WM_COMMAND then

        -- run the subclassed behavior
        return subclassed(id, hWnd, iMsg, wParam, lParam)

    end if

Unfortunately, controls placed in Tab Controls were dead in the water. I had
tried to get this to work:

    if  window_type[ id ] != Window
    and window_class[ id ] != TabControl then

but that caused the controls in the Tab control to respond, but the left the
Tab Control itself invisible. I had finally settled on:

    if  window_type[ id ] != Window
    and iMsg != WM_COMMAND then

but that causes problems with the combo boxes. I'll get it right eventually.
For now, I'm going to go back to the old logic, since it should break the
least amount of code.

As an incentive to keep playing with the bleeding edge releases, the next
version will include Drag and Drop support (by Brian Jackson) and the Color
Dialog (by Wolfgang Fritz). Any errors are of course mine, not their's.

Thanks for all the bug reports!

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu