Search found 149 matches

by jmason1182
Wed Aug 27, 2008 12:41 pm
Forum: C++ Development
Topic: Need Compromise: wxMenu - wxFrame - wxDialog & Modality
Replies: 13
Views: 6814

We had to do a really nasty hack to get this window done. So what hack did you do? I am needing something to get the job done and am needing a hack to put a menu on a wxDialog. EDIT : I went ahead and created a wxModalWindow class. It inherits from wxFrame... so menus and other behaviors mimic a wx...
by jmason1182
Wed Aug 27, 2008 12:40 pm
Forum: C++ Development
Topic: Need Compromise: wxMenu - wxFrame - wxDialog & Modality
Replies: 13
Views: 6814

So you are saying that you want me to join the mailing list which I would only use for this one topic.....

I like the forum. Plus, I am intending on using this poll... if more people answer it.

And check my next post... you'll see why it is on the forum... sharing code.
by jmason1182
Tue Aug 26, 2008 8:11 pm
Forum: C++ Development
Topic: Need Compromise: wxMenu - wxFrame - wxDialog & Modality
Replies: 13
Views: 6814

Need Compromise: wxMenu - wxFrame - wxDialog & Modality

This is the third project I've worked on that required extensive use of complex windows. By that I mean you have a very complex data structure. In order to show it, you must allow for a subset of data to be viewed in the first window. From there, you can select where to go and open a new window cont...
by jmason1182
Mon Aug 25, 2008 7:55 pm
Forum: wxDev-C++
Topic: MYSQL++
Replies: 4
Views: 1374

You never told me if I helped you or not.

Hopefully I did.
by jmason1182
Sun Aug 24, 2008 3:19 am
Forum: C++ Development
Topic: Need precision for financial calculations
Replies: 9
Views: 1780

Ah, but see that was the point for why I was asking here. So much about GUI programming (especially wxWidgets) is creating an interface to DO something. The SOMETHING that you DO is what's important. We all know that you can format a disk from the old command line... but non-technical people need a ...
by jmason1182
Fri Aug 22, 2008 6:40 pm
Forum: C++ Development
Topic: Need precision for financial calculations
Replies: 9
Views: 1780

Normally I would just use an int as well. The problem comes when you aren't necessarily talking about dollars and cents but a generic monetary accuracy. My client's vendors provide pricing such as $1.17758499 per/million.....but some of their vendors are only $0.125 per/thousand. The issue comes wit...
by jmason1182
Fri Aug 22, 2008 4:29 pm
Forum: C++ Development
Topic: Need precision for financial calculations
Replies: 9
Views: 1780

Need precision for financial calculations

I've been looking around for a little bit. I need to make a big change. Right now I am doing a no-no... using float's to hold monetary values. I know I can use a double and that will increase significantly the precision for the values. However. I was wondering if the wx library has a type of "Decima...
by jmason1182
Mon Aug 18, 2008 6:59 pm
Forum: C++ Development
Topic: Quickie: How can I declare a wxDateTime object as invalid?
Replies: 1
Views: 508

Nevermind. I figured out that setting it to wxInvalidDateTime will make it invalid.... I had another function that was being called every time that set it to 0. That was causing it to be Dec 31, 1969. I changed it in all places to be wxInvalidDateTime and it works now. So thanks for your help... me.
by jmason1182
Mon Aug 18, 2008 6:34 pm
Forum: C++ Development
Topic: Quickie: How can I declare a wxDateTime object as invalid?
Replies: 1
Views: 508

Quickie: How can I declare a wxDateTime object as invalid?

I have some simple code that needs to check if something is suspended. The function below gives an example of how I am using it: bool isSuspended(){ return (m_isSus || (m_susDate.isValid() && m_susDate.IsEarlierThan(wxDateTime::Now())))); } This code always returns true. Upon some wxLog statements a...
by jmason1182
Wed Jun 25, 2008 3:38 pm
Forum: Component Writing
Topic: Issues with Enhanced wxTreeListCtrl
Replies: 12
Views: 4875

And plain and simply the functions were defined, but not implemented. SO I added them... they are simple - void wxTreeListMainWindow::SetItemChecked (const wxTreeItemId& itemId, const int column, bool checked) { wxCHECK_RET (itemId.IsOk(), _T("invalid tree item")); wxClientDC dc (this); wxTreeListIt...
by jmason1182
Wed Jun 25, 2008 3:30 pm
Forum: Component Writing
Topic: Issues with Enhanced wxTreeListCtrl
Replies: 12
Views: 4875

I changed the format strings of some sscanf's and some wxString::Format from %d to %ld and changed the float t to a long int t to get rid of the warning: int format, float arg (arg 3) warning: converting to `long int' from `float' warning: int format, long int arg (arg 2) warning: int format, float ...
by jmason1182
Wed Jun 25, 2008 3:10 pm
Forum: Component Writing
Topic: Issues with Enhanced wxTreeListCtrl
Replies: 12
Views: 4875

And I figured that the intent was to return a wxTreeListItemType that made sense for an incomplete item... which tells me that the 0 needs to be a blank wxTreeListItemType(). ( I could be wrong... guru would know) This took care of the invalid cast error: wxCHECK_MSG (itemId.IsOk(), wxTreeListItemTy...
by jmason1182
Wed Jun 25, 2008 3:02 pm
Forum: Component Writing
Topic: Issues with Enhanced wxTreeListCtrl
Replies: 12
Views: 4875

Second error is the validator private error... Thanks to phlox81, I just altered the treelistctrl.cpp file with this: class wxEditLongValidator : public wxValidator { long *val; public: wxEditLongValidator(long* val); wxEditLongValidator(const wxEditLongValidator& copy):val(val){}; wxObject* Clone()...
by jmason1182
Wed Jun 25, 2008 3:00 pm
Forum: Component Writing
Topic: Issues with Enhanced wxTreeListCtrl
Replies: 12
Views: 4875

First off, I found a post (http://forums.wxwidgets.org/viewtopic.php?t=2999) that said wxGetInstance is in an undocumented header (and undocumented function)

Code: Select all

ifdef __WXMSW__
     #nclude "wx/msw/private.h"
endif
So that takes care of 1 error.
by jmason1182
Wed Jun 25, 2008 2:56 pm
Forum: Component Writing
Topic: Issues with Enhanced wxTreeListCtrl
Replies: 12
Views: 4875

OKay, now it's been a few years since this post was continued. But I am experiencing the same issues with this control as they were in 2004.... I need to get the checkbox to show up in column one... so I changed from an original version to the new version so I can use the new features. Now, I get HD...