Search found 75 matches

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: 62

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: 185

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: 6
Views: 109

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: 6
Views: 109

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: 6
Views: 109

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: 185

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: 6
Views: 109

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: 98

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: 185

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: 98

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...
by Mick P.
Fri Aug 02, 2019 6:01 pm
Forum: General Development
Topic: 3rd party listings/resources? (e.g. wxImageHandler supplemental.) Not wxCode.
Replies: 4
Views: 98

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

Sorry again, web search is failing me. I know there is a good looking third-party SVG component for wxWidgets integration... I've seen it... but I don't know, where is a place to find out what third-party options are available to wxWidget users? (I see wxCode. http://wxcode.sourceforge.net/index.php...
by Mick P.
Fri Aug 02, 2019 5:44 pm
Forum: C++ Development
Topic: Curiosity: "Creating a Custom Cursor" example... WTH is wxWidgets?
Replies: 9
Views: 185

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

#ifdef __WXMSW__ wxCursor down_cursor = wxCursor(down_bits, 32, 32, 6, 14, down_mask, wxWHITE, wxBLACK); #elif defined(__WXGTK__) or defined(__WXMOTIF__) wxCursor down_cursor = wxCursor(down_bits, 32, 32, 6, 14, down_mask, wxWHITE, wxBLACK); #endif is what I think it should look like. I can't under...
by Mick P.
Thu Aug 01, 2019 11:02 pm
Forum: C++ Development
Topic: Advise: Best handle wxMenu/accelerator event?
Replies: 11
Views: 185

Re: Advise: Best handle wxMenu/accelerator event?

I don't know enough about wxWidgets to comment, but the ACCEL structure is limited to 16-bit also, even though WM_MENUCOMMAND appears to use 32-bit. Even being limited to 16-bit unique IDs is not so bad. Probably wxWidgets could implement hotkeys without ACCEL since it isn't a cosmetic/look-feel thi...
by Mick P.
Thu Aug 01, 2019 10:45 pm
Forum: C++ Development
Topic: Curiosity: "Creating a Custom Cursor" example... WTH is wxWidgets?
Replies: 9
Views: 185

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

Sorry to do this, but I'm scratching my head looking at this (https://docs.wxwidgets.org/3.0/classwx_cursor.html) document, in the "Creating a Custom Cursor" section.... static char down_bits[] = { 255, 255, 255, 255, 31, 255, 255, 255, 31, 255, 255, 255, 31, 255, 255, 255, 31, 255, 255, 255, 31, 25...
by Mick P.
Tue Jul 30, 2019 11:48 am
Forum: C++ Development
Topic: Advise: Best handle wxMenu/accelerator event?
Replies: 11
Views: 185

Re: Advise: Best handle wxMenu/accelerator event?

Thanks for support as always! I wonder if it's possible to implement this on wxWidget's platforms. I may take it to the tracker, to see if anyone is interested in researching the possibilities. Working with `int` is not much to go on. It runs counter to most of wxWidget's design. Even if the fix is ...