Search found 153 matches

by Bundy
Tue Jan 03, 2006 1:41 pm
Forum: C++ Development
Topic: Clipboard problem
Replies: 6
Views: 1437

I think in this case the best way will be to write one more construstor, witch will take wxCustomDataObject as argument, and in construktor You will have to get data from this argument and put them into Your class members
by Bundy
Tue Jan 03, 2006 1:29 pm
Forum: C++ Development
Topic: select a text in a wxComboBox
Replies: 1
Views: 591

Try this:

Code: Select all

myComboBoxItem->SetSelection( myComboBoxItem->GetInsertionPoint(), myComboBoxItem->GetValue().Length() );
Regards
Bundy
by Bundy
Tue Jan 03, 2006 12:58 pm
Forum: C++ Development
Topic: wxImage
Replies: 9
Views: 1926

Why You can't just use wxImage img; img.LoadFile(const wxString& name, long type = wxBITMAP_TYPE_ANY, int index = -1); where type can be: wxBITMAP_TYPE_BMP Load a Windows image file. wxBITMAP_TYPE_GIF Load a GIF image file. wxBITMAP_TYPE_JPEG Load a JPEG image file. wxBITMAP_TYPE_PCX Load a PCX imag...
by Bundy
Tue Jan 03, 2006 12:51 pm
Forum: C++ Development
Topic: Clipboard problem
Replies: 6
Views: 1437

Hmm, I cant see ClipboardTrack in wxWidgets library. Waht is it? What constructors have this class?
by Bundy
Tue Jan 03, 2006 10:44 am
Forum: C++ Development
Topic: LisCtrl First InsertColumn width -1
Replies: 3
Views: 630

Maybe this will help: width can be a width in pixels or wxLIST_AUTOSIZE (-1) or wxLIST_AUTOSIZE_USEHEADER (-2). wxLIST_AUTOSIZE will resize the column to the length of its longest item. wxLIST_AUTOSIZE_USEHEADER will resize the column to the length of the header (Win32) or 80 pixels (other platforms...
by Bundy
Tue Jan 03, 2006 10:19 am
Forum: C++ Development
Topic: Clipboard problem
Replies: 6
Views: 1437

Try add

readObj->SetFormat(wxT("application/tracks"));


in read function

Regards
Bundy
by Bundy
Tue Jan 03, 2006 9:51 am
Forum: C++ Development
Topic: Unicode, utf8, iso etc...
Replies: 1
Views: 613

Try this

Code: Select all

wxString text_in_local = wxString(text_in_utf8, wxConvUTF8);

text_in_local.mb_str(wxConvUTF8) - returns string in utf8

regards
Bundy
by Bundy
Mon Dec 19, 2005 11:07 am
Forum: C++ Development
Topic: Convert numbers to a wxString and storing it in a listctrl
Replies: 2
Views: 683

Try:

Code: Select all

 WxListCtrl1->InsertItem(x,wxString() << some_number);

Regards
Bundy
by Bundy
Fri Dec 09, 2005 2:12 pm
Forum: C++ Development
Topic: How to push LEAVE event up to parent window?
Replies: 7
Views: 1515

I don't that compiler let You catch multiple events of this same type. But if You derived class from class that already have example EVT_MOTION and You set in your class this same event t think it will be like this: first Your event will call Your function, and if you put in this function event.Skip...
by Bundy
Fri Dec 09, 2005 12:41 pm
Forum: C++ Development
Topic: How to push LEAVE event up to parent window?
Replies: 7
Views: 1515

You can generate Your own event witch will be notice by parent: in child class BEGIN_EVENT_TABLE( wxClickText, wxControl ) EVT_LEAVE_WINDOW(wxClickText::OnMouseEvent) END_EVENT_TAB void wxClickText::OnMouseEvent( wxMouseEvent& event ) { wxCommandEvent myevent(wxEVT_COMMAND_BUTTON_CLICKED, GetId()); ...
by Bundy
Fri Dec 09, 2005 12:31 pm
Forum: C++ Development
Topic: Catching key down event
Replies: 7
Views: 1454

I think You will have to derived wxTextCtrl class and there catch event like You do for frame

Regards
by Bundy
Fri Dec 09, 2005 12:04 pm
Forum: C++ Development
Topic: I can't change cursor after closing dialog on linux
Replies: 1
Views: 763

Dont think about this anymore. I just set in this another window cursor to wxHOURGLASS_CURSOR first and on close to wxSTANDARD_CURSOR, when I change this wxSTANDARD_CURSOR to wxNullCursor everything works fine. Sorry for boder
by Bundy
Thu Dec 08, 2005 8:37 am
Forum: C++ Development
Topic: I can't change cursor after closing dialog on linux
Replies: 1
Views: 763

I can't change cursor after closing dialog on linux

Hej all. I have application, just panel and statictext on it. I have two event, one is generated when user move mouse over panel, second when user move mouse over statictext. They both work, i know that becouse i send message to console when mouse is over static text and second when mouse is over pa...
by Bundy
Fri Dec 02, 2005 1:51 pm
Forum: C++ Development
Topic: How to remove border from listview in listbook?
Replies: 4
Views: 1083

Ok, after few months I was forced by my boss to do this. This is my solution (based on Jorg topic): wxListbook_glowny = new wxListbook(this, ID_LISTY, wxDefaultPosition,wxDefaultSize, wxLB_LEFT); wxWindowID id1 = wxListbook_glowny->GetListView()->GetId(); wxListView *wsk; wsk = wxListbook_glowny->Ge...
by Bundy
Thu Nov 24, 2005 8:25 am
Forum: C++ Development
Topic: Bug in wxDateTime?
Replies: 9
Views: 2192

I think you have right. Maybe try this

wxString strTime = myTime.Format("%I:%M:%S %P");

or

wxString strTime = myTime.Format("%r");