Search found 120 matches

by Cursor
Sun Mar 20, 2005 8:39 pm
Forum: C++ Development
Topic: Menu items - disable/enable
Replies: 2
Views: 1401

The wxUpdateUIEvent is used like any other event interception : you use the macro to intercept the update event for an specific ID or range of IDs : EVT_UPDATE_UI(id, func) EVT_UPDATE_UI_RANGE(id1, id2, func) you just have to write an interception function : void MyClass::OnUpdateMenuItem(wxUpdateUI...
by Cursor
Fri Mar 18, 2005 7:13 am
Forum: C++ Development
Topic: Multiple wxPanels associated with a single wxFrame
Replies: 3
Views: 1023

wxMyFrame::wxMyFrame(...){ ... m_pSizer = new wxBoxSize(wxVERTICAL); // m_pSizer is a class member of type wxSizer* m_pSizer->Add(pPanel0, 1, wxGROW); m_pSizer->Add(pPanel1, 1, wxGROW); m_pSizer->Add(pPanel2, 1, wxGROW); ... SetSizer(pSizer); ShowPanel(0); } wxMyFrame::ShowPanel(int iPanel){ m_pSize...
by Cursor
Thu Mar 17, 2005 2:14 pm
Forum: C++ Development
Topic: simple file selector
Replies: 6
Views: 1572

If you want to extand the wxFileDialog, you can integrate it, as all other windows, as a child of other window (wxPanel, wxDialog). You must pass parent adress (in place of NULL). Working fine with sizers and wxFileDialog (as child) you can extand create a file dialog with all item you want (file pr...
by Cursor
Thu Mar 17, 2005 8:03 am
Forum: General Development
Topic: Couldn't draw polygon with wxDC:: DrawPolygon
Replies: 1
Views: 1197

Here is you writing code ? Is it in wxPaintEvent handling ? At the end of your code, you use a frame->Show witch show the window and refresh its content. You can draw on a window where you want but if you don not draw it in a wxPaintEvent handling function, yours modifs will be discarded. You must w...
by Cursor
Wed Mar 16, 2005 8:34 am
Forum: C++ Development
Topic: Multiple wxPanels associated with a single wxFrame
Replies: 3
Views: 1023

You can do it with a wxSizer where all your panels are embedded and with hidding and showing wanted panels on tool click. You can also attach and detach (with hide and show) the panels on tool click. If you use toolbar, why dont use a wxNotebook to do it. You can override the current panel changemen...
by Cursor
Tue Mar 15, 2005 2:47 pm
Forum: Announcements and Discoveries
Topic: New version of wxMySQL
Replies: 24
Views: 6609

OK
Yes I think you can, but you must note conditions about dependancies (MySQL under GPL or commercial licence).
by Cursor
Tue Mar 15, 2005 12:13 pm
Forum: Announcements and Discoveries
Topic: New version of wxMySQL
Replies: 24
Views: 6609

Are you absolutly sure that only the server is on gpl/propriatary double licence and the API is free ?
It is not very explicit.
by Cursor
Tue Mar 15, 2005 7:49 am
Forum: C++ Development
Topic: Recording mouse movement
Replies: 3
Views: 950

Yes, window system never send all pixels traversed. As your class is name GraveCanva, I suppose that your goal is to render a and-draw picture. If it is that, if you draw a continuous line instead of alone pixels, it looks good (it is the mecansim of paint or all other picture hand drawing program)....
by Cursor
Mon Mar 14, 2005 7:25 pm
Forum: Compiler / Linking / IDE Related
Topic: Unresolved external?
Replies: 4
Views: 3038

It is tipically a link problem.
Have you link all needed library ? Have you defined all needed preprocessor definition ?

http://wiki.wxwidgets.org/wiki.pl?MSVC_Setup_Guide
by Cursor
Fri Mar 11, 2005 3:50 pm
Forum: C++ Development
Topic: icons in wxStatusBar
Replies: 4
Views: 1433

Yes you can.
You can do it with a wxStatusBar derivation and with a wxPaintEvent interception inwitch you draw the icon bitmap.
You could derivate wxStatusBar to integrate a wxStaticBitmap control (the icon).
by Cursor
Wed Mar 09, 2005 7:37 am
Forum: C++ Development
Topic: wxGrid and Excel
Replies: 6
Views: 2194

If you are on windows, you can use wxAutomationObject with the excel (office in general) automation-interface. In fact, the automation interface (function names) is really near the visual basic for excel. You can found all the excel automation API on the integrate visual basic editor of excel (on xp...
by Cursor
Sun Feb 13, 2005 9:21 am
Forum: C++ Development
Topic: dynamic UI widgets at runtime
Replies: 1
Views: 792

You probably want to use wxSizer (and co) features.

Look at wxWindow::Fit to.
by Cursor
Wed Nov 17, 2004 4:40 pm
Forum: Compiler / Linking / IDE Related
Topic: [wxMSW2.5.3/VS7] core DLL compilation problem.
Replies: 0
Views: 754

[wxMSW2.5.3/VS7] core DLL compilation problem.

Hello. I want to compile wxMSW 253 in DLL version because I want to use it in exe and dll. (The problem was not present in static version) I follow the compilation procedure (compile tiiff then png ... then base : OK and core : pb). The compil fail on main.cpp#128 : 'wxEntry' : none of the 2 overloa...
by Cursor
Tue Oct 12, 2004 1:41 pm
Forum: Platform Related Issues
Topic: [wxMSW 2.5.3 - VS.net] wxRegConfig global config problem.
Replies: 0
Views: 994

[wxMSW 2.5.3 - VS.net] wxRegConfig global config problem.

I want to use wxRegConfig (the default wxConfig on Windows) to store data. I create two wxConfig objects : a global and a local : SetAppName("MyApp"); SetVendorName("Me"); m_pConfig = new wxConfig(wxEmptyString, wxEmptyString, wxEmptyString, wxEmptyString, wxCONFIG_USE_LOCAL_FILE); m_pConfigGlobal =...
by Cursor
Sat Sep 11, 2004 8:57 am
Forum: C++ Development
Topic: Double buffering/wxScrolledWindow problem
Replies: 6
Views: 2129

We talk about wxScrolledWindow, I have another problem with it too. As a big flikking is visible, I would use a wxBufferedPaintDC. in my intercept of wPaintEvent. It is OK : no flikkinkg, correct offset according scorllbars. But one problem : when I scroll (pageup/pagedown) the old showed zone is co...