Search found 201 matches

by cg
Sun Apr 10, 2005 10:14 pm
Forum: C++ Development
Topic: Unable to get key events in a dialog
Replies: 0
Views: 434

Unable to get key events in a dialog

I'm doing a simple test, I have an empty wxDialog with one event:

EVT_KEY_UP( FormGetKey::OnKey)

This works fine on windows, but does not work on linux. Is there anything I'm missing here? I tried this using gtk1/gtk2 2.5.2 on RH 8.

Thanks

CG
by cg
Tue Mar 29, 2005 5:39 pm
Forum: Announcements and Discoveries
Topic: Announcing Zephyr Automated Test Runner
Replies: 0
Views: 641

Announcing Zephyr Automated Test Runner

Zephyr Automated Test Runner v1.0.0 Zephyr is an automated functional and regression testing tool. It will test any application, written in any language, that has a GUI interface. Zephyr takes the place of a user: Pointing, clicking and entering text. Demo movie and download available at: http://ww...
by cg
Mon Mar 21, 2005 3:08 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets 2.5.4 and C++BuilderX personal
Replies: 1
Views: 692

Sounds like you built the library in wxdebug mode but are not building the project in wxdebug mode. Try adding __WXDEBUG__ to your defines.

HTH

CG
by cg
Fri Mar 18, 2005 4:29 pm
Forum: C++ Development
Topic: wxGrid + wxDialog + ENTER key
Replies: 4
Views: 1258

You really don't need all that. Sorry for not posting all the code. What I meant to say was I put the code in the Dialogs OnOk() method. This does not require you to create a new derived grid: void MyDialog::OnOk(wxCommandEvent &event) { if( m_grdDbg->IsCellEditControlEnabled() ) { int row = m_grdDb...
by cg
Thu Mar 17, 2005 3:33 pm
Forum: C++ Development
Topic: wxGrid + wxDialog + ENTER key
Replies: 4
Views: 1258

I added this to the OnOk() function:

Code: Select all

    if( m_grdDbg->IsCellEditControlEnabled() )
    {
        int row = m_grdDbg->GetCursorRow();
        int col = m_grdDbg->GetCursorColumn();
        m_grdDbg->SetGridCursor( row, col );
    }
HTH

Chris
by cg
Wed Mar 16, 2005 3:32 pm
Forum: C++ Development
Topic: Refresh doesnt work.........
Replies: 2
Views: 824

I have had the same problem. I find that wxFrame->SendSizeEvent() works consistently on all platforms for me.

HTH

CG
by cg
Fri Mar 11, 2005 3:04 pm
Forum: Compiler / Linking / IDE Related
Topic: IDE for linux
Replies: 3
Views: 1053

by cg
Wed Feb 23, 2005 2:49 am
Forum: Platform Related Issues
Topic: wxAccelerator on GTK/GTK2 not working
Replies: 6
Views: 1582

wxAccelerator on GTK/GTK2 not working

I am looking at the accelerator class so I can add custom key configs to Chinook. I have the following constructor in a samle app: FormMain::FormMain(const wxString& title, const wxPoint& pos, const wxSize& size) : wxFrame((wxFrame *)NULL, -1, title, pos, size) { SetIcon(wxICON(sample)); CreateStatu...
by cg
Tue Feb 15, 2005 4:08 am
Forum: Compiler / Linking / IDE Related
Topic: link errors in compiling a wx dll
Replies: 3
Views: 2863

You need to make sure that you change the include path to point to the setup.h file in the shared lib directory.

HTH

Chris
by cg
Tue Feb 15, 2005 4:05 am
Forum: C++ Development
Topic: my app can't find a shared library
Replies: 1
Views: 591

You are clearly building against the shared library on linux. You need to get your hands on the static library for linux. You will probably need to build this yourself since a lot of linux libraries seem to default to shared builds. You will need to look at the configure step to see what flag they u...
by cg
Fri Feb 04, 2005 8:38 pm
Forum: C++ Development
Topic: Scrolling wxListView
Replies: 2
Views: 769

I haven't done this with listctrl myself, but since its derived from wxWindow you should be able to use wxWindow::SetScrollPos(). Check out the details in the docs:

http://www.degarrah.com/docs/chinook/in ... indow.html

HTH

CG
by cg
Fri Feb 04, 2005 3:38 am
Forum: C++ Development
Topic: wxString Newbie
Replies: 3
Views: 797

wxString s = "05";
int i = wxAtoi(s);

CG
by cg
Fri Feb 04, 2005 3:37 am
Forum: C++ Development
Topic: wxString Newbie
Replies: 3
Views: 797

wxString s = "05";
s.Replace("05","5");

:D

CG
by cg
Tue Feb 01, 2005 2:15 am
Forum: C++ Development
Topic: Compiler cannot find type
Replies: 6
Views: 1239

Is:

#include <wx/statbmp.h>

in the source or header? If its not in the header, put it there and see if that corrects your problem.

HTH

Chris
by cg
Sun Jan 30, 2005 4:05 am
Forum: C++ Development
Topic: Problem when wxTextCtrl
Replies: 9
Views: 1539

try wxTE_MULTILINE

HTH

CG