Search found 2259 matches

by evstevemd
Sun Sep 29, 2019 3:42 pm
Forum: C++ Development
Topic: Background thread for listening to database
Replies: 4
Views: 123

Re: Background thread for listening to database

I suggest you go for wxThread. It works just fine. For your requirement you can use Joinable wxThread.
But std::thread, boost.thread or POCO thread will work just fine in case you already have experience with one of them. But if you are starting with MT, I suggest you go for wxThread
by evstevemd
Sun Sep 22, 2019 5:36 pm
Forum: C++ Development
Topic: wxHyperlink inside a wxDataViewCtrl
Replies: 5
Views: 65

Re: wxHyperlink inside a wxDataViewCtrl

pbneves wrote:
Sun Sep 22, 2019 5:31 pm
Thank you evstevemd,

I've been struggling with that :)
Can you point a good resource/example for learning how to use the wxDataViewCustomRenderer class?
Thanks,
Here we go: https://docs.wxwidgets.org/3.0/classwx_ ... derer.html
by evstevemd
Sun Sep 22, 2019 4:56 pm
Forum: C++ Development
Topic: wxHyperlink inside a wxDataViewCtrl
Replies: 5
Views: 65

Re: wxHyperlink inside a wxDataViewCtrl

A number of standard renderers for rendering text, dates, images, toggle, a progress bar etc. are provided. Additionally, the user can write custom renderers deriving from wxDataViewCustomRenderer for displaying anything. https://docs.wxwidgets.org/3.0/classwx_data_view_ctrl.html See also: https://...
by evstevemd
Sun Sep 22, 2019 9:11 am
Forum: C++ Development
Topic: Adding <style> highlighting in wxSTC HTML Lexer
Replies: 0
Views: 36

Adding <style> highlighting in wxSTC HTML Lexer

So am writing my editor and want to support inline CSS (that is <style></style> tag). Googling out there I found the HTML Lexer does not support that out of the box. Now I'm looking for a way to do custom highlight when <style> is found but am yet to find anything useful. I found this Wiki article b...
by evstevemd
Fri Sep 20, 2019 3:32 pm
Forum: C++ Development
Topic: Change wxDataViewVirtualListModel size
Replies: 3
Views: 66

Re: Change wxDataViewVirtualListModel size

Did you try calling Reset when the data have changed with current size?
https://docs.wxwidgets.org/trunk/classw ... 8fc3ef0d86

Note that if you just appended or deleted data use the corresponding methods. If you changed a lot then use reset!
by evstevemd
Thu Sep 19, 2019 2:24 pm
Forum: C++ Development
Topic: wxAuiNotebook + wxPropertyGrid - columns not arranged
Replies: 15
Views: 605

Re: wxAuiNotebook + wxPropertyGrid - columns not arranged

Screen Shot 2019-09-19 at 5.20.20 PM.png
Screen Shot 2019-09-19 at 5.20.20 PM.png (38.58 KiB) Viewed 61 times
by evstevemd
Thu Sep 19, 2019 2:24 pm
Forum: C++ Development
Topic: wxAuiNotebook + wxPropertyGrid - columns not arranged
Replies: 15
Views: 605

Re: wxAuiNotebook + wxPropertyGrid - columns not arranged

Just for Completeness here is the PB Code in Mac with master branch (not the latest of course)
Screen Shot 2019-09-19 at 5.20.06 PM.png
Screen Shot 2019-09-19 at 5.20.06 PM.png (38.46 KiB) Viewed 166 times
Screen Shot 2019-09-19 at 5.19.25 PM.png
Screen Shot 2019-09-19 at 5.19.25 PM.png (44.44 KiB) Viewed 166 times
Screen Shot 2019-09-19 at 5.19.41 PM.png
Screen Shot 2019-09-19 at 5.19.41 PM.png (47.09 KiB) Viewed 166 times
by evstevemd
Tue Sep 17, 2019 11:40 am
Forum: C++ Development
Topic: wxAuiNotebook + wxPropertyGrid - columns not arranged
Replies: 15
Views: 605

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

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

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

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

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

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

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

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?