Search found 96 matches

by MuhammadSohail
Thu Mar 13, 2008 4:50 pm
Forum: C++ Development
Topic: Not Enough memory avaialbale Error
Replies: 21
Views: 1605

Hi pholox, Thanks for your quick reply. Now i have designed new concept for my config tool application. Here is the new concept class PanelTreeId : public wxTreeItemId { enum PanelNameId { NAME_PANEL, CAN_PANEL, SERIAL_PANEL, TRIGGER_PANEL, ... }; public: ///Constructor PanelTreeId (PanelNameId name...
by MuhammadSohail
Thu Mar 13, 2008 1:42 pm
Forum: C++ Development
Topic: Not Enough memory avaialbale Error
Replies: 21
Views: 1605

Do you think should i use wxTreebook ????

panel factory is very new idea for me.
Does someone know the good tutorial on "How to create instance factory".
by MuhammadSohail
Thu Mar 13, 2008 10:46 am
Forum: C++ Development
Topic: Not Enough memory avaialbale Error
Replies: 21
Views: 1605

Hi pholox, Now at the beginning of your programm, call instance, and register all Views. Presently, i am doing the same thing , creates all panel instances and store them in the vector array. and on selecting the tree item , corresponding panel is showed. you can think about a inplace panelfactory I...
by MuhammadSohail
Thu Mar 13, 2008 9:33 am
Forum: C++ Development
Topic: Not Enough memory avaialbale Error
Replies: 21
Views: 1605

My application creates panel which corresponds to each tree item in the wxTreeCtrl. On selecting the tree item corresponding panel is displayed . see in the atttached picture. My application requires 50 trigger panels and 30 other panels Each panel contains in average 20 to 30 wxWindows. By reducing...
by MuhammadSohail
Wed Mar 12, 2008 5:04 pm
Forum: C++ Development
Topic: Not Enough memory avaialbale Error
Replies: 21
Views: 1605

Hi Jorg, I am using Visual Studio 2003 IDE and wxWidgets 2.8.0 for my configuration tool application development. This application consist of wxTreeControl on the left hand side and wxPanel on the right hand side. On selecting the tree item, corresponding wxPanel is displayed and each panel contains...
by MuhammadSohail
Tue Mar 11, 2008 5:08 pm
Forum: C++ Development
Topic: Not Enough memory avaialbale Error
Replies: 21
Views: 1605

Hi Jorg, In Working condition: application process reserved only 16 MB memory space. If i do mistake , Process should take more space. isnt it??? These reserved identifiers are all in the range between wxID_LOWEST and wxID_HIGHEST and, accordingly, the user code should avoid defining its own constan...
by MuhammadSohail
Tue Mar 11, 2008 2:58 pm
Forum: C++ Development
Topic: Not Enough memory avaialbale Error
Replies: 21
Views: 1605

Not Enough memory avaialbale Error

While opening the wxWidgets based application is crashed and log file contains the following error messages Error: Can't create window of class wxWindowClassNR (error 14: For this procedure not enough memory is available.) ... Error: Can't create window of class wxWindowClassNR (1406: child window i...
by MuhammadSohail
Thu Sep 27, 2007 11:45 am
Forum: C++ Development
Topic: wxTreeCtrl elments are disappeared on read data again
Replies: 2
Views: 271

Bug is resolved now

I was making mistake while creating the child tree item in the tree ctrl. Therefore wxTreeCtrl hide all tree items in release version.
In debug version wxTreeCtrl shows wxAssertion.
by MuhammadSohail
Fri Sep 21, 2007 12:27 pm
Forum: C++ Development
Topic: wxTreeCtrl elments are disappeared on read data again
Replies: 2
Views: 271

wxTreeCtrl tree items are disappeared ??

In the derived class MyTreeCtrl::wxTreeCtrl construtor i have defined all root items. MyTreeCtrl(wxWindow* parent,...,style):wxTreeCtrl(parent, ..., wxTR_HAS_BUTTONS|wxTR_TWIST_BUTTONS|wxTR_LINES_AT_ROOT|wxTR_HIDE_ROOT) { // Root element of the Tree control d_Root_ID = AddRoot (wxString("Root"), -1,...
by MuhammadSohail
Fri Sep 14, 2007 2:03 pm
Forum: C++ Development
Topic: wxTreeCtrl elments are disappeared on read data again
Replies: 2
Views: 271

wxTreeCtrl elments are disappeared on read data again

All root items are defined in the constructor of the the derived class MyTreeCtrl::wxTreeCtrl. MyTreeCtrl(wxWindow* parent,...,style):wxTreeCtrl(parent, ..., wxTR_HAS_BUTTONS|wxTR_TWIST_BUTTONS|wxTR_LINES_AT_ROOT|wxTR_HIDE_ROOT) { // Root element of the Tree control d_Root_ID = AddRoot (wxString("Ro...
by MuhammadSohail
Fri Jul 21, 2006 12:15 pm
Forum: C++ Development
Topic: Memory leak on closing the application
Replies: 4
Views: 818

Thanks for qick reply , wxLog is a interface not a class. how can i derive the virtual destructor.
by MuhammadSohail
Fri Jul 21, 2006 10:47 am
Forum: C++ Development
Topic: Memory leak on closing the application
Replies: 4
Views: 818

Memory leak on closing the application

Hallo everybody, I have created an global object of MyLogStream class to redirect the wxLogMessages. class MyLogSStream : public wxLog { protected: // implement sink function virtual void DoLogString(const wxChar *szString, time_t t) { cout << szString << endl; } }; MyLogSStream *logStream = new MyL...
by MuhammadSohail
Thu Jul 06, 2006 11:47 am
Forum: C++ Development
Topic: How to add grid in single line wxTextCtrl
Replies: 1
Views: 386

How to add grid in single line wxTextCtrl

Hallo, I want to display my data in grid form in wxTextCtrl. ---------------------------------------- | 34 | 55 | 88 | 99 | 99 | 11 | ---------------------------------------- Is there any option or style is available to do this? Is there any possibilitiy to hide these grid line as well. Any idea ???
by MuhammadSohail
Thu Jun 08, 2006 2:56 pm
Forum: C++ Development
Topic: Bug to change wxStaticText Foreground color
Replies: 5
Views: 1427

I did like this to solve the problem

alertHintMessage_Part1->SetBackgroundColour( this->GetBackgroundColor());
alertHintMessage_Part1->SetForegroundColour( wxColor(*wxRED));

Thanks for giving ideas
by MuhammadSohail
Fri Jun 02, 2006 12:16 pm
Forum: C++ Development
Topic: Bug to change wxStaticText Foreground color
Replies: 5
Views: 1427

Thanks for quick reply, It brings no change .Any other idea??? After creating static text and set the forground color, I am appending it in the sizer to show. Where i am doing mistake , i dont understand. HintFlexGridSizer->Add(alertHintMessage_Part1, 0, wxRIGHT|wxALIGN_CENTER_VERTICAL, SPACING_BETW...