Search found 17 matches

by ivan
Mon Jul 03, 2006 7:11 am
Forum: C++ Development
Topic: printing problem
Replies: 0
Views: 350

printing problem

Hi guys, I am using wxPrintout to set up printing. I already derived a class from it. Now, I have a problem. wxPrinter printer( &getApp().prnData ); MyPrintout printout( "Phonebook" ); [b]printer.Print(this, &printout, true);[/b] When I call printer.Print(this, &printout, true), true means that I wa...
by ivan
Tue Feb 21, 2006 6:34 am
Forum: C++ Development
Topic: Error dialog
Replies: 5
Views: 979

I don't know what it could be. I checked the wxWidgets documentation and found nothing about it. That is strange. Maybe is because my version is older: 2.6.0
by ivan
Tue Feb 21, 2006 6:29 am
Forum: C++ Development
Topic: problem accessing globals in C library
Replies: 11
Views: 1775

You may try to define the structures in a header file and include it both in your application and the library.
by ivan
Mon Feb 20, 2006 8:52 pm
Forum: C++ Development
Topic: Returning a wxWindow ?
Replies: 6
Views: 811

phlox81 wrote:to late...
:? What?
by ivan
Mon Feb 20, 2006 8:49 pm
Forum: C++ Development
Topic: Error dialog
Replies: 5
Views: 979

Re: Error dialog

The file <wx/generic/logg.cpp> defines an excellent wxLogDialog class that is used by many of the wxW classes to report errors. Is it possible to use this dialog in our own applications? <wx/generic/logg.h> does not mention this class, and I can't seem to find any examples online. I'd be very grate...
by ivan
Mon Feb 20, 2006 8:39 pm
Forum: C++ Development
Topic: wxListCtrl - how to right-aligne the first column ?
Replies: 8
Views: 1824

If you are on Windows, The first column of the ListCtrl can only be left-aligned and you can not do nothing about that.
by ivan
Mon Feb 20, 2006 8:38 pm
Forum: C++ Development
Topic: Sizer question
Replies: 12
Views: 2112

Thank you for reply, ivan. My problem is that following code CMyDialog::CMyDialog(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) : wxDialog(parent, id, title, pos, size, wxDEFAULT_DIALOG_STYLE) { // begin wxGlade: CPowerPanelDialog::CPowerPanelD...
by ivan
Mon Feb 20, 2006 1:30 pm
Forum: C++ Development
Topic: Sizer question
Replies: 12
Views: 2112

No, but you can prevent it from sizing by non setting the wxGROW style when you are adding the control to the sizer.
by ivan
Sun Feb 19, 2006 8:18 pm
Forum: C++ Development
Topic: Simple problem with wxSizers
Replies: 6
Views: 1303

Jamie wrote:Try using wxFrame::SendSizeEvent()
Works perfectly! :D :D :D
by ivan
Sun Feb 19, 2006 8:14 pm
Forum: Announcements and Discoveries
Topic: c++ tutorials and lessons
Replies: 9
Views: 1791

It is because HTML doesn't recognize tabs, you must put your code between [ CODE ] and [ /CODE ] ( without spaces )
by ivan
Sun Feb 19, 2006 3:49 pm
Forum: C++ Development
Topic: Simple problem with wxSizers
Replies: 6
Views: 1303

Re: Simple problem with wxSizers

Trikko wrote:Have you tried yourTopSizer->Layout() ?
It doesn't work... Any other ideas?
by ivan
Sun Feb 19, 2006 3:12 pm
Forum: C++ Development
Topic: Simple problem with wxSizers
Replies: 6
Views: 1303

Simple problem with wxSizers

Ok, I have a frame, a panel with a toolbar and a ListCtrl. All works fine except when I hide the toolbar with a function, ListCtrl doesn't 'go up' to occupy the space of the hidden toolbar. If I try then to resize the window then all works fine. What I am trying to do is 'refresh' the sizer some way...
by ivan
Sun Feb 19, 2006 10:26 am
Forum: Announcements and Discoveries
Topic: c++ tutorials and lessons
Replies: 9
Views: 1791

That is great! But wrong forums anyway :wink:
by ivan
Fri Feb 17, 2006 8:53 am
Forum: C++ Development
Topic: WXToolBar + AddToolBar
Replies: 3
Views: 836

barbarello wrote:It perfectly works !

Thanks a lot...
You are welcome :)
by ivan
Thu Feb 16, 2006 6:53 pm
Forum: C++ Development
Topic: WXToolBar + AddToolBar
Replies: 3
Views: 836

Try to pass wxNullBitmap as a parameter if you don't want to use pictures with the toolbar.