Search found 327 matches

by Widgets
Sat Sep 29, 2018 1:31 am
Forum: C++ Development
Topic: wxWidgets unsupported charset - what to do?
Replies: 7
Views: 220

Re: wxWidgets unsupported charset - what to do?

FWIW, using your sample code and adjusting the code page as necessary, I have been able to decode and convert ISO-2022-JP, GB2312 & GBK; the latter two use the same MultiByteToWideChar code page 936 What I have now: int l = ar_wsInStr.Len(); char ISO2022JP_DATA[128] = {0}; int i = 0; for ( i = 0...
by Widgets
Fri Sep 28, 2018 11:20 pm
Forum: C++ Development
Topic: wxWidgets unsupported charset - what to do?
Replies: 7
Views: 220

Re: wxWidgets unsupported charset - what to do?

Thank you; I had tried to trace through the conversion, but got lost. In the process I have learned a lot, but more importantly, I have realized how much more I don't understand about the internal workings of the various string and char types and their transformations back and forth. I had had a bri...
by Widgets
Fri Sep 28, 2018 5:04 pm
Forum: C++ Development
Topic: wxWidgets unsupported charset - what to do?
Replies: 7
Views: 220

Re: wxWidgets unsupported charset - what to do?

Working on the ISO-2022-JP charset for now, I have /* What can we do ?? */ // at least log the error return the raw bytes wxLogError( _("Can't decode charset '%s' ."), ar_wsCharSet ); // the ISO-2022-JP byte sequence --V // 1b 24 42 36 62 30 52 1b 28 4a 20 76 69 61 20 63 75 72 6c 2d 6c 69 ...
by Widgets
Thu Sep 27, 2018 10:04 pm
Forum: C++ Development
Topic: wxWidgets unsupported charset - what to do?
Replies: 7
Views: 220

Re: wxWidgets unsupported charset - what to do?

Can you explain in more detail where the texts come from, how do you know their encoding, in which byte format you receive them and what you need to do with them? The data comes directly from the MIME encoded e-mail source where I get strings such as L"=?GBK?B?vfDN/g==?=" or L"=?ISO-...
by Widgets
Thu Sep 27, 2018 8:46 pm
Forum: C++ Development
Topic: wxWidgets unsupported charset - what to do?
Replies: 7
Views: 220

wxWidgets unsupported charset - what to do?

Some time ago - https://forums.wxwidgets.org/viewtopic.php?f=1&t=44782 - I had run into a character set not supported by wxWidgets' built-in facilities. At the time, I never did resolve the issue because it seemed to arise infrequently enough for me to be able to simply ignore it. Meanwhile, the...
by Widgets
Thu Jul 26, 2018 4:04 pm
Forum: C++ Development
Topic: Reading back contents of wxGrid wxGridCellChoiceEditor
Replies: 7
Views: 169

Re: Reading back contents of wxGrid wxGridCellChoiceEditor

Behave - yes. For the usage it is a different issue. 'Usage' from a user's POV: yes - sort of, because wxChoice as I understand it, does not allow the user to add items to the list, but the wxGrid version does 'usage' from a programmer's POV: NO :D ...... But that's would be counterintuitive, since...
by Widgets
Thu Jul 26, 2018 2:39 pm
Forum: C++ Development
Topic: Reading back contents of wxGrid wxGridCellChoiceEditor
Replies: 7
Views: 169

Re: Reading back contents of wxGrid wxGridCellChoiceEditor

I would like to save the edited values, but it seems m_choices is inaccessible Yes, it's not exposed through the API. :( 1) As you're the one filling the choices, shouldn't you be able to reconstruct the values? That is how I am handling it now - but it is a bit of extra trouble; it would be much s...
by Widgets
Wed Jul 25, 2018 8:00 pm
Forum: C++ Development
Topic: Reading back contents of wxGrid wxGridCellChoiceEditor
Replies: 7
Views: 169

Re: Reading back contents of wxGrid wxGridCellChoiceEditor

Is there a way to actually retrieve the data values in the choice box??
I would like to save the edited values, but it seems m_choices is inaccessible :?
by Widgets
Wed Jul 25, 2018 5:25 pm
Forum: C++ Development
Topic: Reading back contents of wxGrid wxGridCellChoiceEditor
Replies: 7
Views: 169

Re: Reading back contents of wxGrid wxGridCellChoiceEditor

Thank you :-) Tracing through the code today finally got me the answer; yesterday it was a bit too late in the day for clear thinking. I had been tracing through the code, but never really caught on ... Clone() did copy the values, but I stuffed the editor into the wrong column :oops: #-o As for the...
by Widgets
Wed Jul 25, 2018 5:56 am
Forum: C++ Development
Topic: Reading back contents of wxGrid wxGridCellChoiceEditor
Replies: 7
Views: 169

Reading back contents of wxGrid wxGridCellChoiceEditor

In a wxGrid with a variable number of rows, I have one column which can contain a choice drop down. In order to allow the user to move existing lines up or down in the grid, i.e. reorder the rows, I want to read back the contents of the choice box which is populated when the row is first inserted so...
by Widgets
Tue Jul 03, 2018 11:56 pm
Forum: C++ Development
Topic: Drag n Drop hint move vs copy [SOLVED]
Replies: 5
Views: 225

Re: Drag n Drop hint move vs copy [SOLVED]

Thank you, doublemax.
If I override the function and simply return 'wxDragCopy' unconditionally, I do get the 'Copy' string - but still get the much fancier graphic as well.
I had assumed I would have to do more than that ;-)
by Widgets
Tue Jul 03, 2018 10:20 pm
Forum: C++ Development
Topic: Drag n Drop hint move vs copy [SOLVED]
Replies: 5
Views: 225

Re: Drag n Drop hint move vs copy [SOLVED]

In my case, for the DND sample, I do get the + in a small square as a graphic (no string other than the '+') when I drag a file name from the right hand pane. If I drag a file (name) from a File Explorer window, I get the string 'move' along with the much larger graphic (two gears inside a frame) I ...
by Widgets
Tue Jul 03, 2018 9:36 pm
Forum: C++ Development
Topic: Drag n Drop hint move vs copy [SOLVED]
Replies: 5
Views: 225

Re: Drag n Drop hint move vs copy [SOLVED]

As far as I can tell, my code and the code in the book parallels that in the 3.0.1 DND example and in neither one can I see any override for the class DnDFile class for OnDragOver - only in the URL DnD case.
So I am still missing something :?
by Widgets
Tue Jul 03, 2018 8:38 pm
Forum: C++ Development
Topic: Missing files in wxFileDialog [SOLVED]
Replies: 2
Views: 146

Re: Missing files in wxFileDialog [SOLVED]

A very interesting topic. I had been unaware of this and will have to read up on it and then see where it leads. Unfortunately, looking in C:/Windows/SysWOW64 does not show the files I am looking for either, even in File Explorer, so I suspect they are located in C:/Windows/System32 as shown in File...
by Widgets
Tue Jul 03, 2018 8:28 pm
Forum: C++ Development
Topic: Drag n Drop hint move vs copy [SOLVED]
Replies: 5
Views: 225

Drag n Drop hint move vs copy [SOLVED]

In trying to sort out my problem with some files not showing in the files list of wxFileDialog, I also was reminded of an old nuisance I had left unsolved. When dragging a file into the utility, the drag hint, once it reaches my utility, claims I am 'move'ing a file, when I am only copying it. In my...

Go to advanced search