Search found 398 matches

by Avi
Sat Apr 08, 2006 4:07 pm
Forum: C++ Development
Topic: 32bit cursors
Replies: 7
Views: 2255

Vexator wrote:yes, i got a 32bit png file working as a cursor :) but the alpha mask is not being used, so the cursor is just displayed as a square.
Maybe it has something to do with the way you load the wxImage from the file? (making sure the alpha channel is used?)
by Avi
Fri Apr 07, 2006 9:29 am
Forum: C++ Development
Topic: Themes in Release Mode
Replies: 2
Views: 780

Which version of Visual Studio do you use? If 2005, note that you only need to include wx/defs.h somewhere in your code... No need for resource file (*.rc) anymore... (this was a change in 2.6.3)
by Avi
Wed Mar 29, 2006 9:31 am
Forum: C++ Development
Topic: wxlistctrl: how can i simplfy listtest.cpp
Replies: 1
Views: 625

Check out wxListView... I think it's what you're looking for... ;)
by Avi
Wed Mar 29, 2006 8:02 am
Forum: Platform Related Issues
Topic: Adding a bitmap to wxImageList fails under MSW
Replies: 2
Views: 1145

Hmm, does it help if you use the second wxImageList constructor? :?: (the one where you give it a width and height...)
by Avi
Tue Mar 28, 2006 10:28 am
Forum: C++ Development
Topic: wxWidgets + DWORD & _TCHAR equivalents?
Replies: 3
Views: 1550

DWORD == wxUint32
WORD == wxUint16
TCHAR == wxChar
All are defined when #including wx/defs.h

:wink:

(More information about these types can be found here (shows up best w/ Internet Exploerer)
by Avi
Tue Mar 28, 2006 9:48 am
Forum: C++ Development
Topic: wxSizer question - proportion param - still stands
Replies: 10
Views: 2319

Do you have wxUSE_STL set to 1? I found out that wxWidgets crashes sometimes due to wrong stl iterators usage (it throws stl exceptions)... (for example: it also crashes for toolbars... when all the items are wxITEM_CHECK) So, if your library is compiled w/ STL usage, try turning it off, recompile t...
by Avi
Mon Mar 27, 2006 8:10 pm
Forum: C++ Development
Topic: Segfault caused by simple wxString::ToLong() code
Replies: 7
Views: 1518

Jorg wrote:

Code: Select all

long a = 0;
long *b = &a;

b = 2; 
Now a is also 2.
Wrong... you need to do:
*b = 2;
In order to change a... ;)
by Avi
Sun Mar 26, 2006 5:18 pm
Forum: Platform Related Issues
Topic: 2.6.2 doesn't compile on FC5!!!!!
Replies: 8
Views: 1571

Hey, 2.6.3 just got released... Changelog says:
Compilation fixes for (more strict) g++ 4.1
Try it... ;)
by Avi
Sat Mar 25, 2006 5:29 pm
Forum: Platform Related Issues
Topic: 2.6.2 doesn't compile on FC5!!!!!
Replies: 8
Views: 1571

Jorg wrote:Glad it's solved ;-)

- Jorgen
Well, I don't think anyone solved the compilation problem.. :roll: Using the rpms should only be a workaround...
Can anybody else verify the compilation problem?
by Avi
Sat Mar 25, 2006 5:27 pm
Forum: Platform Related Issues
Topic: Stupid question -I knpw. But wx in DOS?
Replies: 7
Views: 2587

Funny how people wish wxWidgets was ported to DOS while it doesn't fully work over other ports... for example, wxX11 (for people not wanting to use wxGTK because of the addition of the GTK/GLib and other layers)... I'm sure it requires much more work... I wonder, what's more important- having as man...
by Avi
Sat Mar 25, 2006 5:21 pm
Forum: Platform Related Issues
Topic: wxListControl column width resizing
Replies: 8
Views: 2487

1. Are you catching sizing/mouse events in your code? Did you overload any method from wxListCtrl?

2. What GTK version do you use? 1/2? Which wxWidgets version? 2.6.2?
by Avi
Fri Mar 24, 2006 7:58 pm
Forum: C++ Development
Topic: wxFrame icon
Replies: 8
Views: 3431

I use a .ico file referenced in a .rc file: FRAME_ICON ICON "res\\app.ico" and in my main frame constructor: #ifdef __WXMSW__ wxIcon icon; icon.LoadFile (wxT("FRAME_ICON"), wxBITMAP_TYPE_ICO_RESOURCE); SetIcon(icon); #endif It works well. Instead of having the #ifdef... check wh...
by Avi
Fri Mar 03, 2006 6:03 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling wxWidgets 2.6.3-RC1 with GCC 4.1 (MinGW)
Replies: 14
Views: 6970

How "GCC 4.1 (MinGW)"? The latest GCC version ported to MinGW is 3.4.5 (as far as I can see at http://sourceforge.net/project/showfile ... up_id=2435)... :?
by Avi
Fri Mar 03, 2006 5:50 pm
Forum: C++ Development
Topic: Catching std exceptions thrown in MyFrame member functions
Replies: 6
Views: 1780

Well, of course you cannot catch that exception in MyApp::OnInit, since this function is only called once and does not contain the main loop! What about wxApp::OnExceptionInMainLoop or wxApp::OnFatalException or wxApp::OnUnhandledException ? :) In that last function, notice where it says: Note that ...