Search found 189 matches

by dkaip
Sun Sep 16, 2018 9:38 pm
Forum: C++ Development
Topic: Delete an item from wxListCtrl.
Replies: 10
Views: 140

Re: Delete an item from wxListCtrl.

In Linux wxWidgets lib must have problem.
It must works on both OS.
Thank you
Jim.
by dkaip
Sun Sep 16, 2018 11:27 am
Forum: C++ Development
Topic: Delete an item from wxListCtrl.
Replies: 10
Views: 140

Re: Delete an item from wxListCtrl.

For PB code i take error when pick an item... Is library's bug? /usr/include/wx-3.0/wx/strvararg.h(456): assert "(argtype & (wxFormatStringSpecifier<T>::value)) == argtype" failed in wxArgNormalizer(): format specifier doesn't match argument type But when disable code // wxLogMessage(&...
by dkaip
Sun Sep 16, 2018 11:21 am
Forum: C++ Development
Topic: Delete an item from wxListCtrl.
Replies: 10
Views: 140

Re: Delete an item from wxListCtrl.

Hello.
I upload the code, is from zetcode example.
Thank you
Jim
by dkaip
Sun Sep 16, 2018 4:31 am
Forum: C++ Development
Topic: Delete an item from wxListCtrl.
Replies: 10
Views: 140

Re: Delete an item from wxListCtrl.

Yes this is line with problem. I assume the line that causes the problem is: m_lc2->DeleteItem(i); Supposse m_lc2 has 2 objects, and click to first i take i=0 and j=2. But i<j and proplem is the same. Is problem of library? I use wxWidgets3.0.3 stable. Even using DeleteAllItems () i have the same pr...
by dkaip
Sat Sep 15, 2018 1:15 pm
Forum: C++ Development
Topic: Delete an item from wxListCtrl.
Replies: 10
Views: 140

Delete an item from wxListCtrl.

Hello in code bellow i am trying to delete items from wxListCtrl, but i take an error on OnSelectItem, last line. The pos i of item is ok. ../include/wx/dynarray.h(838): assert "uiIndex < m_nCount" failed in Item(). Thank you Jim. TextDrop::TextDrop(const wxString& title) : wxFrame(NUL...
by dkaip
Mon Aug 27, 2018 9:24 pm
Forum: wxCode
Topic: Problem inserting a certain pdf file.
Replies: 1
Views: 70

Problem inserting a certain pdf file.

Hello. In certain pdf file that i upload there is problem inserting the page.
../src/common/mstream.cpp(196): assert "buffer" failed in CopyTo(): must have buffer to CopyTo


Code: Select all

        int tpl = pdfile.ImportPage(1);


Thank you.
Jim
by dkaip
Mon Aug 27, 2018 9:19 pm
Forum: wxCode
Topic: Rotate a wxpdfdoc page
Replies: 3
Views: 153

Re: Rotate a wxpdfdoc page

Hello, i am looking is for editing with easy way, without add page, making a new pdf.
Thank you for your answer.
Jim
by dkaip
Thu Aug 23, 2018 11:17 am
Forum: wxCode
Topic: Rotate a wxpdfdoc page
Replies: 3
Views: 153

Rotate a wxpdfdoc page

We find in sites online services to rotate a page in a pdf.
With wxPDFDoc lib there is an easy way to rotate a page from pdf?
Thank you
Jim
by dkaip
Thu Aug 23, 2018 11:15 am
Forum: wxCode
Topic: wxSQLIte3 from sources...
Replies: 10
Views: 965

Re: wxSQLIte3 from sources...

That is right way as you say.
Thank you.
Jim
by dkaip
Tue Aug 21, 2018 12:24 pm
Forum: C++ Development
Topic: Can't resize bitmap in a wxDC
Replies: 4
Views: 106

Re: Can't resize bitmap in a wxDC

With Rescale works fine.
Thank you
Jim.
by dkaip
Tue Aug 21, 2018 10:28 am
Forum: C++ Development
Topic: Can't resize bitmap in a wxDC
Replies: 4
Views: 106

Re: Can't resize bitmap in a wxDC

Sorry, ok, but even i use ... the scaled image img i have the same result...

Code: Select all

        dc->DrawBitmap(img,wxPoint(xi,yi));
       

Even i use ..

Code: Select all

        wxBitmap bmp1(img);
        dc->DrawBitmap(bmp1,wxPoint(xi,yi));

i have the same result...

Thank you.
Jim
by dkaip
Tue Aug 21, 2018 6:03 am
Forum: C++ Development
Topic: Can't resize bitmap in a wxDC
Replies: 4
Views: 106

Can't resize bitmap in a wxDC

Hello. At place xi,yi i want to put an image with width xj-xi and hight yj-yi. I use this code, but the image don't resize in (xi,yi)(xj,yj) rectangle. What i have wrong? Thank you. Jim wxBitmap bmp(imageFile,wxBITMAP_TYPE_ANY); wxImage img=bmp.ConvertToImage(); double dx=abs(xj-xi); double dy=abs(y...
by dkaip
Fri Aug 03, 2018 10:57 pm
Forum: C++ Development
Topic: Bitmap GetWidth method gives wrong for jpg image.
Replies: 1
Views: 47

Bitmap GetWidth method gives wrong for jpg image.

Hello, in code bellow i have problem.. GetWidth gives wrong for jpg image. Image is ok. Thank you. Jim. ASSERT INFO: ../src/gtk/bitmap.cpp(924): assert "IsOk()" failed in GetWidth(): invalid bitmap wxInitAllImageHandlers(); wxFileName img("myimage.jpg"); wxBitmap bmp = wxBitmap(i...
by dkaip
Mon Jul 30, 2018 8:49 pm
Forum: C++ Development
Topic: Very simple question
Replies: 3
Views: 108

Re: Very simple question

I am find the wrong. Must have wxFrame in wxPanel place.
Thank you.
Jim
by dkaip
Mon Jul 30, 2018 8:24 pm
Forum: C++ Development
Topic: Very simple question
Replies: 3
Views: 108

Re: Very simple question

Hello. I send the code. I have make another exactly the same with different names and works. Here is wrong and i am trying to understand why. Thank you. Jim #include <wx/artprov.h> #include <wx/xrc/xmlres.h> #include <wx/string.h> #include <wx/button.h> #include <wx/gdicmn.h> #include <wx/font.h> #i...

Go to advanced search