[wxPython] selecting valid resize border

Is there a way to enable resizing only on selected edges of the window?

For example, if my appbar is docked on the bottom, I only want the top
edge available as a resize control. I notice that it *seems* to be
possible, given the existance of most other appbars that I've seen, but
I'm not seeing anything for wxWindows.

···

----------
Keith J. Farmer
kfarmer@thuban.org
http://www.thuban.org

Is there a way to enable resizing only on selected edges of the window?

For example, if my appbar is docked on the bottom, I only want the top
edge available as a resize control. I notice that it *seems* to be
possible, given the existance of most other appbars that I've seen, but
I'm not seeing anything for wxWindows.

If there is any native capability for this wxWindows is not exposing it.

I think that at least most of the programs that I've seen do it are
self-drawn (skins, etc.) and don't use the standard resizeable frame, but
just catch the mouse events and resize themselves.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

Hello,

when mouse pointer is on the border of the fields in my grid, the cursor
is changed to this shape <=> giving me the posibility to change the
column size. At this moment I press the key, which produces the event
calling the modal dialog. I expected the mouse will be released from <=>
to be able to click in this new modal dialog, but unfortunately the
mouse is stolen by the grid and I have to use only my keyboard in the
dialog. When I am not on the border of fields (normal shape of mouse
pointer), everything is OK.

Did you also see this behaviour? Any ideas?

Thanks.

···

--
Pavel Hanak

when mouse pointer is on the border of the fields in my grid, the cursor
is changed to this shape <=> giving me the posibility to change the
column size. At this moment I press the key, which produces the event
calling the modal dialog. I expected the mouse will be released from <=>
to be able to click in this new modal dialog, but unfortunately the
mouse is stolen by the grid and I have to use only my keyboard in the
dialog. When I am not on the border of fields (normal shape of mouse
pointer), everything is OK.

Did you also see this behaviour? Any ideas?

Depending on the state of the grid the mouse may be captured when the cursor
is changed. This is what you are seeing, although I would think that moving
the mouse again would still cause it to be released.

You can try calling grid.GetGridWindow().ReleaseMouse() before opening your
dialog, but that could potentially cause other problems. Another
possibility might be to move the mouse yourself with WarpPointer.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

"RB" == Robin Dunn <robin@alldunn.com> píše:

    >> when mouse pointer is on the border of the fields in my grid,
    >> the cursor is changed to this shape <=> giving me the posibility
    >> to change the column size. At this moment I press the key, which
    >> produces the event calling the modal dialog. I expected the mouse
    >> will be released from <=> to be able to click in this new modal
    >> dialog, but unfortunately the mouse is stolen by the grid and I
    >> have to use only my keyboard in the dialog. When I am not on the
    >> border of fields (normal shape of mouse pointer), everything is
    >> OK.
    >>
    >> Did you also see this behaviour? Any ideas?

    > Depending on the state of the grid the mouse may be captured
    > when the cursor is changed. This is what you are seeing,
    > although I would think that moving the mouse again would still
    > cause it to be released.

Unfortunately it is not released.

    > You can try calling grid.GetGridWindow().ReleaseMouse() before
    > opening your dialog, but that could potentially cause other

This is working, thanks.

    > problems. Another possibility might be to move the mouse
    > yourself with WarpPointer.

This doesn't work because the mouse pointer is moved without changing
its state.

Thanks.

···

--
Pavel Hanak