I'm using wxMSW (2.8.7).
Regards
Michael
Search found 38 matches
- Tue Jan 22, 2008 1:54 pm
- Forum: C++ Development
- Topic: Changing the text color of a wxRadioButton
- Replies: 13
- Views: 4103
- Fri Jan 18, 2008 3:36 pm
- Forum: C++ Development
- Topic: Changing the text color of a wxRadioButton
- Replies: 13
- Views: 4103
- Tue Jan 15, 2008 12:34 pm
- Forum: C++ Development
- Topic: Changing the text color of a wxRadioButton
- Replies: 13
- Views: 4103
And after this you should call
Sorry, I forgot this...
Regards
Michael
Code: Select all
this->Refresh();
Regards
Michael
- Mon Jan 14, 2008 11:03 am
- Forum: C++ Development
- Topic: Changing the text color of a wxRadioButton
- Replies: 13
- Views: 4103
Use
and it will work.
Hopefully...
Regards
Michael
Code: Select all
m_pRadioButton->SetOwnForegroundColour (wxColor (255, 0, 0, 255));
Hopefully...
Regards
Michael
- Mon Dec 03, 2007 11:34 am
- Forum: The Code Dump
- Topic: wxGrid with MS Excel (copy/paste)
- Replies: 11
- Views: 27986
A late reply from me, but today I had the same problem. A keyboard handler could be implemented like the following snipplets: While creating the grid you need to connect the copy/paste function like this: my_grid = new wxGrid(my_panel, -1, wxPoint(0, 0), wxSize(300, 300)); //connect the grid to the ...
- Fri Mar 23, 2007 10:19 am
- Forum: Component Writing
- Topic: Getting Size with GetSize() fails for wxBufferedPaintDC
- Replies: 2
- Views: 1630
Re: Getting Size with GetSize() fails for wxBufferedPaintDC
this returns the region on the screen that needs to be redrawn (due to overlapping by other windows or resizing). It is not always equal to the window size. In you code: this->GetClientSize() would give the right size. You are right, that was the problem! Now it runs as expected. Thank you! :) Rega...
- Tue Mar 20, 2007 3:55 pm
- Forum: C++ Development
- Topic: Send/Generate keyboard events (tab, shift+tab and return)
- Replies: 16
- Views: 4165
- Tue Mar 20, 2007 12:18 pm
- Forum: C++ Development
- Topic: Non-event-driven loop with wx?
- Replies: 10
- Views: 2197
Hi, I think you need a timely defined behaviour for your monsters. :) Therefore wxTimer should be a suitable solution: Start the timer: wxTimer monster_game_timer; monster_game_timer.SetOwner(this, MONSTER_TIMER); monster_game_timer.Start(1000, false); //fired every 1000ms and write an event handler...
- Tue Mar 20, 2007 12:05 pm
- Forum: C++ Development
- Topic: Send/Generate keyboard events (tab, shift+tab and return)
- Replies: 16
- Views: 4165
- Sat Mar 17, 2007 8:09 pm
- Forum: C++ Development
- Topic: Send/Generate keyboard events (tab, shift+tab and return)
- Replies: 16
- Views: 4165
Connect()? It connects a function with an event handler (and type), but I have no function to connect. The function which has to be triggered by this event is implemented somewhere in a library. It's the function which gives users the possibility to control applications with their keyboard... Regard...
- Sat Mar 17, 2007 5:54 pm
- Forum: C++ Development
- Topic: Send/Generate keyboard events (tab, shift+tab and return)
- Replies: 16
- Views: 4165
- Fri Mar 16, 2007 9:19 pm
- Forum: C++ Development
- Topic: Send/Generate keyboard events (tab, shift+tab and return)
- Replies: 16
- Views: 4165
- Fri Mar 16, 2007 9:03 pm
- Forum: C++ Development
- Topic: Send/Generate keyboard events (tab, shift+tab and return)
- Replies: 16
- Views: 4165
- Fri Mar 16, 2007 7:28 pm
- Forum: C++ Development
- Topic: Send/Generate keyboard events (tab, shift+tab and return)
- Replies: 16
- Views: 4165
The architecture is as follows: main panel -> notebook -> notebook panel(s) -> GridBagSizer -> buttons/radiobuttons Normally I can move the focus from button to button with the Tab key from my keyboard. De-/Activating radiobuttons and buttons can be made with the Return key from my keyboard. When I ...
- Fri Mar 16, 2007 5:26 pm
- Forum: C++ Development
- Topic: Send/Generate keyboard events (tab, shift+tab and return)
- Replies: 16
- Views: 4165