Search found 115 matches

by Victory
Tue Jun 23, 2015 7:25 pm
Forum: C++ Development
Topic: wxTextOutputStream line ending has an extra CR (i.e., CR CR LF)
Replies: 2
Views: 813

wxTextOutputStream line ending has an extra CR (i.e., CR CR LF)

I am seeing that WriteString on wxTextOutputStream is writing an extra CR on Windows. The following simple code reproduces the problem on my machine. wxFFileOutputStream outFStream(filePath, "w"); wxTextOutputStream outStream(outFStream); wxString tempStr(wxT("AForApple\n")); out...
by Victory
Sun May 31, 2015 2:18 am
Forum: C++ Development
Topic: Which wxStandardPaths-Method points to AppData\Local ?
Replies: 2
Views: 1136

Re: Which wxStandardPaths-Method points to AppData\Local ?

I am also looking for this. Searching the forum, I found this old unanswered thread from 2011. As far as I can tell, a method for this still does not exist in wxStandardPaths; or, is it?

Thanks!
by Victory
Fri May 15, 2015 5:52 pm
Forum: C++ Development
Topic: Control for informative messages
Replies: 4
Views: 1243

Re: Control for informative messages

may be you can use wxTextCtrl with multline style and disable it. I tried that yesterday. It kind of works, but, the "grayed out" look of the text due to disabling was not ideal. So, I am searching for a better solution. P.S. Another issue with that was that the control was taking much mo...
by Victory
Fri May 15, 2015 5:35 pm
Forum: C++ Development
Topic: Control for informative messages
Replies: 4
Views: 1243

Control for informative messages

What control do you people use for multiple lines long, un-editable, informative message in a dialog? The first choice that came to my mind was wxStaticText. But, wxStaticText does not wrap automatically with the resizing of the dialog. Searching on this forum, over the past few years, there have be...
by Victory
Sat May 02, 2015 10:24 pm
Forum: C++ Development
Topic: PropertyGrid Row label highlight
Replies: 0
Views: 1947

PropertyGrid Row label highlight

The following is what I am seeing in property grid window (wxPropertyGrid). Step 1: I click on the value field in a row to edit it. Both the "Label" and "Value" fields of that row get highlighted in blue, as one would expect. Step 2: After changing the value, I hit "Enter&qu...
by Victory
Thu Apr 30, 2015 3:33 pm
Forum: C++ Development
Topic: wxDirDialog from a modal dialog hangs
Replies: 4
Views: 1228

Re: wxDirDialog from a modal dialog hangs

I created a minimal, single-threaded app and it worked fine there for me as well. But, in my actual multi-threaded application, it consistently exhibits the behavior I mentioned. I don't see any obvious problem in my code. Anyway, to get around the issue, I redesigned my GUI not to use wxDirDialog. ...
by Victory
Wed Apr 29, 2015 10:32 pm
Forum: C++ Development
Topic: wxDirDialog from a modal dialog hangs
Replies: 4
Views: 1228

Re: wxDirDialog from a modal dialog hangs

Platform: Windows 7 Enterprise.
I am using wxWidgets-3.0.2, which is the latest publicly released version per wxWidgets website.
by Victory
Wed Apr 29, 2015 10:10 pm
Forum: C++ Development
Topic: wxDirDialog from a modal dialog hangs
Replies: 4
Views: 1228

wxDirDialog from a modal dialog hangs

I noticed that invoking a wxDirDialog from a modal dialog with the invoking modal dialog set as it parent results in program hang without displaying the wxDirDialog. Specifically, I am seeing that the following code results in a hang: void cMyModalDialog::OnBrowseButtonClick(wxCommandEvent& even...
by Victory
Tue Oct 14, 2014 5:06 pm
Forum: C++ Development
Topic: wxScrolledWindow question
Replies: 1
Views: 761

wxScrolledWindow question

I have a horizontal wxScrolledWindow in which a sequence of 128x128 bitmap buttons are placed one after another. That is, the scrolled window looks like a strip of images. I tried the following two: (1) pScrolledWin->SetScrollRate(1,0) (2) pScrolledWin->SetScrollRate(128,0) In case 1, pressing on th...
by Victory
Wed Oct 16, 2013 1:04 am
Forum: C++ Development
Topic: Editing numbers - better ideas?
Replies: 3
Views: 1188

Editing numbers - better ideas?

I believe people must have come up with better ways for the simple task of letting users enter floating point numbers than I have. So, I thought I shall ask for ideas/suggestions... I am currently using wxTextCtrl for entering numbers. Is there a better choice? In my view, it is preferable that the ...
by Victory
Mon Jul 22, 2013 7:14 pm
Forum: C++ Development
Topic: 2.9.5 font xrc error
Replies: 1
Views: 849

Re: 2.9.5 font xrc error

I looked into this some more. It seems like as of version 2.9.4, wxWidgets stopped recognizing "Default" as a valid value for font family in xrc. My "xrc" files are created by wxFormBuilder. I see that a patch has been submitted for wxFormBuilder in March '13 not to export the &q...
by Victory
Sun Jul 21, 2013 11:24 pm
Forum: C++ Development
Topic: 2.9.5 font xrc error
Replies: 1
Views: 849

2.9.5 font xrc error

I just upgraded from wxWidgets 2.9.3 to 2.9.5 [I had not upgraded to 2.9.4]. Now, when my application loads the xrc file corresponding to its main window, I get the following error message: XRC error: unknown font family "default". The same xrc layout file used to load fine with wxWidgets ...
by Victory
Fri Jul 12, 2013 7:55 pm
Forum: C++ Development
Topic: wxGrid cell edit using dialog
Replies: 6
Views: 1840

Re: wxGrid cell edit using dialog

The initial advice was to show the dialog in the event handler for wxEVT_GRID_EDITOR_SHOWN, which should work even without deriving from wxGrid. Did you try that? I tried that today and it worked. Thanks for steering me in that direction :); initially, I pursued the approach taken by the poster of ...
by Victory
Thu Jul 11, 2013 12:45 am
Forum: C++ Development
Topic: wxGrid cell edit using dialog
Replies: 6
Views: 1840

Re: wxGrid cell edit using dialog

Maybe the author thought it would be easy to find it by eliminating the events that are not related to this case. Anyway, is it working for you? Looking at the code it should, but I doubt many people tried it so far if any, and it does sound like an interesting thing to know about. Please post back...
by Victory
Mon Jul 08, 2013 10:07 pm
Forum: C++ Development
Topic: wxGrid cell edit using dialog
Replies: 6
Views: 1840

Re: wxGrid cell edit using dialog

catalin wrote:Just as suggested there, catch wxEVT_GRID_EDITOR_SHOWN event, use the dialog that you want, do your editing, and finally don't forget to Veto() the event so that the actual grid editor is not shown.
Thanks, but, at the link I added, there is no mention of wxEVT_GRID_EDITOR_SHOWN.