Search found 58 matches

by Parduz
Fri Nov 15, 2019 8:39 am
Forum: C++ Development
Topic: Problems with wxScrolledWindow with wxWidgets 3.1.2
Replies: 5
Views: 121

Re: Problems with wxScrolledWindow with wxWidgets 3.1.2

You did say that you are working with both 3.0.4 and 3.1.2. Well, i upgraded from 3.0.4 to 3.1.2 and noticed the old code did'nt have that problem. So, my question was more to the extent - what else did you upgrade besides wxWidgets? Nothing else. I have both wxWidgets versions compiled on a Debian...
by Parduz
Thu Nov 14, 2019 11:06 am
Forum: C++ Development
Topic: Problems with wxScrolledWindow with wxWidgets 3.1.2
Replies: 5
Views: 121

Re: Problems with wxScrolledWindow with wxWidgets 3.1.2

3.1.3 ? The differences i see are between 3.0.4 and 3.1.2... i don't understand. I'll build a compilable file, ok. Did you also update the system libraries? (GTK+ in particular)? I'm a linux noob, so i'm trying to answer you... hope i get it. This is what the command dpkg -l | grep libgtk returns: ...
by Parduz
Wed Nov 13, 2019 4:57 pm
Forum: C++ Development
Topic: Problems with wxScrolledWindow with wxWidgets 3.1.2
Replies: 5
Views: 121

Problems with wxScrolledWindow with wxWidgets 3.1.2

This is how i create a "file browser", listing all the files by adding a button for each in a wxScrolledWindow: wxStaticBoxSizer* szrFileBrowserAll; size_t FileCount; do { // Posso aggiornare il browser Freeze(); // Cancello la roba pre-esistente if (m_ScrollFiles) { m_ScrollFiles->Destroy(); } m_Sc...
by Parduz
Wed Nov 13, 2019 1:58 pm
Forum: Platform Related Issues
Topic: How to react to a USB stick plugged? Or how to check if a file exists in /dev/?
Replies: 6
Views: 150

Re: How to react to a USB stick plugged? Or how to check if a file exists in /dev/?

We periodically check this and never had any problems with it: wxFindFirstFile("/dev/sd??") THANKS!!! That works... i did'nt found that function. I "solved" by using wxFileName fn("/etc/sda1"); if ( fn.Exists(wxFILE_EXISTS_ANY) ) { just 'cause Exists allows that flag, but wxFindFirstFile makes it c...
by Parduz
Wed Nov 13, 2019 10:46 am
Forum: Platform Related Issues
Topic: How to react to a USB stick plugged? Or how to check if a file exists in /dev/?
Replies: 6
Views: 150

How to react to a USB stick plugged? Or how to check if a file exists in /dev/?

I'm trying to determine if and when an USB stick is plugged in a BeagleBoneBlack USB port. The stick will always be "/dev/sda1", so i thought that i could poll that file with a 1s timer (i feel this method really ... primitive? but i can't sort out anything better). But wxFileExist("/dev/sda1") alwa...
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: 256

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

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

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

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

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

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

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

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

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

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