Search found 74 matches

by martynov77
Fri Mar 23, 2012 6:07 pm
Forum: C++ Development
Topic: How to open html from memory with wxWebConnect
Replies: 0
Views: 1217

How to open html from memory with wxWebConnect

Hello!
How I can open html from memory within wxWebConnect?
by martynov77
Mon Jan 30, 2012 4:47 am
Forum: C++ Development
Topic: wxScrolledWindow drawing problem
Replies: 1
Views: 1191

Re: wxScrolledWindow drawing problem

Sorry, that is my ownn bug :oops:
by martynov77
Mon Jan 30, 2012 4:39 am
Forum: C++ Development
Topic: wxScrolledWindow drawing problem
Replies: 1
Views: 1191

wxScrolledWindow drawing problem

Hello! I need to draw small circle on the existing rectangel such as show in pic. But I need circle to be filled with it's own color, not depending rect background or frame color. bug01.png I try to set brush (wxDC::SetBrush), try to operate transparency (wxDC::SetBackgroundMode), try to set BG colo...
by martynov77
Wed Jan 25, 2012 12:34 pm
Forum: C++ Development
Topic: stupid problem -can t close window
Replies: 4
Views: 2089

Re: stupid problem -can t close window

Small update to prev post.

I found event.Skip(); in my other wx app, and in that app this code works, but in new app that is not the same
by martynov77
Wed Jan 25, 2012 12:32 pm
Forum: C++ Development
Topic: stupid problem -can t close window
Replies: 4
Views: 2089

Re: stupid problem -can t close window

Hello!

There is something strange - now I have added the event.Skip(true); in OnCloseEvent and all works ok, but I previously tried to add event.Skip(); and that's do not worked. Help tell me that Skip() and Skip(true) are the same, but it seems that is not true.

Thak you for help, denarced.
by martynov77
Wed Jan 25, 2012 3:09 am
Forum: C++ Development
Topic: stupid problem -can t close window
Replies: 4
Views: 2089

stupid problem -can t close window

Hello! I have got a problem - I can't close window. class CSchemeFrame : public wxFrame { ... void OnCloseEvent(wxCloseEvent & event); void OnQuit(wxCommandEvent& event); ... private: DECLARE_EVENT_TABLE() }; void CSchemeFrame::OnQuit(wxCommandEvent& WXUNUSED(event)) { Close(); //1 } voi...
by martynov77
Fri Jan 06, 2012 10:10 am
Forum: C++ Development
Topic: How to process all windows messages in message handler?
Replies: 8
Views: 3157

Re: How to process all windows messages in message handler?

Auria wrote:Frankly I think it would be better to start using threads instead of yield. More work, I know, but way more predictable than yield (unless your long batch needs to access GUI controls, in which case it can;t be in a thread)
Yes, I need UI. I want to measure UI responsibility
by martynov77
Fri Jan 06, 2012 10:08 am
Forum: C++ Development
Topic: How to process all windows messages in message handler?
Replies: 8
Views: 3157

Re: How to process all windows messages in message handler?

You could try if this changes anything: while( wxGetApp().HasPendingEvents() ) wxGetApp().ProcessPendingEvents(); Then there really shouldn't be any more pending events. But, if you really have some code that runs for 0.5 secs, but the gui updates caused by that code take 15secs to finish, then you...
by martynov77
Thu Jan 05, 2012 8:58 pm
Forum: C++ Development
Topic: How to process all windows messages in message handler?
Replies: 8
Views: 3157

Re: How to process all windows messages in message handler?

I don't understand what the problem is. Does the second version show 2 seconds although it really took 15. Or did it really take 2 seconds and you don't know why? I think main job really took less that 2 seconds, but with fll UI update it took 15 seconds. I don't think the Yield() call has anything...
by martynov77
Thu Jan 05, 2012 8:32 pm
Forum: C++ Development
Topic: How to process all windows messages in message handler?
Replies: 8
Views: 3157

Re: How to process all windows messages in message handler?

All you can do is call wxApp::Yield() on a regular basis during the long operation. But you must beware of reentrancy, i.e. the user could select the same menu entry that started the long operation, again. With all consequences ;) This seems as that I need, but I try it, and I'm not satisfied. My t...
by martynov77
Thu Jan 05, 2012 4:36 pm
Forum: C++ Development
Topic: How to process all windows messages in message handler?
Replies: 8
Views: 3157

How to process all windows messages in message handler?

Hello!
I do a long job in main window menu handler, and I need all window messages to be processed and all UI updated in some points of that long job. That must be seems like many short jobs called from the main menu. How I can get such behavior?
by martynov77
Thu Dec 29, 2011 2:11 pm
Forum: C++ Development
Topic: wxTextCtrl eats Ctrl+Enter
Replies: 1
Views: 1048

Re: wxTextCtrl eats Ctrl+Enter

I found explanation for this subject here - http://comments.gmane.org/gmane.comp.li ... evel/83790.
by martynov77
Thu Dec 29, 2011 2:11 pm
Forum: C++ Development
Topic: Handling Ctrl-Enter in wxTextCtrl
Replies: 1
Views: 1286

Re: Handling Ctrl-Enter in wxTextCtrl

I found explanation for this subject here - http://comments.gmane.org/gmane.comp.li ... evel/83790.
by martynov77
Thu Dec 29, 2011 12:40 pm
Forum: C++ Development
Topic: Handling Ctrl-Enter in wxTextCtrl
Replies: 1
Views: 1286

Handling Ctrl-Enter in wxTextCtrl

Hello! I have a question about handling Ctrl-Enter press. If I want to process Tab key press, I need to set wxTE_PROCESS_TAB style. In wxTextCtrl in window styles section written about Tab handling next: wxTE_PROCESS_TAB - The control will receive wxEVT_CHAR events for TAB pressed - normally, TAB is...
by martynov77
Wed Dec 28, 2011 1:31 am
Forum: C++ Development
Topic: wxTextCtrl eats Ctrl+Enter
Replies: 1
Views: 1048

wxTextCtrl eats Ctrl+Enter

Hello! I have a control derived from wxTextCtrl. In old code it was placed on wxPanel and in OnKeyDown(wxKeyEvent& event) I can catch Ctrl+Enter pressings (catch Enter press and than test modifiers). Currently I need more control on that panel and I was create wxFlatNoteBook on panel, and place ...