Search found 1345 matches

by PB
Sun Dec 10, 2017 10:29 am
Forum: Compiler / Linking / IDE Related
Topic: Current status of wxWidgets with MinGW based compilers
Replies: 5
Views: 107

Re: Current status of wxWidgets with MinGW based compilers

The GIT master builds with current MinGW32 (GCC 6.3) again, after the https://github.com/wxWidgets/wxWidgets/commit/879876e047d9 commit. I have tested only multilib builds in gnu++14 mode with basically mingw32-make -f makefile.gcc BUILD=debug CXXFLAGS="-std=gnu++14" mingw32-make -f makefi...
by PB
Thu Dec 07, 2017 9:30 pm
Forum: C++ Development
Topic: Question about BitmapButton
Replies: 3
Views: 48

Re: Question about BitmapButton

In addition to what has already been said, you may be running into an issue described here
https://forums.wxwidgets.org/viewtopic.php?f=1&t=44031
by PB
Thu Dec 07, 2017 9:13 pm
Forum: C++ Development
Topic: Get data from a web page
Replies: 28
Views: 365

Re: Get data from a web page

I am not using POCO but I had it ready as I wanted to look at retriving content from pages using https:// I have no knowledge of POCO, I just blindly adapted the download_ssl sample from POCO to wxWidgets (Windows, MSVC 2015, wxWidgets 3.1). FWIW, I was able to get it running, although I guess for a...
by PB
Wed Dec 06, 2017 1:19 pm
Forum: C++ Development
Topic: [wx3.0.2][wxMSW] Displaying unicode chars [SOLVED]
Replies: 8
Views: 86

Re: [wx3.0.2][wxMSW] Displaying unicode chars [SOLVED]

wxWidgets certainly CAN display unicode characters You provided little information but my guess is you have the strings in the source files and use MSVS. I would recommend against this practice as this can be very brittle when switching between platforms and compilers. If it is a rare unicode char o...
by PB
Wed Dec 06, 2017 9:25 am
Forum: C++ Development
Topic: Access Violation when open a dialog /
Replies: 6
Views: 85

Re: Access Violation when open a dialog /

btw there is some unconvinient circumstance the git repo. Some of the source folders are emtpy when downloading the repo as zip package. So it is necessary to download these directories manually one by one. I believe this is not an issue with wxWidgets repository but with GitHub. Git submodules (wx...
by PB
Fri Dec 01, 2017 3:45 pm
Forum: C++ Development
Topic: GIF transparent colour turning bright pink
Replies: 21
Views: 248

Re: GIF transparent colour turning bright pink

Rocketmagnet wrote:I tried using wxIMAGE_QUALITY_HIGH, but the results still show pink leakage.


Mhm, it does for me now too. I must have confused it with another value, sorry.
by PB
Fri Dec 01, 2017 3:27 pm
Forum: C++ Development
Topic: GIF transparent colour turning bright pink
Replies: 21
Views: 248

Re: GIF transparent colour turning bright pink

I have never said that the transparent pixels should be normally display to the user in magenta (although IIRC the resource editor in MSVC6 did this to indicate which pixels are transparent). I suggested to draw GIFs with transparency mask as they are intended to be displayed, i.e., the applications...
by PB
Fri Dec 01, 2017 1:20 pm
Forum: C++ Development
Topic: GIF transparent colour turning bright pink
Replies: 21
Views: 248

Re: GIF transparent colour turning bright pink

So, all you want is to draw the GIF on a gray background? Just draw the gray background first and then draw the GIF using transparent mask. Goal achieved. I must admit I am really confused... Edit I can confirm magenta "leaking" into the image when rescaling with wxIMAGE_QUALITY_BILINEAR. ...
by PB
Fri Dec 01, 2017 11:53 am
Forum: C++ Development
Topic: GIF transparent colour turning bright pink
Replies: 21
Views: 248

Re: GIF transparent colour turning bright pink

Is there some way to stop this happening? As I told you before, magenta (RGB 255, 0, 255) is used by convenience when simple graphics APIs draw the parts of image that should be fully transparent. If you do not want to draw the transparent pixels (and you do not want that), either tell the wxDC to ...
by PB
Thu Nov 30, 2017 7:35 pm
Forum: General Development
Topic: Qt WidgetStack, Java CardLayout [SOLVED]
Replies: 14
Views: 930

Re: Qt WidgetStack, Java CardLayout [SOLVED]

I will submit a PR to have the links fixed in the docs for the latest stable version too.
by PB
Thu Nov 30, 2017 5:06 pm
Forum: C++ Development
Topic: GIF transparent colour turning bright pink
Replies: 21
Views: 248

Re: GIF transparent colour turning bright pink

I do not know why, but the magenta color has been used since I can remember when drawing the "transparent colour". I also do not understand why you are surprised when the transparency mask is not used when you tell wxWidgets to not use it? The difference being that GIFs are 8-bit only so t...
by PB
Thu Nov 30, 2017 4:28 pm
Forum: C++ Development
Topic: GIF transparent colour turning bright pink
Replies: 21
Views: 248

Re: GIF transparent colour turning bright pink

I believe that at least on MSW wxDC does not support transparency aside from the transparency mask. You can easily test this using wxGCDC instead of regular wxDC. Edit Actually it seems that PNGs with transparency are drawn properly both by wxDC and wxGCDC while the same image converted to GIF with ...
by PB
Wed Nov 29, 2017 9:06 pm
Forum: C++ Development
Topic: Tool bar button PNG issues [SOLVED]
Replies: 22
Views: 289

Re: Tool bar button PNG issues [SOLVED]

FWIW after deleting the color correction chunk the image works fine for me. It starts at 0x36 and has size 0xA5B. not sure of a tool that will do it for you though. When I open the problematic PNG in IrfanView or Win10 Paint 3D and save it, the file size shrinks dramatically and the "incorrect...
by PB
Wed Nov 29, 2017 8:15 pm
Forum: C++ Development
Topic: Tool bar button PNG issues [SOLVED]
Replies: 22
Views: 289

Re: Tool bar button PNG issues [SOLVED]

I can confirm that it is probably not an issue with wxXmlResource. Tested with modified xrc sample where I added <object class="wxBitmap" name="PNGBitmap">file.png</object> to rc/toolbar.xrc and wxBitmap bmp = wxXmlResource::Get()->LoadBitmap("PNGBitmap"); if ( bmp.IsOk...
by PB
Wed Nov 29, 2017 7:48 pm
Forum: C++ Development
Topic: Tool bar button PNG issues [SOLVED]
Replies: 22
Views: 289

Re: Tool bar button PNG issues [SOLVED]

Edit: or could it be a an issue with wxXmlResource? Just like doublemax, I have never used wxXmlResource. FWIW, I changed the first tool in rc/toolbar.xrc of the xrc sample to use your "invalid" PNG, added wxInitAllImageHandlers() to its MyApp::OnInit(), compiled and run the sample. <?xml...

Go to advanced search