Search found 22 matches

by weswitt
Tue Aug 11, 2020 8:48 pm
Forum: C++ Development
Topic: Client Size Wrong?
Replies: 3
Views: 100

Re: Client Size Wrong?

thanks for the reply. the strange thing is that the client size is not consistent. i just rebuilt and installed 3.1.4 on kubuntu (instead of regular ubuntu). now i'm seeing that the first frame that i create has the right client size but subsequent frames are of the smaller size. i added a call to s...
by weswitt
Tue Aug 11, 2020 5:37 pm
Forum: C++ Development
Topic: Client Size Wrong?
Replies: 3
Views: 100

Client Size Wrong?

I'm seeing something very strange. I'm running on Ubuntu 20.04. I'm creating a single wxFrame that is 800x480 in size. Inside the frame I have a single panel. I call GetClientSize on the frame and get the correct answer of 800x480. However it seems that the height of the client area is NOT 480 pixel...
by weswitt
Thu Mar 14, 2019 4:43 pm
Forum: Platform Related Issues
Topic: SIGSEGV When calling wxFrame::ShowFullScreen
Replies: 16
Views: 1602

Re: SIGSEGV When calling wxFrame::ShowFullScreen

OK, I was able to get the display sample running and repro the problem with the sample. Running the sample unchanged it works fine. You launch the sample and then choose the "full screen" menu item and the app is properly displayed full screen. However, if you change the line that says "frame->Show(...
by weswitt
Tue Mar 12, 2019 7:19 pm
Forum: Platform Related Issues
Topic: SIGSEGV When calling wxFrame::ShowFullScreen
Replies: 16
Views: 1602

Re: SIGSEGV When calling wxFrame::ShowFullScreen

Of course and I totally understand. I will repro with the sample as you suggest.
by weswitt
Tue Mar 12, 2019 3:47 pm
Forum: Platform Related Issues
Topic: SIGSEGV When calling wxFrame::ShowFullScreen
Replies: 16
Views: 1602

Re: SIGSEGV When calling wxFrame::ShowFullScreen

Thanks for the help building the sample. Builds perfectly. Hopefully tonight I can test it out.
by weswitt
Tue Mar 12, 2019 3:37 pm
Forum: Platform Related Issues
Topic: SIGSEGV When calling wxFrame::ShowFullScreen
Replies: 16
Views: 1602

Re: SIGSEGV When calling wxFrame::ShowFullScreen

GTK versions: 3.22.11-1+rpi3, 2.24.31-2

wxWidgets configure command: ../configure --enable-unicode --disable-shared

I was unable to get the sample compiled & running. Total PITA. Anyway the sample I provided is much simpler and clearly demonstrates the problem.
by weswitt
Tue Mar 12, 2019 2:09 pm
Forum: Platform Related Issues
Topic: SIGSEGV When calling wxFrame::ShowFullScreen
Replies: 16
Views: 1602

Re: SIGSEGV When calling wxFrame::ShowFullScreen

I have 2.0 & 3.0 installed

sudo apt-get install libgtk2.0-0 -y
sudo apt-get install libgtk-3-0 -y
by weswitt
Tue Mar 12, 2019 12:34 am
Forum: Platform Related Issues
Topic: SIGSEGV When calling wxFrame::ShowFullScreen
Replies: 16
Views: 1602

Re: SIGSEGV When calling wxFrame::ShowFullScreen

After more investigation I've found that the ShowFullScreen is unreliable. All of my tests were done with the sample code below -- the smallest wxWidgets app that shows an empty frame. If ShowFullScreen() is used on a Raspberry Pi with a 7" LCD touchscreen it will segfault as follows: #0 0x769fb714 ...
by weswitt
Mon Mar 11, 2019 3:32 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling Samples
Replies: 5
Views: 701

Re: Compiling Samples

Thanks that was it. I have it building now.
by weswitt
Mon Mar 11, 2019 3:01 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling Samples
Replies: 5
Views: 701

Re: Compiling Samples

I built it myself. I is correctly built and installed.
by weswitt
Mon Mar 11, 2019 2:30 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling Samples
Replies: 5
Views: 701

Compiling Samples

Sorry for the basic question, but I searched and could not find an answer. What is the procedure for building the sample apps on Linux? Trying this (which seems obvious) fails: make -f makefile.gcc if not exist gcc_mswud mkdir gcc_mswud make: -c: Command not found makefile.gcc:219: recipe for target...
by weswitt
Mon Mar 11, 2019 1:48 am
Forum: Platform Related Issues
Topic: SIGSEGV When calling wxFrame::ShowFullScreen
Replies: 16
Views: 1602

Re: SIGSEGV When calling wxFrame::ShowFullScreen

I will do that and report back. One thing I have discovered is that this ONLY repros on a Pi with a 7" touch display that connects using the Pi ribbon display cable. Running on a Pi using HDMI display it work fine. So it seems that GTK is sensitive to the display driver. Also, when I call the API I'...
by weswitt
Sun Mar 10, 2019 4:44 pm
Forum: Platform Related Issues
Topic: SIGSEGV When calling wxFrame::ShowFullScreen
Replies: 16
Views: 1602

SIGSEGV When calling wxFrame::ShowFullScreen

I'm seeing a Segmentation fault when calling wxFrame::ShowFullScreen: #0 0x76a26714 in gdk_window_set_decorations () from /usr/lib/arm-linux-gnueabihf/libgdk-x11-2.0.so.0 #1 0x0008233c in wxTopLevelWindowGTK::ShowFullScreen(bool, long) () #2 0x000966a4 in wxFrame::ShowFullScreen(bool, long) () #3 0x...
by weswitt
Thu Jan 12, 2017 5:41 pm
Forum: C++ Development
Topic: wxStaticLine width
Replies: 6
Views: 520

Re: wxStaticLine width

No I certainly don't want as 40 pixel with line in my app. I'm simply using that value as a way to see that the width is in fact changing.
by weswitt
Thu Jan 12, 2017 5:29 pm
Forum: C++ Development
Topic: wxStaticLine width
Replies: 6
Views: 520

Re: wxStaticLine width

Thanks. I tried that like this:

wxStaticLine* line = new wxStaticLine(p, wxID_ANY, wxDefaultPosition, wxSize(wxDefaultCoord, 40), wxLI_HORIZONTAL);

No effect. Am I doing this wrong?