Search found 111 matches

by greg
Fri Mar 07, 2014 11:07 am
Forum: C++ Development
Topic: How to read pdf file
Replies: 3
Views: 1566

Re: How to read pdf file

Thanks for the answer

I didn't use wxWebView library anymore.
How can I load pdf file - using SetPage (const wxString &html, const wxString &baseUrl) method ?
Is it possible to rotate pdf file using that library ?
by greg
Fri Mar 07, 2014 10:31 am
Forum: C++ Development
Topic: How to read pdf file
Replies: 3
Views: 1566

How to read pdf file

Hi everyone
I want to read and display pdf file in the same
way like wxImage on wxImagePanel.
Is it possible using wx?
by greg
Thu Sep 19, 2013 5:41 am
Forum: C++ Development
Topic: How can I show a dialog in a console program?
Replies: 1
Views: 783

How can I show a dialog in a console program?

How can I show a dialog in a console program?
E.g wxMessageBox dialog - is it possible?
Please any sample
by greg
Tue May 28, 2013 12:10 pm
Forum: C++ Development
Topic: wxImage.GetOptionInt method on JPEG fails
Replies: 4
Views: 1711

Re: wxImage.GetOptionInt method on JPEG fails

Thanks Doublemax
Now it's clear for me.
by greg
Tue May 28, 2013 11:53 am
Forum: C++ Development
Topic: wxImage.GetOptionInt method on JPEG fails
Replies: 4
Views: 1711

Re: wxImage.GetOptionInt method on JPEG fails

Thanks for Your answer
So this another problem.
I'm reading JPG file to wxImage.
How can I get image quality on JPEG file?
by greg
Tue May 28, 2013 11:12 am
Forum: C++ Development
Topic: wxImage.GetOptionInt method on JPEG fails
Replies: 4
Views: 1711

wxImage.GetOptionInt method on JPEG fails

Hi I have a problem while using GetOptionInt method from wxImage on JPG files. I want to get the information on quality of JPG file. GetOptionInt method always returns 0. Whats wrong in my code? xImage img; img.LoadFile("test.jpg", wxBITMAP_TYPE_JPEG); printf ("option=%i\n", img....
by greg
Fri Jul 13, 2012 7:05 am
Forum: C++ Development
Topic: PropertyGrid problem
Replies: 0
Views: 1319

PropertyGrid problem

Hi all I have strange problem using wxPropertyGrid. When calling from DLL wxPropertyGrid I'd like to delete item using DeleteProperty method when selecting active row, but I can not delete it. I'm using popup menu on Right Click on seleceted cell. I'd like to mention that the same code on EXE (not D...
by greg
Sat Jan 22, 2011 4:38 pm
Forum: C++ Development
Topic: DeleteProperty on wxPropertyGrid (RIGHT CLICKED EVT) problem
Replies: 1
Views: 1220

DeleteProperty on wxPropertyGrid (RIGHT CLICKED EVT) problem

I have a problem while deleting property from wxPropertyGrid widget when property is selected and right clicked. Here is my snippet: class MyFrame : public wxFrame { private: wxPropertyGrid* pg; void OnPropertyGridItemRightClick( wxPropertyGridEvent& event ); DECLARE_EVENT_TABLE() }; BEGIN_EVENT...
by greg
Wed Jan 05, 2011 6:11 pm
Forum: C++ Development
Topic: ToolTip display problem in DLL !!!
Replies: 3
Views: 1156

Thanks feelthat for Your answer. I tried Your code but still doesn't work. I can not see tool tip while loading my dll- dialog. What I'm doing wrong? Can You help me? Here is my snippet I tested: class MyButton : public wxButton { public: MyButton( wxWindow* parent, wxWindowID id, const wxString&...
by greg
Wed Dec 29, 2010 10:48 am
Forum: C++ Development
Topic: access from static function to non-static function
Replies: 15
Views: 3350

evstevemd
I haven't use singleton at all.
Can You implement singleton on my sample?
by greg
Wed Dec 29, 2010 7:49 am
Forum: C++ Development
Topic: access from static function to non-static function
Replies: 15
Views: 3350

access from static function to non-static function

I have the following problem. Here is my piece of code: class MyPanel : public wxPanel { public: MyPanel(MyFrame *frame); virtual ~MyPanel(); private: void start_database (); protected: static int getStartPoint(DPoint3d * pt,int view); }; /*-----------------------------------------------------------...
by greg
Mon Dec 13, 2010 9:27 am
Forum: C++ Development
Topic: Excel file read
Replies: 25
Views: 12550

Many many Thanks to PB for Your help.
Your code really works!
I've compiled using WX ver 2.8.2 and that was my fault.
Now ported to 2.8.10 and started to work finally.
Can You tell me what WX version did You tested Your code?
by greg
Sat Dec 11, 2010 1:11 pm
Forum: C++ Development
Topic: Excel file read
Replies: 25
Views: 12550

I'm really confused. I pasted Your code in my project, and still not working. I'm testing on Excel 2003. I've attached my *.xls file named a.xls . It is really a very simple file. Here is my output. : Attempting to create Excel instance... : Launching Excel took 172 ms : Attempting to open file C:\a...
by greg
Sat Dec 11, 2010 7:53 am
Forum: C++ Development
Topic: Excel file read
Replies: 25
Views: 12550

PB I tried Your code but here is a problem below: void GetDataFromRange(wxAutomationObject& range, variantVector& data) { wxVariant values = range.GetProperty("Value"); if (values.IsNull()) // no values in the range return; } values always is null ! I tried xls with one sheet and 3...
by greg
Fri Dec 10, 2010 6:47 am
Forum: C++ Development
Topic: Excel file read
Replies: 25
Views: 12550

PB You are great! Your test code works perfect till now. I'm testing on Windows console so I put *.xls local path instead of full path. Thanks for Your previous advice but I have, I hope, final problem. How can I go through all the sheets and get row/column values as fast as it's possible using OLE....