Search found 69 matches

by palikem
Sun Apr 29, 2018 9:46 am
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 31
Views: 7364

Re: Change wxPaintDC to wxBufferedPaintDC

Thank you doublemax. =D>
Now it's okay
by palikem
Sun Apr 29, 2018 8:51 am
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 31
Views: 7364

Re: Change wxPaintDC to wxBufferedPaintDC

Thank you doublemax.
I have already solved the problem with the arc.

Now I need to solve this problem:
frame.jpg
It will do so only when I minimize the program and open some directory on the desktop.
I can send a video, but where to insert the video?
by palikem
Sun Apr 29, 2018 6:38 am
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 31
Views: 7364

Re: Change wxPaintDC to wxBufferedPaintDC

I added :

Code: Select all

void AdcFrm::AdcFrmPaint(wxPaintEvent& event)
{
   if(wxGetActiveWindow() == this){
        ;
   }else{
        return;
   }
   .......
It helped.
I just do not know if it's right :?:
by palikem
Sat Apr 28, 2018 8:43 pm
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 31
Views: 7364

Re: Change wxPaintDC to wxBufferedPaintDC

Regarding the assert message: There is definitely no leak in the code i posted, but it's still better to use a static bitmap for the buffer, instead of creating a new one each time. You need to add a member variable "wxBitmap m_buffer;" to the class this method belongs to. wxPaintDC pdc(t...
by palikem
Tue Apr 24, 2018 8:21 pm
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 31
Views: 7364

Re: Change wxPaintDC to wxBufferedPaintDC

Using wxPaintDC. void testbuffFrm::testbuffFrmPaint(wxPaintEvent& event) { wxPaintDC dc(this); /*if( !m_buffer.IsOk() || m_buffer.GetWidth() != GetClientSize().x || m_buffer.GetHeight() != GetClientSize().y ) { // you can also try depth=32 and check if it makes any difference m_buffer = wxBitmap...
by palikem
Tue Apr 24, 2018 5:42 pm
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 31
Views: 7364

Re: Change wxPaintDC to wxBufferedPaintDC

Try this as a workaround: Old code: wxPaintDC dc(this); // start drawing code dc.Clear(); dc.SetDeviceOrigin(0, dc.GetSize().GetHeight()-1 ); dc.SetAxisOrientation(true, true); dc.DrawLine(0, 0, 100, 100); dc.DrawText("Test Frame", 100, 100); // end drawing code New code: wxPaintDC pdc(th...
by palikem
Sun Apr 22, 2018 11:17 am
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 31
Views: 7364

Re: Change wxPaintDC to wxBufferedPaintDC

Thanks to doublemax.

Using SetBackgroundStyle (wxBG_STYLE_PAINT) not blinking.
by palikem
Sun Apr 22, 2018 10:33 am
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 31
Views: 7364

Re: Change wxPaintDC to wxBufferedPaintDC

Thanks it works.

Will not blink with Refresh () ?
by palikem
Sun Apr 22, 2018 9:32 am
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 31
Views: 7364

Re: Change wxPaintDC to wxBufferedPaintDC

I need to resolve it as soon as possible.
I have to find another solution.
Everything that I draw, I have to recalculate.

My English is not so good, to report bugs in trac.wxwidgets.org
by palikem
Fri Apr 20, 2018 4:39 am
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 31
Views: 7364

Re: Change wxPaintDC to wxBufferedPaintDC

these were two windows wxScrolledWindow in wxFrame.
I have removed them and it does not work.
by palikem
Thu Apr 19, 2018 8:54 pm
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 31
Views: 7364

Re: Change wxPaintDC to wxBufferedPaintDC

wxPaintDC dc(this); wxPaintDC dd(okno1); wxPaintDC de(okno2); This is a big no-no. In a paint event handler you can only draw onto the window that initiated the paint event. And it doesn't make sense anyway. What are you trying to do here? When you need to draw multiple windows, what is the solutio...
by palikem
Thu Apr 19, 2018 7:36 pm
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 31
Views: 7364

Re: Change wxPaintDC to wxBufferedPaintDC

wxWidgets 2.9.3
by palikem
Thu Apr 19, 2018 7:21 pm
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 31
Views: 7364

Re: Change wxPaintDC to wxBufferedPaintDC

wxDev-C++ 7.4.2.569

I do not understand the second question.
by palikem
Thu Apr 19, 2018 6:00 pm
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 31
Views: 7364

Change wxPaintDC to wxBufferedPaintDC

Hi everybody. I encountered the problem. I need the y axis to start from the bottom up, using wxBufferedPaintDC. Using wxPaintDC is ok. void testbuffFrm::testbuffFrmPaint(wxPaintEvent& event) { wxPaintDC dc(this); wxPaintDC dd(okno1); wxPaintDC de(okno2); dc.SetDeviceOrigin(0, dc.GetSize().GetHe...
by palikem
Fri Apr 13, 2018 8:34 am
Forum: Platform Related Issues
Topic: Different font design.
Replies: 11
Views: 2958

Re: Different font design.

Thank you PB and Doublemax