MemoryDC, GetFullTextExtent and Darwin

Chris, Andrea

The other point is that this code works on Linux. I also move the code around to put somthing into the MemoryDC before GetFullTextExtent and I still go the same error. It seems to be a Mac thing.

Nigel

···

---
Nigel W. Moriarty

----- Original Message ----
From: Andrea Gavana <andrea.gavana@gmail.com>
To: wxPython-users@lists.wxwidgets.org
Sent: Friday, November 3, 2006 4:05:22 PM
Subject: Re: [wxPython-users] MemoryDC, GetFullTextExtent and Darwin

Hi Chris,

you're right -- but that's not what I meant. What I was imagining was
that the OP was trying to make a bitmap large enough to to hold a given
text string -- to do that, you'd need to know how large it was before
you could make the bitmap.

Sorry, I did not understand correctly what you meant. Yes, if this is
the final target of the code, you have to know if advance how large is
the text indeed. Sorry for my somewhat approximative mastering of the
english language :wink:

--
Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Nigel W. Moriarty wrote:

The other point is that this code works on Linux. I also move the
code around to put somthing into the MemoryDC before
GetFullTextExtent and I still go the same error. It seems to be a
Mac thing.

Different platforms are sensitive to different things like this.

If I understand correctly, even if you select a bitmap into the MemoryDC, it still doesn't wwork. If I have that right, please post a small, self-contained example of code that works on Linux, but not OS-X. Also version info.

Does GetTextExtent() work?

-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

Christopher Barker wrote:

Nigel W. Moriarty wrote:

The other point is that this code works on Linux. I also move the
code around to put somthing into the MemoryDC before
GetFullTextExtent and I still go the same error. It seems to be a
Mac thing.

Different platforms are sensitive to different things like this.

If I understand correctly, even if you select a bitmap into the MemoryDC, it still doesn't wwork. If I have that right, please post a small, self-contained example of code that works on Linux, but not OS-X. Also version info.

Does GetTextExtent() work?

GetTextExtent and GetFullTextExtent both call the same C++ function so if one fails the other will too.

···

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