Search found 110 matches

by Mick P.
Thu Aug 29, 2019 2:41 pm
Forum: C++ Development
Topic: wxPalette PNG and GIF images undocumented?
Replies: 9
Views: 189

Re: wxPalette PNG and GIF images undocumented?

In general, support for 8bit bitmaps is low. wxImage is always 24 or 32 bit. Only a wxBitmap can be 8bit. I'd avoid using 8bit bitmaps all together. I'm returning to this. Do you know if 32bit data is real? Or do mean the alpha channel is not interleaved with the RGB data? That is 24bit+8bit alpha ...
by Mick P.
Tue Aug 27, 2019 12:24 pm
Forum: C++ Development
Topic: wxToolBar not playing nice with wxFrame children (client area?)
Replies: 6
Views: 163

Re: wxToolBar not playing nice with wxFrame children (client area?)

Something that worked for me is after Realize to go through every window in the frame and use SetPosition on themselves. I didn't use "GetPosition" for this, however I think for it to work, then SetPosition(0,0) must situate a window under the toolbar, and from that it follows "GetPosition" should b...
by Mick P.
Tue Aug 27, 2019 5:41 am
Forum: C++ Development
Topic: wxToolBar not playing nice with wxFrame children (client area?)
Replies: 6
Views: 163

wxToolBar not playing nice with wxFrame children (client area?)

I'm scratching my head looking at wxToolBar. The documentation seems to suggest it allocates "nonclient" space for itself, as if it's a menu bar. But that's not what I'm observing. As such, I'm unsure how to proceed. I prefer to have resource than to try to hatch a harebrained workaround. If anyone ...
by Mick P.
Tue Aug 27, 2019 5:36 am
Forum: C++ Development
Topic: Best: wxFileConfig encoding, wxString UTF8 C-strings
Replies: 8
Views: 197

Re: Best: wxFileConfig encoding, wxString UTF8 C-strings

Thanks. I was hoping for a tip on how to override the locale. On the other point, it's just simpler to work with standard paths, or URLs like I say, that are standard.
by Mick P.
Sun Aug 25, 2019 10:37 am
Forum: C++ Development
Topic: Best: wxFileConfig encoding, wxString UTF8 C-strings
Replies: 8
Views: 197

Best: wxFileConfig encoding, wxString UTF8 C-strings

Sorry, does anybody know if wxFileConfig can be forced to use UTF-8 (assuming it uses system locale) and if APIs accepts C-strings, then is it possible to avoid wxString::FromUTF8 by communicating that C-strings are UTF8? If so, how? If not, C-strings are not so useful I guess. I suppose any Unicode...
by Mick P.
Mon Aug 12, 2019 7:56 pm
Forum: Platform Related Issues
Topic: Advise: Use stock GDK cursors (e.g. GDK_TOP_SIDE)
Replies: 0
Views: 584

Advise: Use stock GDK cursors (e.g. GDK_TOP_SIDE)

