Search found 2252 matches

by evstevemd
Tue Sep 17, 2019 11:40 am
Forum: C++ Development
Topic: wxAuiNotebook + wxPropertyGrid - columns not arranged
Replies: 2
Views: 30

Re: wxAuiNotebook + wxPropertyGrid - columns not arranged

what happens when you add wxPG into wxPanel and then add panel to wxAuiNB?
by evstevemd
Mon Sep 16, 2019 1:22 pm
Forum: Platform Related Issues
Topic: os x building apps for older versions
Replies: 1
Views: 48

Re: os x building apps for older versions

I think Mavericks is the default version supported by default on wxWidgets build (Am using CMake, so not sure bout other builds). So -with-mac-osx-min-version=10.9 should be OK.

About building for 10.15, it won't be possible I guess. Why not have two wxWidgets and then build two version of same app?
by evstevemd
Mon Sep 16, 2019 1:16 pm
Forum: C++ Development
Topic: button right align by AddStretchSpacer not work
Replies: 6
Views: 82

Re: button right align by AddStretchSpacer not work

As @manolo already pointed out, you have not specified ratio so it is taking the button size. Add ratio to define button distribution and EXPAND flag to make them expand and fill the available space.
by evstevemd
Mon Sep 16, 2019 9:29 am
Forum: C++ Development
Topic: wxExecute and wxProcess: Dealing with Interactive commands
Replies: 9
Views: 206

Re: wxExecute and wxProcess: Dealing with Interactive commands

i'm interacting with GDB in very easy way: void command(const wxString & fs){ wxTextOutputStream ls(*_process->GetOutputStream()); ls<<fs<<"\n"; } and it works. it sends string <fs>(various GDB commands) to GDB session and everything is ok. ps. may be you forgot to add '\n' in your code? You got it...
by evstevemd
Sun Sep 15, 2019 1:28 pm
Forum: C++ Development
Topic: wxExecute and wxProcess: Dealing with Interactive commands
Replies: 9
Views: 206

Re: wxExecute and wxProcess: Dealing with Interactive commands

So I took a shot at it and implemented simple case catching ? I get prompted and I write back to the stream. But the program hangs. it seems like the console app is not getting my response. command is: rm -i /file/path Response code inside wxProcess derived class void MyProcess::Ask(const wxString &...
by evstevemd
Tue Sep 10, 2019 12:32 pm
Forum: C++ Development
Topic: wxSingleInstanceChecker message
Replies: 6
Views: 155

Re: wxSingleInstanceChecker message

Using wxApp::SetAppName() helped set the title of the error window, thanks. How about the GTK message, is there a way to suppress it or avoid it? It only pops up when displaying the error window. Edit: I tried using wxMessageBox instead of wxLogError, and i'm still seeing the gtk message. Regards, ...
by evstevemd
Tue Sep 10, 2019 11:05 am
Forum: C++ Development
Topic: wxRichTextCtrl bug: style applied to whole line on enter
Replies: 12
Views: 230

Re: wxRichTextCtrl bug: style applied to whole line on enter

FWIW, you shouldn't get your hopes up to get a fix. I have a total of 4 open tickets regarding wxRTC which are several years old. The wxRTC code is quite complex and "unique", and except for the orginal author Julian Smart there is hardly anyone able to fix anything in it. But unfortunately he's no...
by evstevemd
Tue Sep 10, 2019 7:09 am
Forum: C++ Development
Topic: wxRichTextCtrl bug: style applied to whole line on enter
Replies: 12
Views: 230

Re: wxRichTextCtrl bug: style applied to whole line on enter

PeterO wrote:
Tue Sep 10, 2019 6:53 am
Windows 10, 1903
wxWidgets master branch latest-dev (as well as v3.1.2)

Noticed if I first center the text and do the same it's handled ok:
style ok.png
Does it happen with richtexteditor sample?
by evstevemd
Tue Sep 10, 2019 7:08 am
Forum: C++ Development
Topic: Get wxEvtHandler from event???
Replies: 23
Views: 299

Re: Get wxEvtHandler from event???

Hi, I'm not on a high horse. Maybe that is projection on your part. If I can't rephrase something, .... As a moderator you should be better than to impugn others' character.) In that case DM is not alone. I came to the same conclusion that you seem to be a bit proud. I think that comes from how you ...
by evstevemd
Fri Sep 06, 2019 7:15 am
Forum: C++ Development
Topic: Get wxEvtHandler from event???
Replies: 23
Views: 299

Re: Get wxEvtHandler from event???

Hi Mick,
may be explaining what you are trying to do will help get you solution. As of now am confused as to what exactly you are trying to do and where exactly you cannot make progress
by evstevemd
Wed Sep 04, 2019 7:28 pm
Forum: C++ Development
Topic: Get wxEvtHandler from event???
Replies: 23
Views: 299

Re: Get wxEvtHandler from event???

Hi, Hi, I think he wants to do something like this: void SomeGenericFunction() { } void MainFrame::MainFrame() { // creating controls and lay them out Bind( EVT_USER, &SomeGenericFunction ); } No 'this' present. Thank you. I have not tested but with bind you can achieve that I believe. void SomeGene...
by evstevemd
Wed Sep 04, 2019 7:09 pm
Forum: C++ Development
Topic: Get wxEvtHandler from event???
Replies: 23
Views: 299

Re: Get wxEvtHandler from event???

Hi, Just curious, woold like to be able to Bind an event procedure to a wxFrame for example without having to make it a method (this-call) just to get the "this" pointer, when I know that the EvtHandler itself is the wxFrame object. I can see it's possible to attach multiple handlers to the base obj...
by evstevemd
Tue Aug 20, 2019 8:47 pm
Forum: C++ Development
Topic: Restore wxStyledTextCtrl Multicursor after replace
Replies: 5
Views: 131

Re: Restore wxStyledTextCtrl Multicursor after replace

doublemax wrote:
Tue Aug 13, 2019 3:56 pm

Code: Select all

editor->SetSelection(carets[i], carets[i]);
I don't know anything about wxSTC, but shouldn't that be:

Code: Select all

editor->SetSelection(i, carets[i]);
I tried it does not work. I can't figure out what I am doing wrong
by evstevemd
Mon Aug 19, 2019 11:52 am
Forum: C++ Development
Topic: Restore wxStyledTextCtrl Multicursor after replace
Replies: 5
Views: 131

Re: Restore wxStyledTextCtrl Multicursor after replace

Kvaz1r wrote:
Thu Aug 15, 2019 7:06 am
How exactly it didn't work? Carets are not restored or they restored on wrong positions?
Only last caret was restored. Others were lost. Am yet to apply DM solution!
by evstevemd
Thu Aug 15, 2019 6:43 am
Forum: C++ Development
Topic: Restore wxStyledTextCtrl Multicursor after replace
Replies: 5
Views: 131

Re: Restore wxStyledTextCtrl Multicursor after replace

Hi,
doublemax wrote:
Tue Aug 13, 2019 3:56 pm

Code: Select all

editor->SetSelection(carets[i], carets[i]);
I don't know anything about wxSTC, but shouldn't that be:

Code: Select all

editor->SetSelection(i, carets[i]);
I have tested many combination and I don't remember anymore if that was one of those. Let me try that out and see