Search found 72 matches

by manianis
Tue Feb 20, 2007 7:06 am
Forum: Platform Related Issues
Topic: How to replace the default wxWidget Icon ?
Replies: 3
Views: 867

HeReSY wrote:Add a resource file to your project.

resourcefile.rc

Code: Select all

name ICON "icon_name.ico"
HeReSY
That's all. I'll test it... Thanks.
by manianis
Mon Feb 19, 2007 7:39 pm
Forum: Platform Related Issues
Topic: How to replace the default wxWidget Icon ?
Replies: 3
Views: 867

How to replace the default wxWidget Icon ?

I don't know how to change the default icon in wxWidgets Applications ? Help me please. I'm using MSW wxWidgets 2.8.0 Unicode Release.
by manianis
Fri Feb 16, 2007 9:07 pm
Forum: C++ Development
Topic: customized gridtable
Replies: 1
Views: 637

try deriving from wxGridTableBase class MyCustomGrid : public wxGridTableBase { public: MyCustomGrid(); ~MyCustomGrid(); wxString GetColLabelValue(int col); wxString GetRowLabelValue(int row); ... protected: wxArrayString m_colNames; }; ... wxString MyCustomGrid::GetColLabelValue(int col) { return m...
by manianis
Mon Feb 12, 2007 11:06 am
Forum: C++ Development
Topic: InitDialog() is not called by wxPanel !
Replies: 8
Views: 1172

Is EVT_INIT_DIALOG sent automatically or must I call InitDialog explicitally ?
by manianis
Tue Feb 06, 2007 9:25 pm
Forum: C++ Development
Topic: InitDialog() is not called by wxPanel !
Replies: 8
Views: 1172

Just for kicks, can you use PRINTF at all in a GUI based environment? AFAIK printf goes nowhere in a GUI. I am not sure about Linux, but I definately know it is not going anywhere in Windows. Either use a debugger and see if something is called, or try to use wxLogMessage / wxLogError to simulate a...
by manianis
Tue Feb 06, 2007 3:06 pm
Forum: C++ Development
Topic: InitDialog() is not called by wxPanel !
Replies: 8
Views: 1172

The event table in the cpp file : BEGIN_EVENT_TABLE(ClientListPanel,wxPanel) EVT_INIT_DIALOG(ClientListPanel::OnInitDialog) END_EVENT_TABLE() // ... // the InitDialog handler void ClientListPanel::OnInitDialog(wxInitDialogEvent& event) { printf("I'm called..."); } in .h file : class ClientListPanel ...
by manianis
Mon Feb 05, 2007 9:10 pm
Forum: C++ Development
Topic: InitDialog() is not called by wxPanel !
Replies: 8
Views: 1172

InitDialog() is not called by wxPanel !

I'm handling the EVT_INIT_DIALOG event to know about the the initialisation of the panel as mentionned in the documentation :

A wxInitDialogEvent is sent as a dialog or panel is being initialised.
by manianis
Thu Feb 01, 2007 4:27 pm
Forum: wxCode
Topic: How to find one value with DatabaseLayer
Replies: 9
Views: 1891

Good Job jb_coder... :)

I've another question please... Why not adding this functionnalities directly into the appropriate files using the database C API. Is that difficult or impossible for all the supported DBs ?
by manianis
Thu Feb 01, 2007 8:06 am
Forum: C++ Development
Topic: What's the meaning of wxTAB_TRAVERSAL ?
Replies: 3
Views: 836

Finally I found the problem

The Key Events propagates from the MainFrame Window to it's childs. The problem I've had is been fixed by removing the wxTAB_TRAVERSAL from the MainFrame Window and setting the wxWANTS_CHARS in the wxPanels I'm using to let the laying controls knows about the user KeyPresses.
by manianis
Wed Jan 31, 2007 12:08 pm
Forum: C++ Development
Topic: What's the meaning of wxTAB_TRAVERSAL ?
Replies: 3
Views: 836

Does it grab the RETURN Key ? I means supposing that I've

panel1 within panel2 within a frame. When I click the TAB or the RETURN key does the wxKeyEvent propagate to the frame or is grabbed ?
by manianis
Wed Jan 31, 2007 11:36 am
Forum: C++ Development
Topic: What's the meaning of wxTAB_TRAVERSAL ?
Replies: 3
Views: 836

What's the meaning of wxTAB_TRAVERSAL ?

What's the meaning of wxTAB_TRAVERSAL ?
by manianis
Wed Jan 31, 2007 10:13 am
Forum: C++ Development
Topic: How to scroll the wxListBox one page ?
Replies: 2
Views: 506

I've a wxPanel with a wxTextCtrl and a wxListBox. The user can search the values in the wxListBox by typing in the wxTextCtrl. I'm trying to make it intercat like the index search in CHM files. void ClientListPanel::OnClientTextCtrlKeyDown(wxKeyEvent& event) { int nSel = m_clientList->GetSelection()...
by manianis
Tue Jan 30, 2007 11:26 pm
Forum: C++ Development
Topic: How to scroll the wxListBox one page ?
Replies: 2
Views: 506

How to scroll the wxListBox one page ?

I'm using the MSW version of wxWidgets and the function GetScrollPageSize is not available. How to scroll manually by one page on MSW ?
by manianis
Tue Jan 30, 2007 10:01 pm
Forum: C++ Development
Topic: What's wrong with the wxEvtHandler::Connect ?
Replies: 2
Views: 639

Thank you Clyde729 It's as you said when I close the Frame the m_btnSave get destroyed twice with an invalid pointer the second time and that's generated the error. I've corrected by changing : m_btnSave->Connect(wxID_ANY, wxID_ANY, wxEVT_ENTER_WINDOW, (wxObjectEventFunction)&ClientInfoPanel::OnEnte...
by manianis
Tue Jan 30, 2007 8:03 pm
Forum: C++ Development
Topic: What's wrong with the wxEvtHandler::Connect ?
Replies: 2
Views: 639

What's wrong with the wxEvtHandler::Connect ?

I want to display the tooltip of a wxBitmapButton on a wxStaticText assuming m_btnSave is the pointer to a constrcuted wxBitmapButton and m_lblComment is the pointer to a constrcuted wxStaticText I wrote this event handler for the wxEVT_WINDOW_WINDOW : The ctor code : m_btnSave->Connect(wxID_ANY, wx...