I'm porting some Qt software that wants sizing cursors similar to MSW's. wxGTK (http://trac.wxwidgets.org/ticket/8856) may not agree with this. Here (https://developer.gimp.org/api/2.0/gdk/gdk-Cursors.html) is old X cursors. Do X desktops typically use the likes of GDK_TOP_SIDE to move the top of a ...
by Mick P.
Mon Aug 05, 2019 1:48 am
Forum: C++ Development
Topic: Curiosity: "Creating a Custom Cursor" example... WTH is wxWidgets?
Replies: 9
Views: 221

Re: Curiosity: "Creating a Custom Cursor" example... WTH is wxWidgets?

And how you propose to do that? Do you have such constructor signature in mind? The identical signature obviously. I could not follow your reason for the discrepency before. I guess the documentation doesn't attempt to explain this either. All the parameters appear represented. I guess MSW bitmaps ...
by Mick P.
Sat Aug 03, 2019 11:28 pm
Forum: C++ Development
Topic: wxPalette PNG and GIF images undocumented?
Replies: 9
Views: 189

Re: wxPalette PNG and GIF images undocumented?

It looks like maybe GetPixel (wxPalette) also finds closest matches. Maybe internally it is a spatial lookup system.

In my case it's not useful. It's funny wxWidgets implements saving images when the loading system is so fragile. Priorities.
by Mick P.
Sat Aug 03, 2019 11:14 pm
Forum: C++ Development
Topic: wxPalette PNG and GIF images undocumented?
Replies: 9
Views: 189

Re: wxPalette PNG and GIF images undocumented?

Did you even read the documentation for wxImage::GetPalette and SetPalette? It's pretty unremarkable? Where does it say that? That would be wrong. Like i said, *wxImage* is 24 or 32 bit, no exceptions. "Some of the wxImage handlers have been modified to set the palette if one exists in the image fi...
by Mick P.
Sat Aug 03, 2019 9:45 pm
Forum: C++ Development
Topic: wxPalette PNG and GIF images undocumented?
Replies: 9
Views: 189

Re: wxPalette PNG and GIF images undocumented?

So how would GetPalette work? If the palette is saved, but the index image is not? Any large image that is indexed can be large memory saving, which helps when transferring images, like loading a "texture" from system memory to video memory. (It's unpacked on the video side. Takes up less space back...
by Mick P.
Sat Aug 03, 2019 8:14 pm
Forum: C++ Development
Topic: Curiosity: "Creating a Custom Cursor" example... WTH is wxWidgets?
Replies: 9
Views: 221

Re: Curiosity: "Creating a Custom Cursor" example... WTH is wxWidgets?

ONEEYEMAN wrote:
Sat Aug 03, 2019 2:27 pm
Hi,
And how do you propose to do it?
Different ports have different constructors...

Thank you.
Add a constructor, so the case of there being inconsistencies is minimized? I.e. commonsense.
by Mick P.
Sat Aug 03, 2019 8:10 pm
Forum: C++ Development
Topic: wxPalette PNG and GIF images undocumented?
Replies: 9
Views: 189

wxPalette PNG and GIF images undocumented?

Some of the documentation here is unclear: https://docs.wxwidgets.org/trunk/classwx_palette.html https://docs.wxwidgets.org/trunk/classwx_p_n_g_handler.html The first says PNG and GIF images with palettes will use wxPalette. I'm interested in this. Except I have yet to come across information about ...
by Mick P.
Sat Aug 03, 2019 1:14 pm
Forum: General Development
Topic: 3rd party listings/resources? (e.g. wxImageHandler supplemental.) Not wxCode.
Replies: 4
Views: 127

Re: 3rd party listings/resources? (e.g. wxImageHandler supplemental.) Not wxCode.

I got to wondering if any SVG libraries might have a sane pathway for file formats, since SVG should (I believe) be able to display "any" file format (like COLLADA.) I suspect not. Cairo seems to be able to partially open image files on a file system, but not in memory or via a generic I/O stream. I...
by Mick P.
Sat Aug 03, 2019 12:19 pm
Forum: C++ Development
Topic: Curiosity: "Creating a Custom Cursor" example... WTH is wxWidgets?
Replies: 9
Views: 221

Re: Curiosity: "Creating a Custom Cursor" example... WTH is wxWidgets?

What I mean is--unless the documentation is erroneous, or I'm missing something not obvious--then the branching code can live inside the constructor so that wxWidgets fulfills a (presumed) mandate of actually unifying these platforms to a reasonable degree. This example makes me to question what is ...
by Mick P.
Sat Aug 03, 2019 12:11 pm
Forum: General Development
Topic: 3rd party listings/resources? (e.g. wxImageHandler supplemental.) Not wxCode.
Replies: 4
Views: 127

Re: 3rd party listings/resources? (e.g. wxImageHandler supplemental.) Not wxCode.

SVG is just something I mentioned incidentally as an example of a third-party component (wxSVG) that I'm aware of. I'm looking for links to other projects that I'm not aware of. Especially image format loaders, since that's uncomplicated. With software that displays images, typically you just want t...