Search found 1578 matches

by catalin
Fri Sep 25, 2020 9:43 am
Forum: C++ Development
Topic: Number as text input
Replies: 1
Views: 53

Re: Number as text input

wxSpinCtrl
by catalin
Sun Sep 20, 2020 5:41 pm
Forum: C++ Development
Topic: How do I make a break line in a textctrl?
Replies: 5
Views: 104

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.
by catalin
Sun Sep 20, 2020 5:29 pm
Forum: C++ Development
Topic: How do I make a break line in a textctrl?
Replies: 5
Views: 104

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.
by catalin
Sun Sep 20, 2020 11:39 am
Forum: C++ Development
Topic: wxRichTextCtrl and XRC
Replies: 4
Views: 531

Re: wxRichTextCtrl and XRC

Notice that wxRichTextCtrl support in XRC is available in wxWidgets 2.9.5 and later only and you need to explicitly register its handler using

Code: Select all

#include <wx/xrc/xh_richtext.h>
AddHandler(new wxRichTextCtrl);
to use it.
https://docs.wxwidgets.org/trunk/overvi ... chtextctrl
by catalin
Mon Sep 14, 2020 9:04 am
Forum: General Development
Topic: licence de wxWidgets et ses obligations
Replies: 13
Views: 288

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...
by catalin
Tue Aug 18, 2020 11:53 am
Forum: C++ Development
Topic: Showing selection in wxTextCtrl
Replies: 6
Views: 124

Re: Showing selection in wxTextCtrl

Create the wxTextCtrl with wxTE_NOHIDESEL flag.
by catalin
Fri Aug 14, 2020 7:52 am
Forum: Compiler / Linking / IDE Related
Topic: Does anyone successfully working with VLD and wxWidgets?
Replies: 12
Views: 446

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.
by catalin
Wed Aug 12, 2020 11:11 am
Forum: C++ Development
Topic: what does piece of code do?
Replies: 6
Views: 243

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...
by catalin
Wed Aug 12, 2020 4:33 am
Forum: C++ Development
Topic: Escape non printable chars in XML
Replies: 9
Views: 232

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...
by catalin
Tue Aug 11, 2020 12:50 pm
Forum: C++ Development
Topic: Remove white border from panel inside wxAUINotebook page
Replies: 1
Views: 70

Re: Remove white border from panel inside wxAUINotebook page

FWIW it does look like a bug. The same happens with the latest git sources too.
by catalin
Tue Aug 11, 2020 9:33 am
Forum: C++ Development
Topic: Escape non printable chars in XML
Replies: 9
Views: 232

Re: Escape non printable chars in XML

you can see that the UTF-8 ENQ is 0x05 (the same as ASCII) and the Unicode is 0x0500. ..this time I think it's perfectly clear -- you are confusing "Unicode" with "utf-16" / "UCS-2". "Unicode" is not an encoding, while utf-8, utf-16, ucs-2 are all encodings intended to represent Unicode. Again, 0x0...
by catalin
Tue Aug 11, 2020 12:38 am
Forum: C++ Development
Topic: Escape non printable chars in XML
Replies: 9
Views: 232

Re: Escape non printable chars in XML

The UTF-8 representation of 0x0500 (unicode) is the same as UTF-8 (0x05) Uhm, no, it is not. Unicode U+0500 can be represented in utf-8 as 0xD4 0x80 (and FWIW as 0x0500 in utf-16). but with only one char. There is no such thing. You are probably confusing a misinterpretation of utf-16 0x0500 value ...
by catalin
Sun Aug 09, 2020 9:04 am
Forum: General Development
Topic: Using custom fonts in UI
Replies: 1
Views: 173

Re: Using custom fonts in UI

by catalin
Sat Aug 08, 2020 4:54 pm
Forum: Compiler / Linking / IDE Related
Topic: stuck with error
Replies: 2
Views: 258

Re: stuck with error

lupusc wrote:
Sat Aug 08, 2020 3:42 pm
"../configure --with-gtk" fails, telling me that neither GTK+-3.0 nor GTK+-2.0 nor GTK+-1.2.3 is present. This is strange because the system is working properly with the GNOME Desktop (UBUNTU 20.04)
You need the development packages for the GTK version of your choice (i.e. libgtk-3-dev).
by catalin
Fri Aug 07, 2020 3:10 am
Forum: C++ Development
Topic: Escape non printable chars in XML
Replies: 9
Views: 232

Re: Escape non printable chars in XML

Did you mean "non-printable" as in "not on the keyboard"? Because it looks like 0x0500 does have a glyph. And you probably need to escape it inside the wxString that you use to write the xml, in which case you'd be better off by finding its utf8 representation and using that, which in your case shou...