Small problems on Mac

Hello,

I have some small problems while trying to make my application
look like a true (Aqua) Mac application.
See the attached picture for my main window.
The problems are:
- If I specify no position for a frame, it ends up at place (20, 28)
- If I do specify a position for a frame, its x-coordinate is used,
   but its y-coordinate seems to be rounded to 28, 42, ...
   Yesterday I also had these console messages:
   Jun 10 09:09:30 My-Computer WindowServer[182]: Reserved range
   exhausted. (0xbbfe7000 to 0xbc22b000 goes out of bounds)
- As you can see in the picture, the scrollbar of the grid uses the
   full width (and full height) of the window, and its right arrow
   is not visible any more.

Pim Buurman.

wxdump.tiff (25.3 KB)

Pim Buurman wrote:

- As you can see in the picture, the scrollbar of the grid uses the
   full width (and full height) of the window, and its right arrow
   is not visible any more.

This sppears to be a symptom of a bug I reported a while back. In
general, the OS-X re-sizing box is drawn on top of the drawable area of
the frame (I suppose that area shouldn't be considered drawable, but it
is within the rectangle specified at the client area. The problem is
that the drawable region really isn't recatagular.

This is a C++ issue, not a Python one. I don't know if Stefan has worked
out a solution or not yet. You might try posting to the wxPython-mac
list.

It would be nice if wxGrid (and all windows that have scrollbars)
handled this properly, but it would take a hack, as if the wxGid would
have to draw it's scrollbars differently depending on whether the grid
was at the bottom-right corner of a frame, or somewhere else, where
there isn't a re-size box.

Anyway, I took a look at a handfull of OS_X apps to see what they do
about this. While they generally have the scrollbars in the right place,
many also have something else alonbg the bottom of the frame, like a
status bar or something. This might be a reasonable solution for you. If
you put a status bar at the bottom of the frame, the Grid will be above
it, and shouldn't get overridden by the re-size box.

The price we pay for beauty....

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                        
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Pim Buurman wrote:

Hello,

I have some small problems while trying to make my application
look like a true (Aqua) Mac application.
See the attached picture for my main window.
The problems are:
- If I specify no position for a frame, it ends up at place (20, 28)
- If I do specify a position for a frame, its x-coordinate is used,
  but its y-coordinate seems to be rounded to 28, 42, ...

I think this was just fixed a few days ago, but I don't recall if it was also done for 2.4 or just for 2.5...

  Yesterday I also had these console messages:
  Jun 10 09:09:30 My-Computer WindowServer[182]: Reserved range
  exhausted. (0xbbfe7000 to 0xbc22b000 goes out of bounds)

I don't know what causes this, but it seems harmless. I think I've also seen similar messages when running non-wxWidows apps.

- As you can see in the picture, the scrollbar of the grid uses the
  full width (and full height) of the window, and its right arrow
  is not visible any more.

Put a wxStatusBar in the frame.

···

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