Search found 92 matches
- Thu Sep 18, 2014 2:05 am
- Forum: C++ Development
- Topic: flick problem
- Replies: 31
- Views: 5472
Re: flick problem
thank you very much!
- Wed Sep 17, 2014 8:30 am
- Forum: C++ Development
- Topic: flick problem
- Replies: 31
- Views: 5472
Re: flick problem
I all tired...
but the two Refresh are both nessesary.
if no Refresh for the frame, the linked lines will not refresh...
if no Refresh for the panel, the panel's background will not right......
but the two Refresh are both nessesary.
if no Refresh for the frame, the linked lines will not refresh...
if no Refresh for the panel, the panel's background will not right......
- Fri Sep 12, 2014 2:24 am
- Forum: C++ Development
- Topic: flick problem
- Replies: 31
- Views: 5472
Re: flick problem
I all tired...
- Thu Sep 11, 2014 2:29 am
- Forum: C++ Development
- Topic: flick problem
- Replies: 31
- Views: 5472
Re: flick problem
and the Render func is like what we disscussed before, for big panel and small panel, first call parent->Render(), then draw its own bitmap and others. the frame is the big panel's parent, and the big panel is the small panel's parent. for the frame, in its Render(), just do its own drawings. and al...
- Thu Sep 11, 2014 2:21 am
- Forum: C++ Development
- Topic: flick problem
- Replies: 31
- Views: 5472
Re: flick problem
I don't have many ideas about this anyway. Could you show the code where you move the panel? ok void MyPanel::MouseMove(wxMouseEvent& event) { if(IsDragging) { //get the position ... this->Move(pos); MyFrame* frame = wxDynamicCast(GetParent(), MyFrame); if(frame != NULL) { frame->Refresh(); } Refre...
- Wed Sep 10, 2014 9:59 am
- Forum: C++ Development
- Topic: flick problem
- Replies: 31
- Views: 5472
Re: flick problem
win 8
well, I compiled wxWidgets using DLL_DEBUG in vs2013, i guess it is defaut 64bit, so can't run on winXP...
well, I compiled wxWidgets using DLL_DEBUG in vs2013, i guess it is defaut 64bit, so can't run on winXP...
- Tue Sep 09, 2014 12:57 pm
- Forum: C++ Development
- Topic: flick problem
- Replies: 31
- Views: 5472
Re: flick problem
i tried, but upload was failed..it's 27M.
- Tue Sep 09, 2014 10:25 am
- Forum: C++ Development
- Topic: virtual event func ?
- Replies: 3
- Views: 1234
Re: virtual event func ?
You want MyPanel to be an abstract class? Yes, by adding a pure virtual method. is the wxPanel not abstract, but its child abstrct and child's child not abstract OK? 2. & 3. so I should call the virtual func and then event.Skip() in the abstract class and then overrider the virtual func in its chil...
- Tue Sep 09, 2014 10:09 am
- Forum: C++ Development
- Topic: flick problem
- Replies: 31
- Views: 5472
Re: flick problem
ok, I will make a video. May I send it to ur email ? I found upload file here is very slow...
and I found when move the panel, if I call the panel's Update instead of Refresh(), it's better, but the semi-transparent backgound is wrong cause of no refresh...
and I found when move the panel, if I call the panel's Update instead of Refresh(), it's better, but the semi-transparent backgound is wrong cause of no refresh...
- Tue Sep 09, 2014 6:45 am
- Forum: C++ Development
- Topic: virtual event func ?
- Replies: 3
- Views: 1234
virtual event func ?
1. can I inhrite from wxPanel a MyPanel that is an abstract class? 2. in MyPanel i have a virtual func PaintEvent() for EVT_PAINT, and in MyPnael's child MyChildPanel, I override PaintEvent()...both in MyPanel and MyChildPanel,i declare BEGIN_EVENT_TABLE, EVT_PAINT, is it OK? Will the MyChildPanel o...
- Tue Sep 09, 2014 1:58 am
- Forum: C++ Development
- Topic: flick problem
- Replies: 31
- Views: 5472
Re: flick problem
I tried this method, for both the big panel and small panel. It's better and faster rendering when fast move the panel, but still have that "dragging" appearance when move the big panel... and I am really comfused that why the 1st big panel I add on the wxScrollWindow is always perfect, but when I a...
- Fri Sep 05, 2014 11:25 am
- Forum: C++ Development
- Topic: flick problem
- Replies: 31
- Views: 5472
Re: flick problem
And for the wxScrollWindow, wxAutoBufferedPaintDC, then PrepareDC, then Render(): dc.Clear(), DrawLine. One thing you can try to improve performance is to use wxBufferedPaintDC with a static bitmap as buffer. That way it doesn't have to create a new bitmap each time. But then you have to make sure ...
- Fri Sep 05, 2014 9:26 am
- Forum: C++ Development
- Topic: context sample?
- Replies: 3
- Views: 1196
Re: context sample?
I saw on the menu sample, there is an altertive that use EVT_CONTEXT_MENU...is it better to use this? I now use EVT_RIGHT_UP.
- Fri Sep 05, 2014 8:20 am
- Forum: C++ Development
- Topic: flick problem
- Replies: 31
- Views: 5472
Re: flick problem
Hard to tell from a distance. Maybe the code in the paint event handlers is just too slow. Try commenting out parts of it, even if it leaves garbage on the screen. Just to see if that's the problem. I located where the problem is, in the small panels' Render(), I first call the parent(big panel)'s ...
- Fri Sep 05, 2014 3:41 am
- Forum: Platform Related Issues
- Topic: wxWidgets support iOS and Android?
- Replies: 6
- Views: 5707
Re: wxWidgets support iOS and Android?
is it http://wiki.pypt.lt/wxios?
how does it work now? very well?
how does it work now? very well?