Search found 86 matches

by xin.songtao
Mon Oct 11, 2010 9:25 am
Forum: wxCode
Topic: wxCurl won't compile
Replies: 2
Views: 1677

Here my complie command,it works well on mac 10.5.6 configure curl (the version is:7.21.1 ) ./configure --prefix=/your_folder/curlPrefix/ BUILD=release --disable-debug --disable-curldebug --enable-static=yes --enable-shared=no --disable-ftp --disable-ldap --disable-ldaps --disable-rtsp --disable-pro...
by xin.songtao
Thu Aug 26, 2010 4:43 am
Forum: Announcements and Discoveries
Topic: [ANN] wxYahooMaps - Yahoo! Maps Image API Wrapper Library
Replies: 3
Views: 1375

Thanks for sharing!
Maybe I can reference yours,and make the wxGoogleMap :D
by xin.songtao
Thu Aug 26, 2010 4:39 am
Forum: Announcements and Discoveries
Topic: [ANN]wxGoogleTranslate - Google Translate Wrapper
Replies: 2
Views: 1306

That's very interesting!
Good Idea
by xin.songtao
Mon Aug 23, 2010 3:21 am
Forum: C++ Development
Topic: Set new text to wxTextCtrl smoothly
Replies: 5
Views: 1118

or you can define your textctrl.
derived from scrolledwindow, draw the text yourself with the wxAutoBufferedPaintDC,that would be better.

the text wrapper could reference the wxTextctrl.
by xin.songtao
Mon Aug 16, 2010 2:30 am
Forum: C++ Development
Topic: Set new text to wxTextCtrl smoothly
Replies: 5
Views: 1118

try ChangeValue()?
by xin.songtao
Fri May 21, 2010 3:34 am
Forum: C++ Development
Topic: Problem with wxScrolledWindow + wxGLCanvas
Replies: 5
Views: 1260

maybe the glViewport is the key of your problem.
by xin.songtao
Thu Mar 04, 2010 3:34 am
Forum: C++ Development
Topic: combobox as dataview renderer
Replies: 2
Views: 543

Im trying to use a combobox as a dataview editor in my program. The code runs well but the editor is shown for less than half a second then it vanishes. the combobox with owner-drawn list items,you should implement OnDrawItem() OnMeasureItem() and OnMeasureItemWidth() method. the editor is shown fo...
by xin.songtao
Thu Mar 04, 2010 3:21 am
Forum: C++ Development
Topic: how to create mouse events?
Replies: 3
Views: 444

by xin.songtao
Tue Feb 23, 2010 3:41 am
Forum: wxWidgets Development (Chinese)
Topic: 有些冷清啊,先自我介绍一下
Replies: 1
Views: 1673

赞一个 :D
by xin.songtao
Tue Feb 23, 2010 3:37 am
Forum: wxWidgets Development (Chinese)
Topic: wxlistctrl控件时刻更新问题!
Replies: 1
Views: 1470

wxListCtrl::InsertItem Inserts an item, returning the index of the new item if successful, -1 otherwise. 插入的时候会得到一个index。 删除的时候也可以得到最后的位置。 long lastPos = 0; wxArrayInt DelIndex; int nDeleteNum = 0; long item = -1; for(;;) { item = m_pListCtrl->GetNextItem(item,wxLIST_NEXT_ALL,wxLIST_STATE_SELECTED)...
by xin.songtao
Tue Feb 09, 2010 9:31 am
Forum: C++ Development
Topic: Is there some way to determine whether the file is in use?
Replies: 4
Views: 787

Hi, I use this code to test if the fileToWrite is using. wxFile file(fileToWrite); if (file.IsOpened()) { wxMessageBox( _("The files are used. Please close the browser before proceeding.")); return false; } but the first time,this is ok,but the following it always return false(IsOpend() return true)...
by xin.songtao
Sun Feb 07, 2010 9:57 am
Forum: C++ Development
Topic: Is there some way to determine whether the file is in use?
Replies: 4
Views: 787

if that another app uses file locks than yes. You may query existing locks and act appropriately.
I generated a video,and embedded it in a Web page, open it with the browers(such as Firefox,IE).

How to query the existing locks? Is there some way in wxWidgets?


Thanks for your reply.
by xin.songtao
Sun Feb 07, 2010 9:10 am
Forum: C++ Development
Topic: Is there some way to determine whether the file is in use?
Replies: 4
Views: 787

Is there some way to determine whether the file is in use?

Hi, everyone.

I create a file,and then open it with other apps or process(such as Firefox,IE),and when create the file again, I should determine isopend or not, and alert the user to close first.

Is there some way can be achieved?

thanks.
by xin.songtao
Fri Feb 05, 2010 9:10 am
Forum: C++ Development
Topic: how to remove the file to trash?
Replies: 5
Views: 1832

Thanks for you give a great hand.
:D
by xin.songtao
Fri Feb 05, 2010 4:56 am
Forum: C++ Development
Topic: how to remove the file to trash?
Replies: 5
Views: 1832

I'm almost certain that both platforms simply have a folder for their trash. Simply move the file into the folder. It's in a weird place in Windows, I can get you the path if you'd like. On OSX it's ~/.Trash Thanks for your reply! It's in a weird place in Windows, I can get you the path if you'd li...