Search found 62 matches

by SteveDowd
Wed Aug 27, 2008 3:35 pm
Forum: C++ Development
Topic: wxGrid and updating scroll bars
Replies: 5
Views: 1231

That seems to do the trick.

I want to thank you again Jim. You've been a great help over the past couple of months.
by SteveDowd
Tue Aug 26, 2008 5:55 pm
Forum: C++ Development
Topic: wxGrid and updating scroll bars
Replies: 5
Views: 1231

I used your suggestion ( MakeCellVisible() ) and it is working for the majority of my cases, or well I should say all of my cases. I just need to know how to force the entire cell to be visible. I'm running into cases where only the top sliver of the cell is visible, and I assume that since the row ...
by SteveDowd
Tue Aug 26, 2008 5:24 pm
Forum: C++ Development
Topic: wxGrid and updating scroll bars
Replies: 5
Views: 1231

Hey Jim, I'll look at what you mentioned. It looks as though it is what I may need. I can scroll with the mouse and I can use the up and down buttons. But using, say, F10 to iterate through the rows, it highlights the current row. And as it is working right now, the iteration and the highlights both...
by SteveDowd
Tue Aug 26, 2008 2:19 pm
Forum: C++ Development
Topic: wxGrid and updating scroll bars
Replies: 5
Views: 1231

wxGrid and updating scroll bars

Hey everyone, I have a wxGrid I am working with that gets filled at random with new rows. Upon user key input, the user can cycle through the rows. The problem I am running into is updating the scroll bar position. once the selected row is beyond the bottom of the visible portion of the grid, the sc...
by SteveDowd
Fri Aug 08, 2008 6:50 pm
Forum: C++ Development
Topic: wxGrid and SplitterWindow help
Replies: 1
Views: 665

what kind of control are you looking for? you should have a member variable for the grid. In which case, the pointer(or object) you create for it will give you control over the grid. How are your values in the grid being updated? user input? from an outside file? stored variable array? at random? In...
by SteveDowd
Tue Jul 29, 2008 3:16 pm
Forum: C++ Development
Topic: Some problems with wxGrid
Replies: 3
Views: 997

did it work?
by SteveDowd
Mon Jul 28, 2008 7:39 pm
Forum: C++ Development
Topic: wxNotebook background color around tabs
Replies: 2
Views: 660

Does the SetBackgroundColour() take in a string? I think you have send it a color object. either define a wxColour variable, or send the SetBackgroundColour a predefined color pointer like *wxBLACK or some other predefined:

http://docs.wxwidgets.org/stable/wx_wxc ... l#wxcolour
by SteveDowd
Fri Jul 25, 2008 8:34 pm
Forum: C++ Development
Topic: wxString concatenation operator weirdness
Replies: 5
Views: 779

my mistake, i was thinking that they had a different format character for each individual type.
by SteveDowd
Fri Jul 25, 2008 7:09 pm
Forum: C++ Development
Topic: wxString concatenation operator weirdness
Replies: 5
Views: 779

the %d tells format that it's looking for a double/float i believe. Try changing the int definition to a double and then give format a precision of 1(one). also, you could check out this thread: http://forums.wxwidgets.org/viewtopic.php?t=2571&highlight=wxstring+format+precision is there a necessary...
by SteveDowd
Fri Jul 25, 2008 6:41 pm
Forum: C++ Development
Topic: wxString concatenation operator weirdness
Replies: 5
Views: 779

I'm not sure, but you're giving Format an INT while it's expecting a double. That might be the problem.
by SteveDowd
Fri Jul 25, 2008 6:40 pm
Forum: C++ Development
Topic: Some problems with wxGrid
Replies: 3
Views: 997

Hi, What you can do is capture a KEY_DOWN EVENT EVT_KEY_DOWN(AmsFrame::OnKeyDown) then inside the event handler do something like this: void AmsFrame::OnKeyDown(wxKeyEvent& event) { if (m_bDuress) { event.Skip(); return; } switch(event.GetKeyCode()) { case WXK_F10: // Rotate through different alarms...
by SteveDowd
Thu Jul 24, 2008 7:38 pm
Forum: C++ Development
Topic: How to let the wxTextCtrl can select all by "ctrl+a&quo
Replies: 4
Views: 1362

Check out wxKeyEvent:

http://docs.wxwidgets.org/stable/wx_wxk ... wxkeyevent

then handle the event by checking to see if event.CmdDown + "a" keyCode was pressed, then call wxTextCtrl::SetSelection(0, LastCharPos);
by SteveDowd
Thu Jul 24, 2008 3:43 pm
Forum: C++ Development
Topic: wxGridCellEditor Button?
Replies: 9
Views: 1876

No Suggestions?

couldn't get a response from any one.
by SteveDowd
Wed Jul 23, 2008 5:55 pm
Forum: C++ Development
Topic: wxGridCellEditor Button?
Replies: 9
Views: 1876

I don't get any results. As I said earlier, I'm delving into some stuff I haven't used before. I don't know that I'm setting it up correctly, I don't know what is specifically needed, I don't know how to properly implement it, I don't know what is/is supposed to be happening behind the scenes. so......
by SteveDowd
Wed Jul 23, 2008 2:13 pm
Forum: C++ Development
Topic: wxGridCellEditor Button?
Replies: 9
Views: 1876

I've been going through just guessing as to how i should be setting this up and so far i have come up with creating an editor and a corresponding renderer which are as follows: Editor: #include <wx/wx.h> #include <wx/grid.h> class GridCellButtonEditor : public wxGridCellEditor { public: GridCellButt...