Search found 79 matches

by Parduz
Thu Dec 12, 2019 10:35 am
Forum: C++ Development
Topic: Proper sizing at start problem.
Replies: 8
Views: 590

Re: Proper sizing at start problem.

First thing to try is to call SendSizeEvent() on the toplevel window: https://docs.wxwidgets.org/trunk/classwx_window.html#a237f739b21937d3e8f1bff5fa82ba4c2 It works only if i call it after the frame->show() call i then break before the SendSizeEvent() call and then let it run. Without the breakpoi...
by Parduz
Wed Dec 11, 2019 2:18 pm
Forum: C++ Development
Topic: Proper sizing at start problem.
Replies: 8
Views: 590

Proper sizing at start problem.

Using wxWidgets 3.1.2 in a debian environment, this is how my app opens: WxResizeProblem1.png The top-right label is out of the bounds, and also the central panel seems not resized.. ...as this is how it appears after i resize the window (using the mouse) by one pixel WxResizeProblem2.png and now ev...
by Parduz
Fri Nov 29, 2019 11:03 am
Forum: C++ Development
Topic: Problems with wxScrolledWindow with wxWidgets 3.1.2
Replies: 10
Views: 872

Re: Problems with wxScrolledWindow with wxWidgets 3.1.2

I see it even under Windows, but i still have no idea what causes it. Will take a deeper look when i have some more time. If you're willing to put some time into it, could you make a GIT bisect in order to find the exact code change that caused the change in behavior? I don't even understand what a...
by Parduz
Thu Nov 28, 2019 3:04 pm
Forum: C++ Development
Topic: dc.DrawEllipticArc: differences between 3.0.4 and 3.1.2
Replies: 2
Views: 285

Re: dc.DrawEllipticArc: differences between 3.0.4 and 3.1.2

So the right result is hte one from v3.1.x.

Thanks
by Parduz
Thu Nov 28, 2019 2:40 pm
Forum: C++ Development
Topic: dc.DrawEllipticArc: differences between 3.0.4 and 3.1.2
Replies: 2
Views: 285

dc.DrawEllipticArc: differences between 3.0.4 and 3.1.2

The attached cpp file should compile and produce a yellow arc on a black background, by using this code: wxBufferedPaintDC pdc(this, m_buffer); pdc.Clear(); pdc.SetBrush(*wxTRANSPARENT_BRUSH); pdc.SetPen(wxPen( LineColor, 3) ); pdc.DrawEllipticArc( Center, Radius, -60.0, -120.0 ); This is how it app...
by Parduz
Thu Nov 28, 2019 9:41 am
Forum: C++ Development
Topic: Problems with wxScrolledWindow with wxWidgets 3.1.2
Replies: 10
Views: 872

Re: Problems with wxScrolledWindow with wxWidgets 3.1.2

Ok, i've finally managed to strip everything out and produce a buildable example, which is attached. The difference is still there: compiled with wx3.0.4 works as expected wxScrollWindow304.png with 3.1.2 the last buttons is overlapping the previous. wxScrollWindow312.png I don't know if the problem...
by Parduz
Fri Nov 15, 2019 8:39 am
Forum: C++ Development
Topic: Problems with wxScrolledWindow with wxWidgets 3.1.2
Replies: 10
Views: 872

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: 10
Views: 872

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: 10
Views: 872

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

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

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

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

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

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

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