Search found 53 matches

by Parduz
Wed Jun 12, 2019 10:57 am
Forum: Compiler / Linking / IDE Related
Topic: Why my app can't compile if wxWidgets built with disable-debug
Replies: 4
Views: 207

Re: Why my app can't compile if wxWidgets built with disable-debug

Well, i cleaned up my compiler/linker search paths, but in the end what did the trick was adding
wxDEBUG_LEVEL=0
as #define for everything compiled using the --disable-debug build.

Noticed that flag while compiling the minimal sample.

Thanks.
by Parduz
Tue Jun 11, 2019 12:28 pm
Forum: Compiler / Linking / IDE Related
Topic: Why my app can't compile if wxWidgets built with disable-debug
Replies: 4
Views: 207

Re: Why my app can't compile if wxWidgets built with disable-debug

I think you should review the link directories you set in C::B for different targets. And likely the include dirs also. Well, other than the two differents wx build directories, and the __WXDEBUG__ define, there's no difference in the two g++ calls :? g++ -Og -g -D__WXDEBUG__ -pthread -std=gnu++11 ...
by Parduz
Mon Jun 10, 2019 2:57 pm
Forum: Compiler / Linking / IDE Related
Topic: Why my app can't compile if wxWidgets built with disable-debug
Replies: 4
Views: 207

Why my app can't compile if wxWidgets built with disable-debug

I've made two different folders for wxWidgets, one with debug enabled, and one not, then i configured and make (without install) the widgets. Here the path and the configure of each one: with enabled-debug: /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/ ../configure --disable-shared --ena...
by Parduz
Thu Jun 06, 2019 10:38 am
Forum: Platform Related Issues
Topic: libwxexpat missing
Replies: 1
Views: 117

libwxexpat missing

I've built wxWidgets 3.0.4 on Debian9 using gcc 6.3 This was the configure command: ../configure --disable-shared --disable-debug --with-gtk=2 --with-libtiff=no --with-opengl=no --enable-unicode Now i'm trying to compile my app but i get a lot of error about undefined references. The first ones are ...
by Parduz
Fri May 24, 2019 3:00 pm
Forum: Compiler / Linking / IDE Related
Topic: Cross compiling from Linux PC for ARM: what am i doing wrong?
Replies: 3
Views: 253

Re: Cross compiling from Linux PC for ARM: what am i doing wrong?

Thanks to all. Found part of the solution: configure did'nt found arm-linux-gnueabihf-XXX executables and proceeded to the standard "XXX" without other advice than the log. Found that "XXX" (say "gcc") is a link to "gcc-6", which is a link to "i686-linux-gnu-gcc-6" (this also for g++,cpp, etc.); so ...
by Parduz
Wed May 22, 2019 2:15 pm
Forum: Compiler / Linking / IDE Related
Topic: Cross compiling from Linux PC for ARM: what am i doing wrong?
Replies: 3
Views: 253

Cross compiling from Linux PC for ARM: what am i doing wrong?

I'm trying to build my program from a Debian PC for a BBB, instead of compiling in ON the BBB. To do this i first tried to build the WX libraries (3.0.4), then i planned to build the samples and see if they works on the BBB. So i created another folder in the main WXWidgets one ( ~/wxWidgets/wxWidge...
by Parduz
Tue Mar 05, 2019 4:57 pm
Forum: C++ Development
Topic: How to copy ("clone", "duplicate") wxControls?
Replies: 5
Views: 194

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 Parduz
Tue Mar 05, 2019 4:20 pm
Forum: C++ Development
Topic: How to copy ("clone", "duplicate") wxControls?
Replies: 5
Views: 194

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

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, optionally setting its text. You can tell wxCrafter to duplicate it several times, the...
by Parduz
Tue Mar 05, 2019 4:17 pm
Forum: Component Writing
Topic: wxOptionButtons: how to make an "option group"?
Replies: 3
Views: 483

Re: wxOptionButtons: how to make an "option group"?

Well, some aspects are like the RadioBox, but mine are not radio buttons but graphical ones, and they have not to be in the same container (i mean: they could be on different branches in the hierarchy of a "main" container). So there's not an "itemlist", there's not a "value" of the group. They're m...
by Parduz
Tue Mar 05, 2019 3:22 pm
Forum: Component Writing
Topic: wxOptionButtons: how to make an "option group"?
Replies: 3
Views: 483

wxOptionButtons: how to make an "option group"?

I'm creating some custom buttons for my "kiosk" app. Some of them have to act like the options in an "option group", so when one is selected, all the others ones must be unselected. Also, i may want that in a group at least one option is always active. Inspired by old C++Builder6 similar controls, m...
by Parduz
Tue Mar 05, 2019 3:04 pm
Forum: C++ Development
Topic: How to copy ("clone", "duplicate") wxControls?
Replies: 5
Views: 194

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

I have to dinamically fill a panel with wxStaticText and custom buttons (derived from wxWindow), one of each for each file i found in a directory. They have to act and looks all the same with the exception of the "caption" text. "Building" them property by property when i new() them is tedious: i'd ...
by Parduz
Thu Feb 28, 2019 8:40 am
Forum: C++ Development
Topic: How to catch all clicks in an area?
Replies: 2
Views: 120

How to catch all clicks in an area?

In my "kiosk" app there's the "long-click" feature: the user touch a area for a second and only after that second i switch to some visualization/page. These "areas" are just wxPanels containing text, labels or bitmaps, the touchscreen is small, so i don't know where the user will touch, and right no...
by Parduz
Fri Feb 08, 2019 8:55 am
Forum: C++ Development
Topic: There a "wx Way" to access USB drives?
Replies: 1
Views: 139

There a "wx Way" to access USB drives?

I'm writing a simple, custom dialog for my "kiosk" app to open files from predefined location. So it will not show the path, or even let you pick another one. It is just a list of files. BUT I'd like to have a button which will be enabled only if there's a pen drive in the USB slot. Problem is: how ...
by Parduz
Thu Feb 07, 2019 5:38 pm
Forum: C++ Development
Topic: wxXML: GetNode by name like GetAttribute?
Replies: 0
Views: 516

wxXML: GetNode by name like GetAttribute?

wx 3.0.4:

There's a way to get a wxXmlNode* by node name, like the GetAttribute does?
There's a reason this is not implemented?
by Parduz
Thu Jan 31, 2019 3:34 pm
Forum: C++ Development
Topic: How to prevent a wxTextCtrl from loosing focus?
Replies: 12
Views: 359

Re: How to prevent a wxTextCtrl from loosing focus?

I'm still not 100% sure how your GUI works, i'll assume something like this: - there are several pages with text controls (any maybe other controls) - in order for a certain function to get executed, all the controls on all pages must have valid data In that case, i would solve it like this: When t...