Search found 3742 matches

by DavidHart
Tue Mar 05, 2019 4:47 pm
Forum: C++ Development
Topic: How to copy ("clone", "duplicate") wxControls?
Replies: 5
Views: 72

Re: How to copy ("clone", "duplicate") wxControls?

My apologies: I didn't read your question carefully enough. There's a (safe, advisable) way to copy (or clone, or duplicate) an existing wxSomething? wxGenericDirCtrl displays the contents of a dir dynamically. However it doesn't use any sort of custom button. Alternatively you could use wxListCtrl ...
by DavidHart
Tue Mar 05, 2019 3:33 pm
Forum: C++ Development
Topic: How to copy ("clone", "duplicate") wxControls?
Replies: 5
Views: 72

Re: How to copy ("clone", "duplicate") wxControls?

Hi, It sounds as if you're trying to reinvent the wheel ;) . Just use a form-designer. I use wxCrafter (and I'm pleased to say it has just been open-sourced) which is part of the CodeLite IDE; I'd expect other form-designers will do the same sort of thing though. In it, you'd create a wxStaticText, ...
by DavidHart
Tue Mar 05, 2019 10:09 am
Forum: C++ Development
Topic: wxTextCtrl behavior has changed.
Replies: 27
Views: 635

Re: wxTextCtrl behavior has changed.

so I'll probably query the env to see what's set and attempt to restore on exit.
No need. The effect of both SetEnv() and UnsetEnv() is local to the running program, not system-wide. They don't change the 'real' environment, not even that of the calling terminal. So other programs won't be affected.
by DavidHart
Mon Mar 04, 2019 10:52 am
Forum: C++ Development
Topic: wxTextCtrl behavior has changed.
Replies: 27
Views: 635

Re: wxTextCtrl behavior has changed.

Can anyone recommend a way to globally fix the problem for all users Unfortunately, for some weird reason, my stretch vbox text sample has stopped failing, even after setting GTK_IM_MODULE=xim. So I can't try this here, but: I suspect you can do that by changing the program's environment as the pro...
by DavidHart
Sun Mar 03, 2019 10:32 am
Forum: C++ Development
Topic: wxTextCtrl behavior has changed.
Replies: 27
Views: 635

Re: wxTextCtrl behavior has changed.

This bug report could definitely be related but I did not grasp the fix. First, in the terminal in which you run the sample, do: ~> printenv | grep IM For me, there is no output. What happens for you? I expect you will see something like: ~> GTK_IM_MODULE=foo If you don't have any output, maybe tha...
by DavidHart
Sat Mar 02, 2019 10:40 pm
Forum: C++ Development
Topic: wxTextCtrl behavior has changed.
Replies: 27
Views: 635

Re: wxTextCtrl behavior has changed.

Unless you went out of your way to create a wxX11 or wxQT build, it will still be wxGTK.

You can be sure by running a wx program (in this case, 'text') and doing Ctl-Alt-Middleclick inside it. The resulting dialog will very likely mention GTK.
by DavidHart
Sat Mar 02, 2019 8:09 pm
Forum: C++ Development
Topic: wxTextCtrl behavior has changed.
Replies: 27
Views: 635

Re: wxTextCtrl behavior has changed.

I'm using KDE, though I'd not expect the DE to be relevant. One thing that might affect it though is your locale etc: see this bug-report.

Does that apply to you?
by DavidHart
Sat Mar 02, 2019 7:25 pm
Forum: C++ Development
Topic: wxTextCtrl behavior has changed.
Replies: 27
Views: 635

Re: wxTextCtrl behavior has changed.

Hi, 2.8 sample works as expected while the 3.x does not. What happens is when an edit key is press, the dialog containing the control loses focus. That's strange. I just tested the 'text' sample in a debian stretch vbox guest and couldn't make it fail. I'm using wx3.1.2. Which wx version failed for ...
by DavidHart
Thu Feb 21, 2019 7:19 pm
Forum: C++ Development
Topic: Short Question about customer Dialogs. How to get Dialog display
Replies: 3
Views: 62

Re: Short Question about customer Dialogs. How to get Dialog display

Hi,

A more general answer to this sort of question is: "Look at how the wx samples do it".

The samples come with the wx source-code, and should be the second place you look when you have a problem; the first place of course is the documentation.

Regards,

David
by DavidHart
Mon Feb 18, 2019 7:24 pm
Forum: Platform Related Issues
Topic: find-wx-requires command
Replies: 1
Views: 71

Re: find-wx-requires command

Hi, AFAICT (and google seems to agree) find-wx-requires was a script called by e.g. the openSUSE wxWidgets.spec that was used during their packaging process to create a wxWidgets rpm. It's nothing to do with wxWidgets itself. What were you doing in wx2.8 that made you use the script? Are you sure yo...
by DavidHart
Mon Feb 18, 2019 11:41 am
Forum: Compiler / Linking / IDE Related
Topic: error: ‘wxWebViewEvent’ has not been declared
Replies: 14
Views: 251

Re: error: ‘wxWebViewEvent’ has not been declared

I don't know what's going wrong then. If you attach here, or pastebin somewhere, code that should build but fails, I'm happy to test it here. So, either: 1) attach all of your application. Or: 2) remove most of it, leaving just the bit that fails and enough of the rest to make it build if you commen...
by DavidHart
Mon Feb 18, 2019 10:13 am
Forum: Compiler / Linking / IDE Related
Topic: error: ‘wxWebViewEvent’ has not been declared
Replies: 14
Views: 251

Re: error: ‘wxWebViewEvent’ has not been declared

(I again edited your post to add 'Code' tags around the build output. See how much easier it is to read your post now. The 'Code' button is next to the Quote button, just above where you start typing.) All that looks correct. Apparently the problem file is xpopupdialog.h. Please check that there rea...
by DavidHart
Mon Feb 18, 2019 7:52 am
Forum: Compiler / Linking / IDE Related
Topic: error: ‘wxWebViewEvent’ has not been declared
Replies: 14
Views: 251

Re: error: ‘wxWebViewEvent’ has not been declared

(I edited your last post to add 'Code' tags around the build output.) Oh, that's not much help. I had hoped that the first line would show something starting with e.g. 'g++ -g ...' i didn't get your question You might have typed something wrong in the C::B Compiler Settings. For example a single-quo...
by DavidHart
Sat Feb 16, 2019 7:51 am
Forum: Compiler / Linking / IDE Related
Topic: error: ‘wxWebViewEvent’ has not been declared
Replies: 14
Views: 251

Re: error: ‘wxWebViewEvent’ has not been declared

That output looks right. And the C::B setup guide looks right too (of course). Just to be sure, could you copy and paste here your current compiler setting, in case there's a typo there (e.g. ' instead of `). Also, please paste the build output that C::B (presumably) displays to you when you try to ...
by DavidHart
Fri Feb 15, 2019 2:21 pm
Forum: Compiler / Linking / IDE Related
Topic: error: ‘wxWebViewEvent’ has not been declared
Replies: 14
Views: 251

Re: error: ‘wxWebViewEvent’ has not been declared

Please use the 'Quote' button when you're quoting from a previous post; it makes it much easier for people to understand what's going on as the result looks like: above till 'make' i finished and it didn't shows any error.. Did you then run the sample? Successfully? (my code they have already given ...