Search found 382 matches

by Widgets
Tue Mar 19, 2019 5:02 pm
Forum: C++ Development
Topic: Translate question
Replies: 0
Views: 1602

Translate question

After picking up a project from Sourceforge - dclean, which seems to have been dormant for quite some time - and which includes translations for several languages and reading a good number of posts as well as the documentation, I have been able to work my way through the steps necessary to understan...
by Widgets
Thu Feb 21, 2019 5:48 pm
Forum: C++ Development
Topic: Converting a KOI8-r string for display
Replies: 2
Views: 163

Re: Converting a KOI8-r string for display

Thank you.
By using the detected encoding 'wsCharSet', it makes the solution much more general :-)

Code: Select all

wxString out( in, wxCSConv(wsCharSet) );
by Widgets
Thu Feb 21, 2019 3:20 am
Forum: C++ Development
Topic: Converting a KOI8-r string for display
Replies: 2
Views: 163

Converting a KOI8-r string for display

Recently my mail screener ended up receiving a subject line encoded in KOI8-r and I am stuck trying to convert the string to a displayable string with mixed Cyrillic ASCII characters. The original string looks like: Subject: =?koi8-r?B?7sUg1cTBxdTT0SDEz9PUwdfJ1Ng6IFNQQU0gZnJvbSB5b3VyIG5ldHdvcms/?= =...
by Widgets
Thu Dec 27, 2018 6:09 pm
Forum: C++ Development
Topic: Disable static text of wxStaticBoxSizer
Replies: 8
Views: 1201

Re: Disable static text of wxStaticBoxSizer

Sorry, I thought it was clear from the last post in the second thread you linked, the code you referenced as "native"; there is also a link to Google search results for the issue. At the start, I just found and used the image - for convenience; meanwhile, as a result of this discussion, I have also...
by Widgets
Wed Dec 26, 2018 7:53 pm
Forum: C++ Development
Topic: Disable static text of wxStaticBoxSizer
Replies: 8
Views: 1201

Re: Disable static text of wxStaticBoxSizer

There is no workaround using manifests, my simple workaround uses a disabled wxStaticText - see the third box in my screenshot and code. Understood. Still, as I see it, it is a choice of 'work-arounds' then. :) My hope was to understand and perhaps find a way to handle the, at least to me, quite un...
by Widgets
Tue Dec 25, 2018 9:20 pm
Forum: C++ Development
Topic: Disable static text of wxStaticBoxSizer
Replies: 8
Views: 1201

Re: Disable static text of wxStaticBoxSizer

Regarding the manifests - there are basically two: Common controls manifest , where your application states that is uses common controls v6 introduced with Windows XP and therefore will be themed according to the theme Windows is using. .... This manifest is added automatically by MSVC 2005 and new...
by Widgets
Mon Dec 24, 2018 6:27 pm
Forum: C++ Development
Topic: Disable static text of wxStaticBoxSizer
Replies: 8
Views: 1201

Re: Disable static text of wxStaticBoxSizer

Looking at the buttons in the screnshot, your application seems to be missing a common controls manifest - if so, what is different from what I wrote in the last post of the second thread you linked, i.e., without a manifest the static box does not show disabled? What manifest "fiddling" do you mea...
by Widgets
Sat Dec 22, 2018 7:03 pm
Forum: C++ Development
Topic: Disable static text of wxStaticBoxSizer
Replies: 8
Views: 1201

Disable static text of wxStaticBoxSizer

This issue has bothered me for some time and it evidently has done the same for others - see these 2 threads: 1) https://forums.wxwidgets.org/viewtopic.php?t=35347 2) https://forums.wxwidgets.org/viewtopic.php?f=23&t=43641 The problem I want to resolve is to actually grey out the label of the wxStat...
by Widgets
Tue Nov 06, 2018 5:23 am
Forum: C++ Development
Topic: wxPropertyGrid multi children, same label
Replies: 1
Views: 492

Re: wxPropertyGrid multi children, same label

The code needs to be something like: pProp = m_pPage->AppendIn( pPropPng, new wxPropertyCategory( _T("IHDR") ) ); // length wsT.Printf( _T("%d"), uiLen ); wsFullProp.Printf( _T("%s.%s"), _T("IHDR"), _("Length") ); pProp->AppendChild( new wxStringProperty( _("Length"), wsFullProp, //wxPG_LABEL, wsT )...
by Widgets
Tue Nov 06, 2018 4:05 am
Forum: C++ Development
Topic: wxPropertyGrid multi children, same label
Replies: 1
Views: 492

wxPropertyGrid multi children, same label

I want to be able to build up a property tree inside a wxPropertyGrid, but, I need to be able to add branches where each branch can have leaves with the same name as another sibling branch PNG chunks + IHDR Length CRC + IDAT CRC Length + tEXt CRC Length "some text string" + IEND CRC Length Til now I...
by Widgets
Sat Sep 29, 2018 1:31 am
Forum: C++ Development
Topic: wxWidgets unsupported charset - what to do?
Replies: 7
Views: 859

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; i ...
by Widgets
Fri Sep 28, 2018 11:20 pm
Forum: C++ Development
Topic: wxWidgets unsupported charset - what to do?
Replies: 7
Views: 859

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

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 62 72 61 7...
by Widgets
Thu Sep 27, 2018 10:04 pm
Forum: C++ Development
Topic: wxWidgets unsupported charset - what to do?
Replies: 7
Views: 859

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-2022-JP?Q?=1B$B...
by Widgets
Thu Sep 27, 2018 8:46 pm
Forum: C++ Development
Topic: wxWidgets unsupported charset - what to do?
Replies: 7
Views: 859

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 sam...