Search found 401 matches
- Thu Mar 11, 2021 1:02 am
- Forum: C++ Development
- Topic: Sort order indicator
- Replies: 4
- Views: 383
Re: Sort order indicator
After more work, it looks like I did far more than is needed under Windows. All my sort routines are really not needed and sorting the list works like a charm without them, but ... Much of the purpose of the code was to allow me to keep the list sorted according to the same criteria (up or down) it ...
- Wed Mar 10, 2021 8:56 pm
- Forum: C++ Development
- Topic: Sort order indicator
- Replies: 4
- Views: 383
Re: Sort order indicator
After looking at the sample code, I noticed that if anything, I was doing too much. One, seemingly critical, thing I was NOT doing, was to Skip() the column click handler. Other than that, setting the two columns as 'sortable' was all that was needed. Trying to keep track of the 'sortable' state and...
- Wed Mar 10, 2021 7:34 pm
- Forum: C++ Development
- Topic: Sort order indicator
- Replies: 4
- Views: 383
Re: Sort order indicator
Thank you. I had seen the single column sort (for col 1) when I first looked at the sample and did not realize that the 'attributes' column was also sortable.
Now that I have something as a reference, I will have another go at it.
Now that I have something as a reference, I will have another go at it.
- Wed Mar 10, 2021 6:47 pm
- Forum: C++ Development
- Topic: Sort order indicator
- Replies: 4
- Views: 383
Sort order indicator
In a m_dvListCtrlJobs, I have 2 columns that I wish to sort. The sorting works well and the only nuisance is the the sort direction indicator does not get removed from the column not being sorted. Before I click on any column header, neither column show the indicator, as expected. Once I click on on...
- Sun Nov 29, 2020 10:48 pm
- Forum: C++ Development
- Topic: Redirecting UTF-8 strings to wxTextCtrl
- Replies: 11
- Views: 342
Re: Redirecting UTF-8 strings to wxTextCtrl
No, the original sample code is/was a console app. My output needs to go to a wxWidgets GUI. Being able to use redirection to a text control was the easy way out as long as everything was plain ASCII. When UTF-8 strings showed up and became important, that option failed badly. Finding a way to make ...
- Sun Nov 29, 2020 9:49 pm
- Forum: C++ Development
- Topic: Redirecting UTF-8 strings to wxTextCtrl
- Replies: 11
- Views: 342
Re: Redirecting UTF-8 strings to wxTextCtrl
Yes, there seems to be a lot more involved with this conversion than it seemed at first. I will have to investigate the links you provided and hopefully will be able to come up with something useful. As always, it will likely take several tries and a fair bit of time. For now, I think this will be p...
- Sun Nov 29, 2020 9:15 pm
- Forum: C++ Development
- Topic: Redirecting UTF-8 strings to wxTextCtrl
- Replies: 11
- Views: 342
Re: Redirecting UTF-8 strings to wxTextCtrl
but implementing the proposed class wxStreamToTextRedirectorUnicode does not seem to do the job for me. Did you try to add converting that was mentioned in this message? That is the very same post I had referred to in my first post - and no, it did not. In fact, class wxStreamToTextRedirectorUnicod...
- Sun Nov 29, 2020 6:41 pm
- Forum: C++ Development
- Topic: Redirecting UTF-8 strings to wxTextCtrl
- Replies: 11
- Views: 342
Re: Redirecting UTF-8 strings to wxTextCtrl
What is wrong with calling FromUTF8()? Nothing, but it requires a rewrite. Some members of 'md' can be strings, numeric or boolean data and hence would need logic to deal with each type differently. With the code as is, the stream handles all of those differences, when it goes to cout. A rewrite mi...
- Sun Nov 29, 2020 5:41 pm
- Forum: C++ Development
- Topic: Redirecting UTF-8 strings to wxTextCtrl
- Replies: 11
- Views: 342
Re: Redirecting UTF-8 strings to wxTextCtrl
Hi, What code do you use to send the string to the wxTextCtrl? The original code I was using, and which works well for plain ASCII strings, is: // has problems with UTF-8 strings ostream stream(m_textCtrlXmpDump ); for (const auto& md : xmpData) { //stream << 123.456 << " some text\n"; // test stri...
- Sun Nov 29, 2020 2:05 am
- Forum: C++ Development
- Topic: Redirecting UTF-8 strings to wxTextCtrl
- Replies: 11
- Views: 342
Redirecting UTF-8 strings to wxTextCtrl
In one of my projects I need to display UTF-8 string. Some of the sample code I have available uses std::cout to do this to a console app. cout << std::setfill(' ') << std::left << std::setw(44) << md.key() << " " << std::setw(9) << std::setfill(' ') << std::left << md.typeName() << " " << std::dec ...
- Tue Aug 18, 2020 3:44 pm
- Forum: C++ Development
- Topic: Showing selection in wxTextCtrl
- Replies: 6
- Views: 363
Re: Showing selection in wxTextCtrl
That fixed it, thank you
I had experimented with this flag, but, after checking again now, I had set it for the wrong text control.
I had experimented with this flag, but, after checking again now, I had set it for the wrong text control.
- Mon Aug 17, 2020 8:49 pm
- Forum: C++ Development
- Topic: Showing selection in wxTextCtrl
- Replies: 6
- Views: 363
Re: Showing selection in wxTextCtrl
It gets curioser all the time. When I strip all code following the SetSelection(), I can execute the search by clicking on the 'search 'button' - the magnifying glass - the control's text is positioned to make the line with the search string visible at the top of the window. If I then right-click, I...
- Mon Aug 17, 2020 6:00 pm
- Forum: C++ Development
- Topic: Showing selection in wxTextCtrl
- Replies: 6
- Views: 363
Re: Showing selection in wxTextCtrl
I was already calling Refresh() and tried a few more calls in the calling function, but it does not help.
- Mon Aug 17, 2020 4:11 pm
- Forum: C++ Development
- Topic: Showing selection in wxTextCtrl
- Replies: 6
- Views: 363
Showing selection in wxTextCtrl
In my current project I want to implement a 'find' feature within one of several a wxTextCtrl with the following code. FWIW, the code makes sure the appropriate window is selected. void MyFrame::DoFind( const wxString arc_ws2Find, wxTextCtrl* a_pTextCtrl ) { long lStart; long lFoundPos; long Last; b...
- Tue Jun 23, 2020 3:53 pm
- Forum: Compiler / Linking / IDE Related
- Topic: debugrpt sample problems
- Replies: 16
- Views: 1468
Re: debugrpt sample problems
That is exactly what happened, initially, but after some fiddling with the data supplied to MFCDemo, I finally got the server to accept the data :D Thank you for sticking with this issue; it gave me enough information to keep trying with the original MFCDemo and now I can take on my 'real' applicati...