Search found 65 matches

by Marco
Tue Apr 18, 2006 9:08 am
Forum: C++ Development
Topic: [wxCalendarCtrl] GetDate failed on event ...
Replies: 4
Views: 877

Thank you benedicte and phlox81 for your responses, you initialize local variables in your constructor, they may overlay membervariables... So p_static_text is a unvalid pointer in you EventHandler. I apologize !!! Thank you very much ... But now I have another problem on line: delete p_main_box_siz...
by Marco
Tue Apr 18, 2006 8:47 am
Forum: C++ Development
Topic: [wxCalendarCtrl] GetDate failed on event ...
Replies: 4
Views: 877

[wxCalendarCtrl] GetDate failed on event ...

Hi everybody, I try to test wxCalendarCtrl with a small application but this doesn't work at all. #include "MainFrame.hpp" #include "wx/wx.h" #include "wx/calctrl.h" #include "wx/datetime.h" typedef enum wxwidgets__ids { ID_PANEL, ID_CALCTRL } wxwidgets__id_t; BEGIN_EVENT_TABLE(MainFrame, wxFrame) E...
by Marco
Mon Dec 19, 2005 10:44 am
Forum: C++ Development
Topic: Global variables
Replies: 5
Views: 1034

Hi mikecoon,

Use accessors like SetMyVariable() and GetMyVariable() in your classes ...
Global variables must be used with parsimony ...

Marco
by Marco
Wed Nov 30, 2005 9:55 am
Forum: Component Writing
Topic: wxStaticText and wxStaticBitmap in a Button
Replies: 2
Views: 1069

Hi benedicte,

Thank you for your answer. It seems to be a part of the solution !!!

Thank you.

Marco
by Marco
Wed Nov 30, 2005 8:49 am
Forum: Component Writing
Topic: wxStaticText and wxStaticBitmap in a Button
Replies: 2
Views: 1069

wxStaticText and wxStaticBitmap in a Button

Hi everybody, I want to have a wxStaticText and a wxStaticBitmap in a Button. This button will seem to have a wxRAISED_BORDER when the mouse is on it and to have a wxSUNKEN_BORDER when the mouse click on it. In all other cases, it will be as if it has an wxNO_BORDER. I try to do this with a wxPanel ...
by Marco
Tue Nov 29, 2005 1:49 pm
Forum: Component Writing
Topic: wxPanel like a wxButton
Replies: 5
Views: 1720

I have another problem with the both solutions ... When the cursor is on the wxRAISED_BORDER, I received wxEVT_ENTER_WINDOW and wxEVT_LEAVE_WINDOW events until the cursor moves. How can I prevent this ??? And another problem : When I click on the wxStaticText or the wxStaticBitmap within the PanelBu...
by Marco
Tue Nov 29, 2005 1:36 pm
Forum: Component Writing
Topic: wxPanel like a wxButton
Replies: 5
Views: 1720

Hi Jamie and upCASE, Thank you for your answers. Actually, setting the style and calling SetSize(-1,-1,-1,-1) should lead to the same result. Yes, but why can I do if I don't want to use the "default size" but my own. I must call this->SetSize (-1, -1, -1, -1, wxSIZE_USE_EXISTING); but this prevent ...
by Marco
Mon Nov 28, 2005 1:52 pm
Forum: Component Writing
Topic: wxPanel like a wxButton
Replies: 5
Views: 1720

wxPanel like a wxButton

Hi everybody, I try to create a class deriving from wxPanel. When the mouse is on this object, it has a wxRAISED_BORDER and when the mouse click on this, it has a wxSUNKEN_BORDER. In all other cases, I want it have a wxNO_BORDER. This is the class : class PanelButton : public wxPanel { public: Panel...
by Marco
Mon Nov 28, 2005 1:05 pm
Forum: C++ Development
Topic: Modify Dynamically the wxPanel flags ...
Replies: 3
Views: 771

Thank you for your answer Jorg, but this doesn't not work under Windows XP too. Why ??? Could you help me please ???

Marco
by Marco
Mon Nov 28, 2005 12:34 pm
Forum: C++ Development
Topic: Modify Dynamically the wxPanel flags ...
Replies: 3
Views: 771

Modify Dynamically the wxPanel flags ...

Hi everybody, I want to have a wxPanel which has wxSUNKEN_BORDER when the mouse click on it and wxRAISED_BORDER, when the mouse is on it. In all other cases, I want it has wxNO_BORDER. I derived a class named PanelButton from wxPanel : class PanelButton : public wxPanel { public: PanelButton (wxPane...
by Marco
Wed Nov 09, 2005 2:07 pm
Forum: C++ Development
Topic: wxComboBox->GetValue().....return ....??!!!
Replies: 4
Views: 1023

Re: wxComboBox->GetValue().....return ....??!!!

Hi,

Try this (with new):

Code: Select all

wxComboBox * toto =new wxComboBox(this,-1,wxT("TOTO"),wxDefaultPosition,wxDefaultSize,8,list,wxCB_READ_ONLY);
std::cout << "COMBO BOX:"<<toto->GetValue() << std::endl;

if(toto->GetValue() == wxT("TOTO"))
std::cout<< "OK"<<std::endl;

Marco
by Marco
Fri Oct 21, 2005 11:53 am
Forum: C++ Development
Topic: A wxPanel loaded in a wxFrame
Replies: 2
Views: 1236

phlox81 wrote:Don't you need a button Variable somewhere ?
The XRCID macro use the wxButton ID :

Code: Select all

BEGIN_EVENT_TABLE(Paneltest, wxPanel)
        EVT_BUTTON(XRCID("BUTTON"), Paneltest::OnButtonClic)
END_EVENT_TABLE()
Marco
by Marco
Fri Oct 21, 2005 10:01 am
Forum: C++ Development
Topic: A wxPanel loaded in a wxFrame
Replies: 2
Views: 1236

A wxPanel loaded in a wxFrame

Hi everybody, I want to have a class (Paneltest) which derived from wxPanel that I can load in each wxFrame (MainFrame in my test) which contain a wxPanel with northing in it. I try to do this with a simple wxButton to start with but the event associated with this wxButton doesn't occur. This is my ...
by Marco
Thu Oct 20, 2005 7:32 am
Forum: Compiler / Linking / IDE Related
Topic: Problem with .rc file
Replies: 2
Views: 914

Problem with .rc file

Hi everybody, I have always a same problem with some wxWidgets-sample-applications (and for some of mine). For example with the wizard sample ... When I click on "Run Wizard ...", I have an error frame with the following text : " Can't load bitmap 'wiztest2' from resources! Check .rc file ". However...
by Marco
Thu Oct 20, 2005 7:18 am
Forum: C++ Development
Topic: wxPanel and Events ...
Replies: 8
Views: 1997

Hi everybody,

Could you now help me to see what's wrong with my source code please ???

Thank you in advance,

Marco