Search found 110 matches

by ChineseAlexander
Sun Apr 04, 2010 5:48 am
Forum: C++ Development
Topic: How to open a chm, and goto the specified topic?
Replies: 1
Views: 937

How to open a chm, and goto the specified topic?

I use wxLaunchDefaultBrowser to open the chm.But i don't know how to goto the specified topic.Anyone know it ?
by ChineseAlexander
Sat Apr 03, 2010 2:26 pm
Forum: C++ Development
Topic: wxFrame tremble when OnSize
Replies: 1
Views: 776

wxFrame tremble when OnSize

void nwPlayerPanel::OnSize(wxSizeEvent&event) { int w = g_pref.GetNumber("w", "Positions",800); int h = g_pref.GetNumber("h", "Positions",600); wxSize size = GetClientSize();//event.GetSize(); /* I thought can control the trembling,but not if ( labs( w - ...
by ChineseAlexander
Sun Jan 31, 2010 12:59 pm
Forum: C++ Development
Topic: How to send a email via wxSMTP?
Replies: 1
Views: 862

How to send a email via wxSMTP?

wxSMTP *smtp = new wxSMTP(NULL); smtp->SetHost("smtp.gmail.com","alexander","123456"); wxEmailMessage *msg = new wxEmailMessage("Bug report", "Your code really sucks." "Fix your code", "alexander@gmail.com"); msg->AddTo("ale...
by ChineseAlexander
Thu Jan 21, 2010 4:39 am
Forum: General Development
Topic: How to upload a picture to flickr?
Replies: 4
Views: 1723

Not sure what this has to do with wxWidgets unless someone has already built a wrapper. I would start by looking at the API for flickr here: http://www.flickr.com/services/api/ which includes a page for upload procedure here: http://www.flickr.com/services/api/upload.api.html Jim Dear Jim, The flic...
by ChineseAlexander
Thu Jan 21, 2010 3:38 am
Forum: General Development
Topic: How to upload a picture to flickr?
Replies: 4
Views: 1723

Not sure what this has to do with wxWidgets unless someone has already built a wrapper. I would start by looking at the API for flickr here: http://www.flickr.com/services/api/ which includes a page for upload procedure here: http://www.flickr.com/services/api/upload.api.html Jim Dear Jim, The flic...
by ChineseAlexander
Wed Jan 20, 2010 2:24 am
Forum: General Development
Topic: How to upload a picture to flickr?
Replies: 4
Views: 1723

How to upload a picture to flickr?

http://www.flickr.com/photos/upload/

How to upload a picture with username and password with wxwidgets?
by ChineseAlexander
Sun Dec 27, 2009 8:56 am
Forum: C++ Development
Topic: Why I can't get the a web page content ?
Replies: 5
Views: 1305

JimFairway wrote:HI,

Code: Select all

        return ret;
It doesn't look like you assigned anything to 'ret'.


Jim
sorry, i forget it.

But in fact I watch the buffer with Debugger.
by ChineseAlexander
Sat Dec 26, 2009 2:38 pm
Forum: C++ Development
Topic: Why I can't get the a web page content ?
Replies: 5
Views: 1305

Why I can't get the a web page content ?

the webpage is like that: http://www.youtube.com/watch?v=N9hwcl3GC3Q&feature=featured wxString xxGetURLFromWatch(wxString watchURL) { wxString ret; wxURL url(watchURL); wxInputStream* aStream = url.GetInputStream(); if ( aStream ) { char buffer[1024*10] = { 0 }; aStream->Read(buffer,1024*10); wx...
by ChineseAlexander
Mon Nov 16, 2009 2:36 pm
Forum: C++ Development
Topic: How to get the current app icon?
Replies: 1
Views: 672

How to get the current app icon?

For I want to self draw the frame with the icon.Is there a way to get the current application's icon?
by ChineseAlexander
Sat Oct 17, 2009 2:01 am
Forum: C++ Development
Topic: Is there any method to create a full screen dialog in Mac?
Replies: 2
Views: 911

Re: Is there any method to create a full screen dialog in Ma

I want to create a full screen dialog.But under Mac OS,the top menu bar will cover the window.I just want a whole screen dialog.Is there any? Or is there any method to lock destop mouse event to avoid refresh when I draw something on screenDC? I just want to capture a screen and draw something on it
by ChineseAlexander
Sat Oct 17, 2009 1:59 am
Forum: C++ Development
Topic: Is there any method to create a full screen dialog in Mac?
Replies: 2
Views: 911

Is there any method to create a full screen dialog in Mac?

I want to create a full screen dialog.But under Mac OS,the top menu bar will cover the window.I just want a whole screen dialog.Is there any?
by ChineseAlexander
Sat Oct 17, 2009 1:56 am
Forum: C++ Development
Topic: wxTaskBarIcon: Can't exit application if dialog is shown
Replies: 4
Views: 1370

chris_bern wrote:Or you have a better idea?
here may work

Code: Select all

	wxProcess::Kill(::wxGetProcessId(),wxSIGKILL);
by ChineseAlexander
Fri Oct 16, 2009 1:21 am
Forum: C++ Development
Topic: Do wxWidgets has a method to Froze the Destop refresh?
Replies: 0
Views: 455

Do wxWidgets has a method to Froze the Destop refresh?

I want to draw with wxSrceeenDC to desktop.But the mouse event will trigger refresh event of the destop.
by ChineseAlexander
Thu Oct 15, 2009 8:04 am
Forum: C++ Development
Topic: wxScreenDC doesn`t work on mac?
Replies: 6
Views: 1400

I test with Click "About" menu. In my opinion,it should show me a Red rectangle. But nothing happened.The OS is Mac OS 10.5.5 with wx2.8.10 void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) { wxScreenDC dc; wxScreenDC::StartDrawingOnTop((wxRect*)NULL); dc.SetPen(*wxRED_PEN); dc.Se...
by ChineseAlexander
Thu Oct 15, 2009 8:04 am
Forum: C++ Development
Topic: wxScreenDC doesn`t work on mac?
Replies: 6
Views: 1400

no - there is bug of wxWidgets, because wxSplitterWindow and wxAui use wxScreenDC for draw - but I don`t see highlight by wxAui for docking and sash when change sash position by mouse in wxSplitterWindow I try execute simple code: wxScreenDC tDC; tDC.SetBrush( *wxBLACK ); tDC.DrawRectangle( 1, 1, 6...