Search found 349 matches

by Widgets
Thu Dec 27, 2018 6:09 pm
Forum: C++ Development
Topic: Disable static text of wxStaticBoxSizer
Replies: 8
Views: 992

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

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

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

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

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

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

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

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

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

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

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

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...
by Widgets
Thu Jul 26, 2018 4:04 pm
Forum: C++ Development
Topic: Reading back contents of wxGrid wxGridCellChoiceEditor
Replies: 7
Views: 441

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

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

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