Search found 113 matches

by barbarello
Fri Nov 07, 2008 7:51 pm
Forum: C++ Development
Topic: It is more a C++ question than a wxWidgets problem...
Replies: 5
Views: 1065

Great !

I will take much time to understand what is done but it seems to be logical...

Thanks you very much all !
by barbarello
Fri Nov 07, 2008 7:14 pm
Forum: C++ Development
Topic: It is more a C++ question than a wxWidgets problem...
Replies: 5
Views: 1065

Ok thanks for your help Here is the code: class PANRIGHT:public wxPanel { public: PANRIGHT(); PANRIGHT(wxWindow *parent); wxStaticText *Adroite; wxButton *Chgbtn; void OnClick(wxCommandEvent &event); DECLARE_EVENT_TABLE(); }; enum { ID=12 }; BEGIN_EVENT_TABLE(PANRIGHT,wxPanel) EVT_BUTTON(ID,PANRIGHT...
by barbarello
Fri Nov 07, 2008 6:42 pm
Forum: C++ Development
Topic: It is more a C++ question than a wxWidgets problem...
Replies: 5
Views: 1065

It is more a C++ question than a wxWidgets problem...

Hello

I've created a class, and inside this i declared a wxStaticText *MyST (initialized in the Ctor with MyST = new wxStaticText(..))

Is it possible to use MyST from a method of an another class ?

Code: Select all

void ANOTHERCLASS::OnChange(wxCommandEvent &event)
{
 MyST->SetLabel(wxT("New Label"));
}
by barbarello
Wed Nov 05, 2008 10:37 am
Forum: C++ Development
Topic: wxSplitterWindow
Replies: 2
Views: 760

I cannot post code for the moment because i'm not at my office.

The error is an assert error (don't remember exactly).
That's why my question was to know if my steps of creation seems to be right.....


My error is found and not depending of wxSplitterWindow code.....
by barbarello
Wed Nov 05, 2008 10:05 am
Forum: C++ Development
Topic: wxSplitterWindow
Replies: 2
Views: 760

wxSplitterWindow

Hi all, I try to hide a right window and show new right window in wxSplitterwindow control. So i have in Ctor: - wxFrame - wxPanel *PAN (the parent is the frame) - wxSplitterWindow *Splitter (parent is PAN) - wxPanel *PANLeft (parent is Splitter) - wxPanel *PANRight (parent is Splitter) - wxPanel *P...
by barbarello
Sun Sep 28, 2008 10:39 am
Forum: C++ Development
Topic: Panel and Sizer
Replies: 2
Views: 791

thanks for your help,

I will check tomorow but your explanation sound very good :)

One more thanks
by barbarello
Sat Sep 27, 2008 8:54 am
Forum: C++ Development
Topic: Panel and Sizer
Replies: 2
Views: 791

Panel and Sizer

Hello all I have a wxFrame and a wxPanel inside. I need to add an empty wxSaticBoxSizer in the wxPanel but my wxStaticBoxSizer had to fit the wxPanel and wxFrame so. WXSBS[i] = new wxStaticBoxSizer(wxVERTICAL,PAN[i],_(" Static Label")); mainsizer->Add(WXSBS[i],1,wxEXPAND,2); for (compteur=0;compteur...
by barbarello
Tue Sep 23, 2008 2:01 pm
Forum: C++ Development
Topic: wxFileConfig crash
Replies: 12
Views: 2610

Thanks you very much doublemax. I will stop to waste your time. I 've just sent the code and the txt file this afternoon on french forum. Someone test it without crash. It's very strange because i've compile it and test it on two differents computers with Win2k and WinXP and test it using lib 2.8.8 ...
by barbarello
Tue Sep 23, 2008 7:21 am
Forum: C++ Development
Topic: wxFileConfig crash
Replies: 12
Views: 2610

Thanks DoubleMax, I don't thing the problem come from the creation of the ToolBar However here is the code (the warning appear since I compile with debug). tlb=CreateToolBar(wxNO_BORDER|wxHORIZONTAL|wxTB_TEXT ,ID_TOOLBAR); wxBitmap toolBarBitmaps[3]; toolBarBitmaps[0]=wxBitmap(_("OPEN.BMP"),wxBITMAP...
by barbarello
Mon Sep 22, 2008 7:55 pm
Forum: C++ Development
Topic: wxFileConfig crash
Replies: 12
Views: 2610

Sorry for report above but i don't have debug build. I made a new compilation with 2.8.9 and a debug build. here is the backtrace: #0 005FB652 wxStringData::IsEmpty(this=0xfffffff7) (../../include/wx/string.h:226) #1 005D08A5 wxStringData::Unlock(this=0xfffffff7) (../../include/wx/string.h:243) #2 0...
by barbarello
Mon Sep 22, 2008 1:54 pm
Forum: C++ Development
Topic: wxFileConfig crash
Replies: 12
Views: 2610

The code crash when i quit the Main Frame. I 've tried to add wxConfigBase::Set(NULL)and delete in ::OnExit(). I've tried without. I rewrited a small Dialog Application using two differents wxFileConfig (deleting none pointers) and it works fine. I really not understood, but anyway, thanks for the a...
by barbarello
Mon Sep 22, 2008 12:50 pm
Forum: C++ Development
Topic: wxFileConfig crash
Replies: 12
Views: 2610

I'm not really understood what you say (sorry for my bad comprehension).
Does it mean it's a better way to declare:

wxFileConfig *pointer = new wxFileConfig(wxEmptyString,wxEmptyString,ini)

?
by barbarello
Sun Sep 21, 2008 10:12 pm
Forum: C++ Development
Topic: wxFileConfig crash
Replies: 12
Views: 2610

in the begining of the function i create this to read entries: fcg = new wxFileConfig(wxEmptyString,wxEmptyString,pathname); wxConfigBase::Set(fcg); fcg->SetPath(_("/")); bool bCont = fcg->GetFirstGroup(get_group_name, dummy); while (bCont) { tabl_group.Add(get_group_name); bCont = fcg->GetNextGroup...
by barbarello
Sun Sep 21, 2008 9:57 pm
Forum: C++ Development
Topic: wxFileConfig crash
Replies: 12
Views: 2610

wxFileConfig crash

Hello All, I'm using wxFileConfig to read a txt file to copy/rebuilt it like an ini file. Then i tried to make new wxFileConfig to access to ini file but at the end of the function my application crash. I've tried to delete the first wxFileConfig before create the second object but it's the same res...
by barbarello
Fri Apr 20, 2007 8:49 pm
Forum: Compiler / Linking / IDE Related
Topic: undefined reference to `wxBitmapComboBoxNameStr'
Replies: 1
Views: 705

undefined reference to `wxBitmapComboBoxNameStr'

Hi people I tried to compile files from folder SAMPLE/widgets from wxWidgets 2.8.3. This return many error like undefined reference to `wxBitmapComboBoxNameStr' ; I use template of mine which work fine for others projets, so i thought some lib missed in the linker - tried many without success.... Wh...