Search found 1584 matches
- Wed Feb 03, 2021 9:32 am
- Forum: C++ Development
- Topic: Bugs? Event won't Response on the Event Table
- Replies: 4
- Views: 178
Re: Bugs? Event won't Response on the Event Table
The correct event constant is wxEVT_AUINOTEBOOK_END_DRAG. The similar name, just without the leading `wx` prefix, is the macro used for handling the event. It also needs special constructs, without which it won't work. See https://docs.wxwidgets.org/trunk/overview_events.html#overview_events_eventta...
- Sat Dec 12, 2020 4:16 pm
- Forum: C++ Development
- Topic: sorting data with wxVectorSort
- Replies: 11
- Views: 468
Re: sorting data with wxVectorSort
How did you use it? Show a small code snippet.
The following did sort them in {"2", "3", "11"} order for me:
The following did sort them in {"2", "3", "11"} order for me:
Code: Select all
wxSortedArrayString sas(wxNaturalStringSortAscending);
sas.Add("2");
sas.Add("11");
sas.Add("3");
- Sat Dec 12, 2020 3:56 pm
- Forum: C++ Development
- Topic: sorting data with wxVectorSort
- Replies: 11
- Views: 468
Re: sorting data with wxVectorSort
It is most likely sorting values as strings, and it looks correct, even if not very useful when you have numbers.
For numbers, you can just convert string values to numbers and sort them.
Otherwise, if you must have them as strings, try with wxSortedArrayString and one of the sorting functions.
For numbers, you can just convert string values to numbers and sort them.
Otherwise, if you must have them as strings, try with wxSortedArrayString and one of the sorting functions.
- Sat Oct 17, 2020 4:51 am
- Forum: C++ Development
- Topic: residue problem on drawing canvas
- Replies: 8
- Views: 526
Re: residue problem on drawing canvas
When moving the mouse, draw the XOR-ed lines in the same way you draw the rectangle -- on the memory bitmap, or directly in the OnPaint() handler.. Then just call Refresh(). Painting on the screen should always be done on wxPaintDC, unless you have very particular needs for other DC, and you really ...
- Sat Oct 17, 2020 4:41 am
- Forum: General Development
- Topic: licence de wxWidgets et ses obligations
- Replies: 23
- Views: 2017
- Tue Sep 29, 2020 11:39 pm
- Forum: C++ Development
- Topic: Restrict Drawing to Image
- Replies: 2
- Views: 260
Re: Restrict Drawing to Image
See "Clipping region functions" in wxDC docs.
- Fri Sep 25, 2020 9:43 am
- Forum: C++ Development
- Topic: Number as text input
- Replies: 1
- Views: 302
Re: Number as text input
wxSpinCtrl
- Sun Sep 20, 2020 5:41 pm
- Forum: C++ Development
- Topic: How do I make a break line in a textctrl?
- Replies: 5
- Views: 397
Re: How do I make a break line in a textctrl?
One of the parameters of the constructor is style. wxTE_MULTILINE is one of the possible styles.
- Sun Sep 20, 2020 5:29 pm
- Forum: C++ Development
- Topic: How do I make a break line in a textctrl?
- Replies: 5
- Views: 397
Re: How do I make a break line in a textctrl?
First of all, are you using wxTextCtrl or something else?
For the wx component, did you create it as a multi-line control? It has AppendText(), and operator<<(), so you should really be fine with it.
For the wx component, did you create it as a multi-line control? It has AppendText(), and operator<<(), so you should really be fine with it.
- Sun Sep 20, 2020 11:39 am
- Forum: C++ Development
- Topic: wxRichTextCtrl and XRC
- Replies: 4
- Views: 775
Re: wxRichTextCtrl and XRC
https://docs.wxwidgets.org/trunk/overvi ... chtextctrlNotice that wxRichTextCtrl support in XRC is available in wxWidgets 2.9.5 and later only and you need to explicitly register its handler usingto use it.Code: Select all
#include <wx/xrc/xh_richtext.h> AddHandler(new wxRichTextCtrl);
- Mon Sep 14, 2020 9:04 am
- Forum: General Development
- Topic: licence de wxWidgets et ses obligations
- Replies: 23
- Views: 2017
Re: licence de wxWidgets et ses obligations
Hi Kiba, [You probably won't find many users around here that will answer you in French] You are allowed to create your closed source app with private license, or commercial license, or any other kind, and there is nothing to pay for using wxWidgets. You don't set a type of license in wxAboutDialogI...
- Tue Aug 18, 2020 11:53 am
- Forum: C++ Development
- Topic: Showing selection in wxTextCtrl
- Replies: 6
- Views: 353
Re: Showing selection in wxTextCtrl
Create the wxTextCtrl with wxTE_NOHIDESEL flag.
- Fri Aug 14, 2020 7:52 am
- Forum: Compiler / Linking / IDE Related
- Topic: Does anyone successfully working with VLD and wxWidgets?
- Replies: 12
- Views: 806
Re: Does anyone successfully working with VLD and wxWidgets?
Run your app outside VS and it should tell you which dll-s it cannot find.
- Wed Aug 12, 2020 11:11 am
- Forum: C++ Development
- Topic: what does piece of code do?
- Replies: 6
- Views: 444
Re: what does piece of code do?
GetValue() returns a wxString, which is not [necessarily] a std::string, so some mechanism might be needed for conversion, and using mb_str() is one of them. mb_str() returns wxCharBuffer, which is convertible to char*. If conversion works for you without the call to mb_str(), you might be using wxW...
- Wed Aug 12, 2020 4:33 am
- Forum: C++ Development
- Topic: Escape non printable chars in XML
- Replies: 9
- Views: 675
Re: Escape non printable chars in XML
let's assume I'm confusing the "Unicode" with "utf-16" / "UCS-2". What does this have to do with the title of my post? It was very misleading, including the mix-up with utf-8 representation. How do I escape characters like 0x0500 and 0x0c00 (and some others I have here)? You surely meant 0x000c, bu...