Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ychaturvedi

macrumors newbie
Original poster
May 23, 2011
16
0
hi,

I am working on crossplatform application and try to show tooltip in wxTreeCtrl Item on mouse hover, I have done some modification in wxTipWindow class to avoid crash as per my requirement and using it.
With my changes tooltip works fine on linux machine but when i port code on mac10.6 machine i found that due to some macro
Code:
#if wxUSE_POPUPWIN
           : wxPopupTransientWindow(parent)
#else
           : wxFrame(parent, wxID_ANY, wxEmptyString,
                     wxDefaultPosition, wxDefaultSize,
                     wxNO_BORDER | wxFRAME_NO_TASKBAR )
#endif

it create wxFrame window instead of wxPopupTransientWindow(parent) window that is perfact for my requirement and disappear when lost focus.

I forcibly define wxUSE_POPUPWIN 1 in .h file but then it give me error that BUILD_LOCATION/wx-2.8/wx/mac/popupwin.h file not Exist.

Do we need to give some extra parameter with configure command to build wxWidgets on Mac Operating system enabled with wxPopupTransientWindow(parent) and functionality in lib that exist in "mac/popupwin.h" file.

Currently i am using following command to build wxWidgets on Mac:
Code:
CC=gcc-4.0 CXX=g++-4.0 LD=g++-4.0 \ #only required for Snow Leopard
CXXFLAGS="-fvisibility-inlines-hidden -fvisibility=hidden" \
CFLAGS="-fvisibility=hidden" CPPFLAGS="-fvisibility=hidden" \
../configure --prefix=/opt/build_deps --enable-debug --disable-shared \
--enable-threads --enable-unicode --disable-compat26 --with-zlib=builtin
--with-cocoa \
--with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk --enable-monolithic


Yogesh
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.