Search found 49 matches

by hilda
Mon May 11, 2009 4:04 am
Forum: C++ Development
Topic: Can we have multiple tabs in a frame..
Replies: 8
Views: 1288

Thanks a lot..
wxDefaultSize is (-1, -1) which indicates that wxWindows should generate a default size for the window..
by hilda
Sat May 09, 2009 5:09 am
Forum: C++ Development
Topic: Can we have multiple tabs in a frame..
Replies: 8
Views: 1288

Thanks Trv,.. I updated my code as you suggested... itemNotebook = new MyItemNotebook( Notebook, -1, wxPoint( -1, -1 ), wxSize( -1,-1 ) ); Notebook->InsertPage( siFrames, itemNotebook, "Item", true ); panel = new MyPanel( itemNotebook, -1, wxPoint( -1, -1 ), wxSize( -1,-1 ), wxTAB_TRAVERSAL ); ..but...
by hilda
Fri May 08, 2009 10:32 am
Forum: C++ Development
Topic: Can we have multiple tabs in a frame..
Replies: 8
Views: 1288

On the note booked page,Item.., void MyFrame::OnItems() { panel = new MyPanel( Notebook, -1, wxPoint( -1, -1 ), wxSize( -1, -1 ), wxTAB_TRAVERSAL ); Notebook->InsertPage( siFrames, panel, "Department", true ); Last->Maximize( true ); bbClose = new MyItemsBitmapButton( panel, -1, bitmap, wxPoint( liW...
by hilda
Fri May 08, 2009 9:45 am
Forum: C++ Development
Topic: Can we have multiple tabs in a frame..
Replies: 8
Views: 1288

thanks TrV..


So i can create a notebook in a notebook page..right?

First, I have Parent frame and on menu item click, i am crating a notebbok page..Now i need to create another nootbook in the above opened notebookpage..

Can u explain with some code..?
by hilda
Fri May 08, 2009 4:02 am
Forum: C++ Development
Topic: Can we have multiple tabs in a frame..
Replies: 8
Views: 1288

Can we have multiple tabs in a frame..

In my parent frame am using notebook for each menu selection window.Is it possible to have tabs in the notebooked page again. If it possible how can i achieve this? Please help me with some code.. I triied this and I am able to create notebook,but fail to add page to this notebook... Thanks in advan...
by hilda
Mon Apr 27, 2009 7:05 am
Forum: C++ Development
Topic: wxListCtrl sort column
Replies: 1
Views: 1535

by hilda
Wed Mar 25, 2009 11:13 am
Forum: General Development
Topic: vector sorting
Replies: 6
Views: 1241

Thank u all.I fix the bug. When sorting using client name, there were so many entries with same name.that made the problem..I changed the code for SortByClientName static bool SortByClientName( const MyClient &client1, const MyClient &client2 ) { if ( client1.ClientNm > client2.ClientNm ) return fal...
by hilda
Wed Mar 25, 2009 9:37 am
Forum: General Development
Topic: vector sorting
Replies: 6
Views: 1241

when clicking on column 1, the grid sort normally.but when clicck on column 0, itsn't getting out from the function,
SortByClientName().
by hilda
Wed Mar 25, 2009 9:05 am
Forum: General Development
Topic: vector sorting
Replies: 6
Views: 1241

Muetdhiver wrote That is, please can you post the MyClient class declaration ? What is the type of ClientNm ? Are you sure it can be sorted ? yes, i am sure about sorting.i done it before also..i cant fix what i am doing wrong here. Class declaration class MyClient { public: MyClient( wxString lsCli...
by hilda
Wed Mar 25, 2009 8:36 am
Forum: General Development
Topic: vector sorting
Replies: 6
Views: 1241

vector sorting

Hai, i am using vector for sorting the elements in my grid void MySalClientGrid::OnLabelLeftClick( wxGridEvent &event ) { int Col = event.GetCol(); if ( Col == 0 ) sort( grid->mvClient.begin(), grid->mvClient.end(), SortByClientName ); else if ( Col == 1 ) sort( grid->mvClient.begin(), grid->mvClien...
by hilda
Fri Mar 20, 2009 6:10 am
Forum: C++ Development
Topic: wxListCtrl - Sorting works with restrictions
Replies: 3
Views: 2266

/* sorting */ int wxCALLBACK ListItemCompare(long item1, long item2, long sortinfo) // the callback sorting function, takes a pointer to a SortInfo object { //~ wxMessageBox( wxString::Format("%d", item1) ); //~ wxMessageBox( wxString::Format("%d", item2) ); ListSortInfo *SortInfo = (ListSortInfo *)...
by hilda
Mon Mar 16, 2009 5:40 am
Forum: C++ Development
Topic: Using images from resource file
Replies: 8
Views: 3161

Code: Select all

wxBitmap bitmap;
bitmap = wxBitmap( "Splash" );
.rc file:

Code: Select all

Splash BITMAP "Splash.bmp"
by hilda
Thu Mar 12, 2009 4:43 am
Forum: Compiler / Linking / IDE Related
Topic: problem when upgrading to wx2.8.9
Replies: 1
Views: 494

problem when upgrading to wx2.8.9

Hi.. all.. In my system wx242 is running( borland 5.5, windows xp ) Now i want upgrade it to latest.. downloaded wx289 and compiled( make -f makefile.bcc in msw\build ) it using borland 5.5.. compiled minimal.cpp all running fine. but when i tried to compile /samples/widgets/widgets.cpp, its showing...
by hilda
Wed Mar 11, 2009 11:09 am
Forum: C++ Development
Topic: problem when upgrading to wx2.8.9
Replies: 1
Views: 431

problem when upgrading to wx2.8.9

Hi.. all.. In my system wx242 is running( borland 5.5, windows xp ) Now i want upgrade it to latest.. downloaded wx289 and compiled( make -f makefile.bcc in msw\build ) it using borland 5.5.. compiled minimal.cpp all running fine. but when i tried to compile /samples/widgets/widgets.cpp, its showing...
by hilda
Wed Mar 11, 2009 9:42 am
Forum: wxDev-C++
Topic: Help populating ListCtrl with Mysql row[] data
Replies: 1
Views: 451

Code: Select all

for(int i=0; i < 5 /*mysql_num_fields(res) */; i++)
{ 
   item1.m_itemId = i; 
   WxListCtrl2->InsertItem( i, item1 );
   WxListCtrl2->SetItemData( i, item1 );
   WxListCtrl2->SetItem( i, 1, row[6] );
   WxListCtrl2->SetItem(i,2,row[20]); 
}