Search found 53 matches

by Paulsen
Wed Nov 25, 2009 10:00 pm
Forum: General Development
Topic: wxWidgets 2.9.0 early adopters: opinions anyone?
Replies: 5
Views: 1542

Thanks everyone for your answers! My take is that no one uses 2.9 in development yet (at least no one that actually does replied to this topic). My only project that requires some migration/upgrade to Unicode support can wait until next year, and there is an OS X port in the queue (my first!), which...
by Paulsen
Thu Nov 19, 2009 1:20 pm
Forum: General Development
Topic: wxWidgets 2.9.0 early adopters: opinions anyone?
Replies: 5
Views: 1542

wxWidgets 2.9.0 early adopters: opinions anyone?

I just dump this question here in the hope of sparking some discussion of the (de)merits of a switch to 2.9. I am particularly interested if you use 2.9 in a production environment, which 2.8 annoyances were fixed, and which new bugs have been newly introduced. On the surface, the Unicode changes lo...
by Paulsen
Mon Jun 15, 2009 5:04 pm
Forum: C++ Development
Topic: wxFileDialog SetDirectory and SetFilename Seem to be ignored
Replies: 30
Views: 3910

Maybe a dumb question: What platform and build environment are you on? "Documents and Settings" has a definite Windows-tone. Are you sure you are specifying the directory in a way your OS will understand?
by Paulsen
Mon Jun 15, 2009 4:40 pm
Forum: C++ Development
Topic: again on png transparency
Replies: 24
Views: 5499

This ticket seems to be close: http://trac.wxwidgets.org/ticket/9050 There's a patch that seems to address problems with controls using wxImageList. Here's a link to the related forum thread: http://forums.wxwidgets.org/viewtopic.php?p=78331 The sound of the ticket and its discussion is rather omino...
by Paulsen
Wed Jun 10, 2009 8:11 am
Forum: C++ Development
Topic: again on png transparency
Replies: 24
Views: 5499

Might be worth a bug report (or, if one already exists, a test against SVn and a patch ;) ) There are many bug reports. I guess the problem is that this kind of bug is difficult to reproduce for the devs: If you change some small parameter you get a completely different result (read: it might be wo...
by Paulsen
Tue Jun 09, 2009 5:15 pm
Forum: C++ Development
Topic: again on png transparency
Replies: 24
Views: 5499

This whole alpha transparency business is a disgrace. With much trial and error I have worked around most problems, but still can't get my images to work for all Windows display settings. Right now my code works for 8-bit and 32-bit color depths, images in 16-bit wxTreeCtrls and wxNotebooks are brok...
by Paulsen
Tue Jan 13, 2009 7:34 pm
Forum: Platform Related Issues
Topic: Windows: set disabled bitmap for menu items
Replies: 1
Views: 591

Windows: set disabled bitmap for menu items

Any bitmap attached to a menu item is rendered very ugly once a menu item is disabled. Is there a way to explicitly set the disabled bitmap for a menu item?

Using the source, I found wxMenuItem::SetDisabledBitmap(), which sets the bmpDisabled member of wxMenuItem, but this member is used nowhere.
by Paulsen
Tue Jan 13, 2009 7:29 pm
Forum: Platform Related Issues
Topic: Windows: default menu item in popup menus
Replies: 2
Views: 730

Windows: default menu item in popup menus

Is there a way to render the default menu item (the one that usually gets executed if an item is double-clicked) with a bold font?

Thanks!
by Paulsen
Tue Jan 13, 2009 6:29 pm
Forum: Platform Related Issues
Topic: Windows 32bpp Bitmap with alpha & load from resource
Replies: 3
Views: 1451

In the meantime I implemented the PNG to data string conversion thingy as outlined above, and things are a lot better. Even though, just today I encountered another fishyness. I have a 32bpp PNG, added to an wxImagelist and displayed in a wxNotebook tab. Event though the PNG has a transparent backgr...
by Paulsen
Wed Oct 29, 2008 9:09 pm
Forum: Platform Related Issues
Topic: Windows 32bpp Bitmap with alpha & load from resource
Replies: 3
Views: 1451

Windows 32bpp Bitmap with alpha & load from resource

After a lot of trial and error, it is my considered opinion that wx has no way to get a 32bpp bitmap loaded from a resource without loosing or mangling the alpha channel, using either BITMAP or ICON resources. Is there anyone out there who has managed? I'm loading these bitmaps now from strings with...
by Paulsen
Thu Sep 18, 2008 2:08 pm
Forum: C++ Development
Topic: SetCursor(wxNullCursor) not updating until the mouse moves?
Replies: 2
Views: 831

Probably this topic is long dead, but I stumbled upon the same problem wenn trying to change the cursor of a wxTreeCtrl. (wxMSW 2.8.8, Windows XP). As a workaround, I added a dummy mouse event to the wxTreeCtrl event queue to update the cursor on screen: wxMouseEvent Dummy; AddPendingEvent(Dummy); S...
by Paulsen
Thu Sep 18, 2008 1:48 pm
Forum: C++ Development
Topic: Alpha Channel with wxBitmap
Replies: 2
Views: 1658

Did you try something like this to draw the second (transparent) image over the first image? It worked for me. wxImage Image; Image.LoadFile("image.png", wxBITMAP_TYPE_PNG); wxBitmap Bitmap(Image); DC->DrawBitmap(Bitmap, 0, 0, true); There was some trial and error involved, but loading bitmaps from ...
by Paulsen
Fri Sep 28, 2007 4:23 pm
Forum: C++ Development
Topic: Memory leaking when using wxAuiNotebook
Replies: 6
Views: 1220

As of wxWidgets 2.8.4, it seems the patch has made it into the code, but has been disabled for some reason (#if 0).

The release notes say it is fixed in 2.8.5.
by Paulsen
Fri Sep 28, 2007 1:00 pm
Forum: C++ Development
Topic: Hiding items in a wxTreeCtrl
Replies: 1
Views: 1393

There is no way that I am aware of. Keep important data elsewhere, and delete the tree items for good. Recreate the item to un-hide. If the tree doesn't get too large, it is probably an option to rebuild the entire tree from scratch, you probably already have the code that does this. Use code like b...
by Paulsen
Fri Sep 28, 2007 12:38 pm
Forum: C++ Development
Topic: Transparent icon with alpha in wxImageList?
Replies: 1
Views: 814

This is a troublesome topic. For use with image lists on MSW I convert all images with alpha to the *.ico (32bpp) format, and include them as ICON resources, using the wxICON macro to add the image: ImageList->Add(wxICON(MyIcon)); If the display color depth is 32bit, this usually works well. If I re...