Search found 153 matches

by Bundy
Wed Nov 23, 2005 12:44 pm
Forum: C++ Development
Topic: wxDatePickerCtrl showing time?
Replies: 1
Views: 737

by Bundy
Mon Nov 07, 2005 9:18 am
Forum: C++ Development
Topic: automatic sorting in wxListCtrl
Replies: 1
Views: 831

Maybe You need to call Refresh() or RefreshItem()?

Regards
Bundy
by Bundy
Tue Oct 25, 2005 6:18 am
Forum: C++ Development
Topic: wxFileHistory - placement in menu
Replies: 4
Views: 1537

No, You can put your own menu item and then associate this menu with wxFileHistory wxMenuBar *menu_bar = new wxMenuBar(); wxMenu *menu_file = new wxMenu(0); menu_bar->Append(menu_file, "&File") menu_file->Append(ID_1,"Load file","", wxItemNormal); menu_file->Append(ID_2,"Close file","", wxItemNormal...
by Bundy
Thu Oct 13, 2005 7:13 am
Forum: C++ Development
Topic: How to change int to wxString?
Replies: 3
Views: 1229

When some function need string as parameter and I have int I use:

Code: Select all

int my_int =5;  //example

some_function(wxString::Format("%d",my_int));
Regards
Bundy
by Bundy
Tue Oct 11, 2005 9:59 am
Forum: C++ Development
Topic: images with transparency?
Replies: 17
Views: 3437

Ok, but I do not want to code alpha transparency myself Wink
Open a .xpm file. Its a normal cpp file with only one table (example wx/art/up.xpm). Maybe You can do something with this table. I don't know but it is good to try.

Regards
by Bundy
Tue Oct 11, 2005 7:32 am
Forum: C++ Development
Topic: images with transparency?
Replies: 17
Views: 3437

I don't know, but when You have wxBitmap or wxImage I think that You can do something with this object like change some colour to another
by Bundy
Tue Oct 11, 2005 6:48 am
Forum: C++ Development
Topic: images with transparency?
Replies: 17
Views: 3437

I use xpm file where I can set pixels with no color. Then when I put this xpm into (example) wxBitmapButton it will have transparency on all platforms. You can also use gif file wehe You can set transparent colour
by Bundy
Mon Sep 26, 2005 10:20 am
Forum: C++ Development
Topic: What to do to know that user put valid number to wxSpinCtrl?
Replies: 7
Views: 1881

when program go to second line (wxString str = textctrl->GetValue()) I get error: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a di...
by Bundy
Mon Sep 26, 2005 9:26 am
Forum: C++ Development
Topic: What to do to know that user put valid number to wxSpinCtrl?
Replies: 7
Views: 1881

Yes, but how get user string. You know - I have spinctrl and stupid user put there "g67" instead "67". On windows I can get this string by calling in EVT_TEXT event.GetString(). On linux this function returns empty string :/
by Bundy
Mon Sep 26, 2005 8:51 am
Forum: C++ Development
Topic: What to do to know that user put valid number to wxSpinCtrl?
Replies: 7
Views: 1881

Ok, but how to get value that user put? I mean how will I know that user put example "dasf" - not valid number?
by Bundy
Mon Sep 26, 2005 7:49 am
Forum: C++ Development
Topic: What to do to know that user put valid number to wxSpinCtrl?
Replies: 7
Views: 1881

What to do to know that user put valid number to wxSpinCtrl?

Hej all, On windows it is simple - I can use EVT_SPIN_UP/DOWN. But on linux it not working :( My problem is complex - I need do two things. First I need to prevent user from putting invalid value to wxSpinCtrl, and when user put wrong value I want generate error and put previous value into SpinCtrl ...
by Bundy
Mon Sep 26, 2005 6:47 am
Forum: C++ Development
Topic: displaying items with wxLC_VIRTUAL
Replies: 11
Views: 3591

Yes, after WxListCtrl1->SetItemCount() I use WxListCtrl1->Refresh(). For me it works, because I put data from file to list only once. If You're adding data all time to list You can use RefreshItems(int from, int to) to refresh only new items

Regards
Bundy
by Bundy
Fri Sep 23, 2005 11:47 am
Forum: C++ Development
Topic: displaying items with wxLC_VIRTUAL
Replies: 11
Views: 3591

I don't exactly know what You want to do, but I use virtual listctrl. I derived class wxListCtrl, and define my getItemText functions: wxString MyListCtrl::OnGetItemText(long item, long column) const { return wysColumn[column][item]; } where wysColumn is a wxArrayString (exactly table of wxArrayStri...
by Bundy
Thu Sep 22, 2005 11:00 am
Forum: C++ Development
Topic: Big CalenderCtrl?
Replies: 3
Views: 1291

Maybe try wxDatePickerCtrl?

Regards
by Bundy
Fri Sep 16, 2005 1:53 pm
Forum: C++ Development
Topic: How convert wxString to unsigned char *
Replies: 10
Views: 2064

Ok, I did what I whant.


P.S. Congratulation for upCase for his round number of posts (1000) :!: :D