Search found 1937 matches

by PB
Wed Dec 08, 2010 10:29 pm
Forum: C++ Development
Topic: Excel file read
Replies: 25
Views: 7891

I have no experience with automation and very little with wxWidgets, but as I might be needing to interact with MS Excel soon, I spent some time looking into it. Here's a very crude and probably very inefficient example, which: 1. Launches MS Excel in invisible state 2. Opens a file 3. Reads and dis...
by PB
Wed Dec 08, 2010 7:58 pm
Forum: C++ Development
Topic: Excel file read
Replies: 25
Views: 7891

greg wrote:BasicExcel has a lot of limitations and that's why I can apply
this project. It crashes while reading xls file.
BasicExcel was pretty much superseded by the ExcelFormat library (which, of course, has a lot of limitations too), I linked to in my first post here. Does it also crash?
by PB
Mon Dec 06, 2010 4:33 pm
Forum: C++ Development
Topic: Excel file read
Replies: 25
Views: 7891

by PB
Sat Dec 04, 2010 7:12 pm
Forum: C++ Development
Topic: Create textbox like this
Replies: 4
Views: 1096

Sorry, I don't think wxWidgets have something like Windows' native IP Address Control . But I thought there's a wxMaskedEdit in development, as one of GSoC projects ? Masked Edit Control The goal is to write a wxTextEntry-derived class (so that it could be used with both wxTextCtrl and wxComboBox) w...
by PB
Sat Dec 04, 2010 6:54 pm
Forum: C++ Development
Topic: wxRichTextCtrl copy content to clipboard
Replies: 12
Views: 1891

Is this even supposed to work, i.e. can wxRichTextCtrl put its contents into the Clipboard in RTF or HTML format? On my computer (wxWidgets 2.8.11 and 2.9-SVN, Windows 7) Richtext sample certainly works as Linda says it does. Except for me, even text formatting isn't preserved, I only get unformatte...
by PB
Sat Dec 04, 2010 6:35 pm
Forum: C++ Development
Topic: wxDialog, exit on close
Replies: 4
Views: 1246

Hi, Which close button are you talking about? If it's the one for the dialog itself (top right on Windows), it should end your application, without any help from your code, when you click it. Application ends (by default) when its top level window is deleted. So you either have to create it on stac...
by PB
Sat Dec 04, 2010 4:13 pm
Forum: C++ Development
Topic: Event handlers in separate class files - is that possible?
Replies: 8
Views: 1178

Is there any reason why not use Bind ? I think the only reason not to use it is when having to use wxWidgets 2.8x, but aren't we supposed to start new projects with versions 2.9/3 in mind? :wink: Anyway, I think it might be better to program into the library and language, instead of (often very pain...
by PB
Sat Dec 04, 2010 4:03 pm
Forum: C++ Development
Topic: wxDialog, exit on close
Replies: 4
Views: 1246

Re: wxDialog, exit on close

I think you should call gui->Destroy() before returning from MyApp::OnInit().

Code: Select all

bool MyApp::OnInit()
{
	gui = new changemac_gui();
	gui->ShowModal();
	gui->Destroy();   // <--- new line
	return true;
}
by PB
Wed Nov 24, 2010 10:14 pm
Forum: C++ Development
Topic: wxBookCtrl sample is broken
Replies: 3
Views: 875

Re: wxBookCtrl sample is broken

Is there a reason why do you use 2.9.0? I believe if you find the bug you're supposed to test it against current SVN version. Anyway, here's what I found out. I also have Windows 7 and 3 versions of wxWidgets: - 2.8.11 - current stable release - 2.9.1 - latest development release: - 2.9-SVN (revisio...
by PB
Sun Nov 14, 2010 7:35 pm
Forum: Compiler / Linking / IDE Related
Topic: vtable reference error
Replies: 7
Views: 2217

Re: vtable reference error

Hello everybody. I wrote a small program handling events through the event table. It worked pretty well. As I want to use that thing dynamically, I tried to replace the event table by a Connect procedure : Connect(BUTTONCOMPUTE_ID, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(myApWin:: clicb...
by PB
Sun Nov 14, 2010 8:00 am
Forum: C++ Development
Topic: Wizard pages loaded from resource file overlap
Replies: 7
Views: 1574

One more thing: My question from the original post still stands. Is loading a wxWizardPageSimple descendant via wxXMLResource::LoadPanel() a proper way? From wxWidgets docs about XRC section (it's from the section about requirements for subclassing, but I think it's relevant here too): 4. It [class]...
by PB
Sat Nov 13, 2010 10:42 pm
Forum: C++ Development
Topic: Wizard pages loaded from resource file overlap
Replies: 7
Views: 1574

Change wxWizardPage* GetFirstPage() { return m_pPage2; } to wxWizardPage* GetFirstPage() { return m_pPage1; } My bad, in my code I properly return m_pPage1, I must have posted the code from the time I was experimenting with trying various stuff. Add m_pPage2->Hide(); This definitely fixes the probl...
by PB
Sat Nov 13, 2010 7:28 pm
Forum: C++ Development
Topic: Wizard pages loaded from resource file overlap
Replies: 7
Views: 1574

Oh, do you mean the whole wizard dialog has wrong (too small, I assume) size or just the individual pages? If it is the whole wizard then it is definitely weird, as it is supposed to have minimum size of 270x270 pixels on non-PDA systems. Unfortunately, I have access only to computers running MSW, s...
by PB
Sat Nov 13, 2010 7:21 pm
Forum: Compiler / Linking / IDE Related
Topic: vs2010, wxwidgets 2.9.1 and TargetPath/OutputFile mismatch
Replies: 2
Views: 2148

Re: vs2010, wxwidgets 2.9.1 and TargetPath/OutputFile mismat

Trying to build 2.9.1 sources I get these: C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012: TargetPath(C:\Program Files\wxWidgets-2.9.1\build\msw\.\..\..\lib\vc_dll\wxregex.lib) does not match the Library's OutputFile property value (C:\Program Files\...
by PB
Fri Nov 12, 2010 8:55 pm
Forum: C++ Development
Topic: Toolbar problem
Replies: 17
Views: 2641

Hi, I copied and compiled the code in the original post and it works as it should. Toolbar background is painted properly in white, no drawing artifacts hinting background is not erased properly occur when I resize the window. When I make the main window really tiny, the status bar is not overlapped...