Search found 9 matches
- Mon Jul 16, 2018 2:28 am
- Forum: C++ Development
- Topic: wxGrid scrollbar
- Replies: 6
- Views: 1042
Re: wxGrid scrollbar
Configure selected GTK+2, although both GTK+2 and GTK+3 are installed on the system. The system is 32-bit, 3.4.11 SMP kernel with PAE. I built wxWidgets from the source, ./configure && make && make install. Config says the following: Configured wxWidgets 3.0.4 for `i686-pc-linux-gnu'...
- Mon Jul 16, 2018 1:07 am
- Forum: C++ Development
- Topic: wxGrid scrollbar
- Replies: 6
- Views: 1042
Re: wxGrid scrollbar
Here's a stand-alone code that demonstrates the problem. It's about 250 lines, but it's mostly comments and empty lines. There is a very high chance that the actual problem is some enormous stupidity in the code itself, feel free to hurl the relevant adjectives in my direction (but with some educati...
- Sun Jul 15, 2018 11:53 pm
- Forum: C++ Development
- Topic: wxGrid scrollbar
- Replies: 6
- Views: 1042
Re: wxGrid scrollbar
The platform is Linux, the wxWidgets version is 3.0.4. I doubt that I can reproduce it with the grid sample. It was working fine when the Grid was part of the application's main panel. Then I decided to split the panel in two with a horizontal sizer and one side became a panel with its own sizer and...
- Fri Jul 13, 2018 7:52 am
- Forum: C++ Development
- Topic: wxGrid scrollbar
- Replies: 6
- Views: 1042
wxGrid scrollbar
I came across a very interesting phenomenon: I have a wxPanel. In there is a vertical wxStaticBoxSizer. The top half is not interesting, it has a bunch of checkboxes. The bottom half is a wxGrid. When the grid has enough rows to be in need of a scrollbar, the scrollbar's *place* pops up (a slightly ...
- Wed May 23, 2018 1:23 am
- Forum: C++ Development
- Topic: GridBagSizer
- Replies: 1
- Views: 580
GridBagSizer
Given a wxFrame, I'd like to populate the client area with the following: On the left, an image. Right of the image 5 buttons, in 3 rows, the first 2 rows have 2 buttons each, the third only one. In addition, since the image is relatively tall compared to buttons, I'd like the buttons spaced in the ...
- Mon May 21, 2018 12:28 am
- Forum: C++ Development
- Topic: Unvanted focus
- Replies: 8
- Views: 2169
Re: Unvanted focus
Just to add a bit to the topic: I played with the focus accept/refuse virtual functions and it seems that the function AcceptsFocusFromKeyboard() is the key. That method is actually called and if that returns false, the wxTextCtrl widget accepts focus neither by a mouse click nor by keyboard (Tab) t...
- Fri May 18, 2018 12:39 pm
- Forum: C++ Development
- Topic: Unvanted focus
- Replies: 8
- Views: 2169
Re: Unvanted focus
Well, then maybe I indeed need to look for an other control. The aim is to have a single-line text widget which for all intents and purposes behaves like static text but *looks* like a TextEntry widget which is enabled and does not have the focus and has nothing selected in it. I really don't mind w...
- Fri May 18, 2018 10:23 am
- Forum: C++ Development
- Topic: Unvanted focus
- Replies: 8
- Views: 2169
Re: Unvanted focus
Thank you, I'll work out the const qualifier's role and meaning. As per the standards, well, I have gcc, which is as far as I know is C++11 capable. The problem is the user, not the compiler. My C++ knowledge stems from "C++ Primer" by Lippman, from '98. Regarding the selection, I won't ne...
- Fri May 18, 2018 7:20 am
- Forum: C++ Development
- Topic: Unvanted focus
- Replies: 8
- Views: 2169
Unvanted focus
First, sorry if it is a totally dumb question. I have quite some C behind me but am a complete C++ newbie, picking it up primarily for wxWidgets. I'd like to have a class derived from wxTextCtrl which is set to read-only. That works fine. However, it still receives focus and the cursor blinks in the...