Search found 274 matches

by iwbnwif
Wed Aug 31, 2016 9:19 am
Forum: C++ Development
Topic: easy way to wxString + int ?
Replies: 4
Views: 915

Re: easy way to wxString + int ?

Sorry, I didn't understand - do you mean other short codes to format a number in a string?

It might be useful to look at this page:

https://wiki.wxwidgets.org/Converting_e ... m_wxString
by iwbnwif
Mon Aug 29, 2016 6:20 pm
Forum: C++ Development
Topic: easy way to wxString + int ?
Replies: 4
Views: 915

Re: easy way to wxString + int ?

The easiest way is to use wxString::Format which takes a printf style format specification and returns a wxString.

For example:

Code: Select all

int myInteger = 10;
wxMessageBox(wxString::Format("Integer Value is : %d", myInteger));
by iwbnwif
Sun Aug 28, 2016 4:34 pm
Forum: wxCode
Topic: the problem of "wxReportDocument" for print preview
Replies: 5
Views: 2880

Re: the problem of "wxReportDocument" for print preview

Thank you for looking into this and posting the results of your work here, it is certainly useful. ...and all references to wxXMLNode->GetProperty(... to wxXMLNode->GetAttribute(.... That will allow you to compile the code. Do you mean change all references to wxXMLNode->AddProperty(... to wxXMLNode...
by iwbnwif
Fri Aug 26, 2016 1:08 pm
Forum: General Development
Topic: Report Desinger plugin ??? Urgent !
Replies: 11
Views: 3348

Re: Report Desinger plugin ??? Urgent !

It isn't in any way related to wxWidgets, but one of the best tools for this job is Jasper Reports.

I wish that there was a wxWidgets equivalent, but I think that it would be a huge project and wxReportDocument is probably as close as we will get.
by iwbnwif
Thu Aug 25, 2016 9:35 am
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 4041

Re: Row selection in wxDataViewCtrl is based on index basis

Hi, AFAIK this is still unfixed and the trac ticket remains opened.
by iwbnwif
Thu Aug 18, 2016 1:15 pm
Forum: Compiler / Linking / IDE Related
Topic: CodeBlocks IDE has no "wxWidgets 3.1.x" option
Replies: 6
Views: 2371

Re: CodeBlocks IDE has no "wxWidgets 3.1.x" option

Yes it says that the wxWidgets DLL cannot be found.

As Doublemax says, either copy it to the directory where your executable (.EXE) file is. Or perhaps better is to add the directory with your wxWidgets DLLs to the PATH environment variable.
by iwbnwif
Thu Aug 11, 2016 8:04 am
Forum: C++ Development
Topic: wxRichTextCtrl and scroll
Replies: 3
Views: 642

Re: wxRichTextCtrl and scroll

It might be better for you to use a wxGrid here?
by iwbnwif
Mon Jul 18, 2016 8:44 pm
Forum: wxCode
Topic: SetDateFormat function of class DateAxis in wxfreechart
Replies: 6
Views: 4194

Re: SetDateFormat function of class DateAxis in wxfreechart

I tested this on Linux (gcc 4.8.4) and it draws the label on 2 separate lines. doublemax: I assume that wxfreechart uses wxDC::DrawText to draw the label which only supports multi-line texts since wx 2.9.2 Yes it does, although in the OP's case I expect the label is appearing vertically, so it is dr...
by iwbnwif
Sat Jun 25, 2016 7:52 pm
Forum: Database Related
Topic: What’s wrong in the following query?
Replies: 3
Views: 2484

Re: What’s wrong in the following query?

... and what is the problem you are having, and which database are you using (may or may not be relevant)? SELECT student_code, name FROM students WHERE marks = (SELECT MAX(marks) FROM students GROUP BY subject_code); For a start, the GROUP BY clause is probably redundant because MAX(marks) should o...
by iwbnwif
Tue Jun 21, 2016 9:58 am
Forum: C++ Development
Topic: restoring wxFrame position on app start, an offset is required?
Replies: 5
Views: 1598

Re: restoring wxFrame position on app start, an offset is required?

Just in case you haven't already found it there is an 'automatic' way of providing this functionality.

See WX Persistent Objects Overview.
by iwbnwif
Thu Jun 16, 2016 11:53 am
Forum: C++ Development
Topic: How to use gnuPlot in wxWidget project
Replies: 15
Views: 9748

Re: How to use gnuPlot in wxWidget project

Concerning the "wxFreeChart", is still maintained? No, it is not actively maintained. PB and myself have made some recent changes to fix bugs and improve performance, but no real active development work. That said, depending on what you need, it does what it does quite well and is documented. Also ...
by iwbnwif
Thu Jun 16, 2016 8:55 am
Forum: C++ Development
Topic: How to use gnuPlot in wxWidget project
Replies: 15
Views: 9748

Re: How to use gnuPlot in wxWidget project

If you are using a newer version of wxWidgets (I think >= 3.0) and you want to use wxFreeChart, then you might like to try this version which has some bug fixes:

https://github.com/iwbnwif/wxFreeChart
by iwbnwif
Thu Jun 09, 2016 8:41 pm
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 4041

Re: Row selection in wxDataViewCtrl is based on index basis

Both Nautilus and the GTK native wxDataViewListCtrl behave as I expected (and consistently with each other), i.e. the selection remains with the item following a sort. The only difference from MSW File Explorer is that multiple selections are maintained following a sort on GTK, whereas the selection...
by iwbnwif
Wed Jun 08, 2016 4:02 pm
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 4041

Re: Row selection in wxDataViewCtrl is based on index basis

What is the behavior of the native control under GTK/Cocoa? Unfortunately I am not in a position to check that for a few days. However, the behavior of the (native) wxListCtrl and the listctrl sample on MSW is as I would expect, i.e. the selected item remains selected - because the selected row fol...
by iwbnwif
Wed Jun 08, 2016 9:03 am
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 4041

Re: Row selection in wxDataViewCtrl is based on index basis

What should be the action item, I feel it is a bug.
I agree. I can raise a ticket in trac, but first I would like to take a look at the problem and see if there is a fix I can propose and make a patch.