Search found 124 matches

by katuday
Sun Apr 12, 2020 11:35 pm
Forum: C++ Development
Topic: wxCheckListBox does not allow extended check selection?
Replies: 6
Views: 187

Re: wxCheckListBox does not allow extended check selection?

I think the behaviour matches the documentation. It also behaves as I expect it to: I usually first select the items and then toggle them with <space>. However, at least on MSW, this is not consistent. For example, File Explorer checks the items when expanding the selection but it displays checkbox...
by katuday
Sun Apr 12, 2020 5:17 pm
Forum: C++ Development
Topic: wxCheckListBox does not allow extended check selection?
Replies: 6
Views: 187

Re: wxCheckListBox does not allow extended check selection?

I should have been clearer I guess. The extended selection seems to apply to the highlighting of the list items similar to wxListbox but does not Check the items. i.e. I was expecting the selection to iterate the items calling list->Check(index, true); The sample on my machine does exactly what my p...
by katuday
Sun Apr 12, 2020 4:03 pm
Forum: C++ Development
Topic: wxCheckListBox does not allow extended check selection?
Replies: 6
Views: 187

wxCheckListBox does not allow extended check selection?

wxMSW 3.1.3 Windows 10 Visual Studio 2017 According to the doc for wxListBox the style wxLB_EXTENDED allows Extended-selection list: the user can extend the selection by using SHIFT or CTRL keys together with the cursor movement keys or the mouse. In the case of wxCheckListBox this behaviour does no...
by katuday
Sat Jan 04, 2020 1:06 pm
Forum: Platform Related Issues
Topic: Where is registry.h?
Replies: 1
Views: 211

Where is registry.h?

wxMSW 3.1.2
I cannot find this header file "wx/msw/registry.h"
documented here https://docs.wxwidgets.org/trunk/classwx_reg_key.html
by katuday
Mon Oct 14, 2019 9:18 pm
Forum: C++ Development
Topic: Hoa to display row number in a wxListCtrl of type wxLC_REPORT virual mode?
Replies: 13
Views: 1107

Hoa to display row number in a wxListCtrl of type wxLC_REPORT virual mode?

I want to diplay the rownber like the way wxGird does it

Code: Select all

GetRowLabelValue (int row) const.
Is there an API function or this will require custom coding?
by katuday
Sun Oct 06, 2019 7:08 pm
Forum: C++ Development
Topic: wxGrid does not display UTF8 characters correctly
Replies: 7
Views: 463

Re: wxGrid does not display UTF8 characters correctly

It looks like the original data was UTF8 encoded twice. How does the data get into your app? This works (UTF8 converted to hex to ensure there are no conversion errors anywhere). const char utf8[] = "\xe0\xa4\x95\xe0\xa4\xbe\xe0\xa4\x9a\xe0\xa4\x82\x20\xe0\xa4\xb6\xe0\xa4\x95\xe0\xa5\x8d\xe0\xa4\xa...
by katuday
Sun Oct 06, 2019 6:31 pm
Forum: C++ Development
Topic: wxGrid does not display UTF8 characters correctly
Replies: 7
Views: 463

Re: wxGrid does not display UTF8 characters correctly

doublemax wrote:
Sun Oct 06, 2019 6:15 pm

Code: Select all

wxString::FromUTF8(val.data());
This would have been the correct way. What didn't work? If the wxString was empty, there's an error in the UTF8 encoding.
That call
wxString::FromUTF8(val.data());
returns the same result as
wxString ( val.data()
by katuday
Sun Oct 06, 2019 6:08 pm
Forum: C++ Development
Topic: wxGrid does not display UTF8 characters correctly
Replies: 7
Views: 463

Re: wxGrid does not display UTF8 characters correctly

This has nothing to do with wxGrid. Sanskrit: ï»¿à ¤•à ¤¾à ¤šà ¤‚ à ¤¶à ¤•à ¥à ¤¨à ¥‹à ¤®à ¥à ¤¯à ¤¤à ¥à ¤¤à ¥à ¤®à ¥ à ¥¤ à ¤¨à ¥‹à ¤ªà ¤¹à ¤¿à ¤¨à ¤¸à ¥à ¤¤à ¤¿ à ¤®à ¤¾à ¤®à ¥ à ¥¥ This is un-decoded UTF8. How do you g...
by katuday
Sun Oct 06, 2019 4:30 pm
Forum: C++ Development
Topic: wxGrid does not display UTF8 characters correctly
Replies: 7
Views: 463

wxGrid does not display UTF8 characters correctly

My environment: wxWidgets-3.1.2 Windows 10, Visual Studio 2017 x64-bit static build ( UNICODE) I am trying to load and display phrases in a wxGrid (one line per cell ) from this page http://www.columbia.edu/~fdc/utf8/ But the characters are not displayed correctly in the grid. For example this Sansk...
by katuday
Fri Feb 01, 2019 12:25 am
Forum: C++ Development
Topic: Using wxWidgets in a Multi-process Architecture
Replies: 8
Views: 688

Re: Using wxWidgets in a Multi-process Architecture

wxWidgets has wxProcess Once you have the process executing, you can do IPC between the app (server) and that process (client). Or use a temp file updated frequently, one process write, the other reads. This is only true if the process is launched asynchronously, otherwise the server waits (see wxE...
by katuday
Wed Jan 30, 2019 11:53 pm
Forum: C++ Development
Topic: Using wxWidgets in a Multi-process Architecture
Replies: 8
Views: 688

Re: Using wxWidgets in a Multi-process Architecture

As far as i understand you, i would think i had the same question some weeks ago. I found two possible solutions: You may use wxThread to program some explizit multithreading (seem quiet complicated without some multithreading-experience, so i did not try it). Alternatively there is OpenMP, which s...
by katuday
Wed Jan 30, 2019 11:41 pm
Forum: C++ Development
Topic: Using wxWidgets in a Multi-process Architecture
Replies: 8
Views: 688

Re: Using wxWidgets in a Multi-process Architecture

ONEEYEMAN wrote:Hi,
Are you looking for "multi-processing" or "multi-threading"?

Thank you.
I want "multi-processing" NOT "multi-threading".
I want independent processes so that in case once process crashes does not bring down the entire app.
by katuday
Wed Jan 30, 2019 8:07 pm
Forum: C++ Development
Topic: Using wxWidgets in a Multi-process Architecture
Replies: 8
Views: 688

Using wxWidgets in a Multi-process Architecture

Windows 10 and Visual Studio 2017. I would like to build a wxWidgets app as a proof of concept in a Multi-process Architecture similar to modern browsers like Chrome, Edge and Firefox. No, I am not interested in building a browser, for that I can simply to use the available wrappers like wxWebViewCh...
by katuday
Sun Jun 17, 2018 7:02 pm
Forum: C++ Development
Topic: How do you set cell attributes of a virtual wxListCtrl ?
Replies: 4
Views: 1043

Re: How do you set cell attributes of a virtual wxListCtrl ?

Thanks for the lead. So I created an attributes object wxListItemAttr m_attr; Set the attributes in the constructor of my model as m_attr.SetFont(wxFontInfo(12).FaceName("Tahoma")); and implemented OnGetItemAttr as wxListItemAttr* OnGetItemAttr(long item) const { return (wxListItemAttr *)&m_attr; } ...