Search found 62 matches

by Ishtar
Sun Apr 26, 2020 12:56 pm
Forum: C++ Development
Topic: wxStaticText() Size after setting font
Replies: 2
Views: 259

Re: wxStaticText() Size after setting font

It seems that my problem is associated with the following ticket. https://trac.wxwidgets.org/ticket/16088 GTK+ 3.6 introduced caching of widget styling information and this seems to be the culprit with my sizing issue. The workaround suggested on ticket 16088 (using wxEVT_SHOW) did not work for my p...
by Ishtar
Sun Apr 26, 2020 1:14 am
Forum: C++ Development
Topic: wxStaticText() Size after setting font
Replies: 2
Views: 259

wxStaticText() Size after setting font

Hello everyone, I am using wxWidgets checked out of github yesterday (version reported is 3.1.4). I've complied wxWidgets against gtk3 (gtk+-3.24.18) on Fedora 31. I am trying to get the correct width of a wxStaticText() by using GetSize(&x, &y) after setting the font with SetFont(font). Sample code...
by Ishtar
Fri Dec 27, 2019 7:12 pm
Forum: C++ Development
Topic: Subclass of wxGLCanvas and wxKeyEvent()
Replies: 2
Views: 276

Re: Subclass of wxGLCanvas and wxKeyEvent()

Thanks doublemax,

Adding event.Skip() solved the problem.

Amanda
by Ishtar
Fri Dec 27, 2019 6:50 pm
Forum: C++ Development
Topic: Subclass of wxGLCanvas and wxKeyEvent()
Replies: 2
Views: 276

Subclass of wxGLCanvas and wxKeyEvent()

HI, I have sub-classed wxGLCanvas in order to trap mouse and key events. The mouse events work as expected but I am unable to get the key press events to work. Here is an stripped down example of what I am doing: I am using wxWidgets 3.1.3 linked against GTK2. I have also tried wxWidgets 3.1.2 linke...
by Ishtar
Mon Sep 23, 2019 12:14 am
Forum: C++ Development
Topic: wxStaticText() Wrap function and line spacing
Replies: 0
Views: 1701

wxStaticText() Wrap function and line spacing

Hi All, I have a problem on some Linux distributions where wxStaticText::Wrap() does not leave enough spacing between the lines. Note, this does not happen on all Linux distributions / Desktops. A code example is as follows: wxString t1 = "A very long line of text"; wxStaticText * text1 = new wxStat...
by Ishtar
Sat Mar 30, 2019 11:44 pm
Forum: Compiler / Linking / IDE Related
Topic: macOS Eclipse 4.11.0 code lookup
Replies: 4
Views: 668

Re: macOS Eclipse 4.11.0 code lookup

For the benefit of anybody else trying to get code completion working on macOS / Eclipse. The solution is to add __WXMAC__ as a Preprocessor declaration. Doing this makes all wxWidgets classes work well.

Regards
Amanda
by Ishtar
Fri Mar 29, 2019 5:32 pm
Forum: Compiler / Linking / IDE Related
Topic: macOS Eclipse 4.11.0 code lookup
Replies: 4
Views: 668

Re: macOS Eclipse 4.11.0 code lookup

Thanks Oneeyman,

Well, I suppose I don't need it really but it does help to lookup class methods which can save a lot of time. If I don't get any help then I'll simply disable lookup. Yes, code does compile and runs as expected.

Many thanks
Amanda
by Ishtar
Thu Mar 28, 2019 9:29 pm
Forum: Compiler / Linking / IDE Related
Topic: macOS Eclipse 4.11.0 code lookup
Replies: 4
Views: 668

macOS Eclipse 4.11.0 code lookup

Hi All, I am primarily a Linux wxWidgets / C++ developer but am currently porting my application to macOS. I have compiled wxWidgets 3.1.2 on macOS High Sierra and have successfully compiled many wxWidgets samples, all of which seem to work very well. I then moved on to setting up Eclipse 4.11 on ma...
by Ishtar
Thu Jul 13, 2017 2:19 pm
Forum: C++ Development
Topic: wxThread termination
Replies: 6
Views: 1247

Re: wxThread termination

Dear ONEEYEMAN,

I absolutely agree, unfortunately, this specific manufacturer is not very forthcoming. I guess I am stuck, at least for now, with wxThread::Kill() and then clean up in the destructor instead of OnExit().

Many Thanks
Amanda
by Ishtar
Thu Jul 13, 2017 11:51 am
Forum: C++ Development
Topic: wxThread termination
Replies: 6
Views: 1247

Re: wxThread termination

But I see more design problem than wx issue. Your thread should monitor your camera and exist ::Entry once came goes offline. If it is a detached thread then it will delete itself. So wrap your camera code in TestDestroy and exist when it either evaluates to true or when camera goes offline. That w...
by Ishtar
Mon Jul 10, 2017 3:58 pm
Forum: C++ Development
Topic: wxThread termination
Replies: 6
Views: 1247

wxThread termination

Dear All, I am in the process of developing an astronomical capture application for Linux. The application supports various specialist astronomical cameras, of which require a closed-source SDK provided by the manufacturer. Each camera has a specific thread (wxTread) which contains all the code asso...
by Ishtar
Fri Jul 07, 2017 6:42 pm
Forum: Compiler / Linking / IDE Related
Topic: Reduce: wxWidgets warnings during compile (GCC 7)
Replies: 4
Views: 1214

Re: Reduce: wxWidgets warnings during compile (GCC 7)

Thanks coderrc, On further testing, I did discovered a slight problem with this approach. I use Netbeans 8.2 for all my development work but changing to "-isystem" seemed to break wxWidgets code assistance functions. However, by manually adding the relevant includes in the Netbeans code assistance d...
by Ishtar
Tue Jul 04, 2017 8:11 pm
Forum: Compiler / Linking / IDE Related
Topic: Reduce: wxWidgets warnings during compile (GCC 7)
Replies: 4
Views: 1214

Re: Reduce: wxWidgets warnings during compile (GCC 7)

Dear ONEEYEMAN, Thank you for responding. I should have been slightly more specific, I was not talking about building the wxWidgets library itself but my own application which, of course, links against wx. However, to build wx I always use something like the following: (Fedora 25, wx-3.1, gcc-7.1). ...
by Ishtar
Mon Jul 03, 2017 2:39 pm
Forum: C++ Development
Topic: wxFrame - 4000+ lines of code (A question of style)
Replies: 9
Views: 1661

Re: wxFrame - 4000+ lines of code (A question of style)

Fortunately, the vast majority of my controls are in a wxScrolledWindow so I plan on subclassing this entire control. Doing this, I should be able to farm out about 60% of my code into another class. Should work, finding the time to do this is another thing. For now, it'll have to stay a big class. :(
by Ishtar
Mon Jul 03, 2017 2:30 pm
Forum: Compiler / Linking / IDE Related
Topic: Reduce: wxWidgets warnings during compile (GCC 7)
Replies: 4
Views: 1214

Reduce: wxWidgets warnings during compile (GCC 7)

Dear All, Recently, I have wanted to step-up GCC's compiler warnings for my application but have noticed that wxWidgets is quite noisy. I have tried various ways to ignore most of the warnings from wxWidgets includes (using pragma ignore etc) but this has been somewhat cumbersome. I have therefore e...