Search found 1585 matches

by catalin
Thu Apr 15, 2021 8:29 am
Forum: C++ Development
Topic: Non-blocking (Popup)menu possible?
Replies: 7
Views: 1115

Re: Non-blocking (Popup)menu possible?

When menus are shown (and scrollbars are active, and probably a few other cases), idle events were not sent on MSW (and this might have changed in 3.1.x versions). BTW, which version did you use? Your app is probably relying on the "next idle event". Otherwise, the menu should not be "blocking" anyt...
by catalin
Wed Feb 03, 2021 9:32 am
Forum: C++ Development
Topic: Bugs? Event won't Response on the Event Table
Replies: 4
Views: 190

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...
by catalin
Sat Dec 12, 2020 4:16 pm
Forum: C++ Development
Topic: sorting data with wxVectorSort
Replies: 11
Views: 475

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:

Code: Select all

    wxSortedArrayString sas(wxNaturalStringSortAscending);

    sas.Add("2");
    sas.Add("11");
    sas.Add("3");
by catalin
Sat Dec 12, 2020 3:56 pm
Forum: C++ Development
Topic: sorting data with wxVectorSort
Replies: 11
Views: 475

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.
by catalin
Sat Oct 17, 2020 4:51 am
Forum: C++ Development
Topic: residue problem on drawing canvas
Replies: 8
Views: 530

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 ...
by catalin
Sat Oct 17, 2020 4:41 am
Forum: General Development
Topic: licence de wxWidgets et ses obligations
Replies: 23
Views: 2070

Re: licence de wxWidgets et ses obligations

kikilabe wrote:
Fri Oct 16, 2020 6:50 pm
I have a problem understanding wxwindow sometimes i don't understand what it is and the code itself to learn the libraries I analyze the wxwindow examples but sometimes I don't understand the examples
Please open new conversations for different topics.
by catalin
Tue Sep 29, 2020 11:39 pm
Forum: C++ Development
Topic: Restrict Drawing to Image
Replies: 2
Views: 261

Re: Restrict Drawing to Image

See "Clipping region functions" in wxDC docs.
by catalin
Fri Sep 25, 2020 9:43 am
Forum: C++ Development
Topic: Number as text input
Replies: 1
Views: 309

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

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

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

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: 23
Views: 2070

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

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

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

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...