Search found 81 matches

by guzzi_jones
Fri Apr 18, 2014 2:21 am
Forum: Compiler / Linking / IDE Related
Topic: linux to windows compiling
Replies: 4
Views: 1554

linux to windows compiling

So i setup my initial program on linux with codeblocks, wxwidgets 2.8 , and libpqxx library. Now i would like to compile the program on windows. I setup codeblocks, wxwidgets on windows. I get "wx/app.h cannot find file or directory" How do i set codeblocks on windows to find the wxwidgets libraries?
by guzzi_jones
Tue Apr 08, 2014 12:56 am
Forum: C++ Development
Topic: printf question
Replies: 3
Views: 1001

printf question

i am going through a tutorial and i see code like: wxString str = wxT("The history of my life"); wxPrintf(wxT("The string has %d characters\n"), str.Len()); myquestion is how do i read the %d? it seems like wxprintf is passed 2 variables, the first is a string and the second is str.len. how does %d ...
by guzzi_jones
Tue Mar 25, 2014 2:46 am
Forum: C++ Development
Topic: Add Scroll boxes around wxgrid
Replies: 6
Views: 1662

Re: Add Scroll boxes around wxgrid

aahhh. my bad.
after i drew the wxgrid i had:
Grid1->AutoSize();

which created a new size for the grid. All good now!
by guzzi_jones
Tue Mar 25, 2014 2:18 am
Forum: C++ Development
Topic: Add Scroll boxes around wxgrid
Replies: 6
Views: 1662

Re: Add Scroll boxes around wxgrid

As i can't just paste this code into a minimal sample to test it myself, i'll make a first blind guess: Grid1 = new wxGrid(Panel1, ID_GRID1, wxDefaultPosition, wxSize(516,209), wxVSCROLL|wxHSCROLL, _T("ID_GRID1")); BoxSizer2->Add(Grid1, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5)...
by guzzi_jones
Tue Mar 25, 2014 12:59 am
Forum: C++ Development
Topic: Add Scroll boxes around wxgrid
Replies: 6
Views: 1662

Re: Add Scroll boxes around wxgrid

better yet:
here is the svn link
[edit] [deleted]
by guzzi_jones
Mon Mar 24, 2014 11:48 pm
Forum: C++ Development
Topic: Add Scroll boxes around wxgrid
Replies: 6
Views: 1662

Re: Add Scroll boxes around wxgrid

editchain::editchain(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size) { //(*Initialize(editchain) wxBoxSizer* BoxSizer2; wxBoxSizer* BoxSizer1; wxFlexGridSizer* FlexGridSizer1; Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("id"));...
by guzzi_jones
Mon Mar 24, 2014 12:08 am
Forum: C++ Development
Topic: Add Scroll boxes around wxgrid
Replies: 6
Views: 1662

Add Scroll boxes around wxgrid

How do i add scroll boxes around a wxgrid. I have a wxgrid on my frame, but when the results are longer than the display i have no way to scroll down. Thanks as always very helpful. I attached a pic of what i explained. I tried to add the scroll attributes, but it did not help Grid1 = new wxGrid(Pan...
by guzzi_jones
Sat Mar 08, 2014 3:16 am
Forum: Announcements and Discoveries
Topic: data project
Replies: 1
Views: 1234

Re: data project

i now have a server setup with redmine, svn, postgresql database, vpn, raid 1.7 TB.

If there is any interest i would gladly forward you what i have so far in the business plan and also send along the link to the svn project.
by guzzi_jones
Tue Jan 21, 2014 1:48 am
Forum: C++ Development
Topic: wxchoice inheritance
Replies: 4
Views: 1722

Re: wxchoice inheritance

ok i just needed to add my code to a project with a main() call. thanks it works!
by guzzi_jones
Tue Jan 21, 2014 1:38 am
Forum: C++ Development
Topic: wxchoice inheritance
Replies: 4
Views: 1722

Re: wxchoice inheritance

thanks for the tip.
Now i am back at my original debug info above. If anyone has a sample of inheriting wxchoice using a header file and implementation file i would appreciate that.
as always thanks
by guzzi_jones
Mon Jan 20, 2014 2:31 am
Forum: C++ Development
Topic: wxchoice inheritance
Replies: 4
Views: 1722

Re: wxchoice inheritance

i put my 3 files in pastebin at http://pastebin.com/HuXLAwRi

now i get the error "undefined reference to "vtable for mychoice.""

any help appreciated.
by guzzi_jones
Tue Jan 14, 2014 1:56 am
Forum: C++ Development
Topic: wxchoice inheritance
Replies: 4
Views: 1722

wxchoice inheritance

I would like to create a new class called mychoice that inherits wxChoice. I would then like to load the choice using the constructor. Is ths a bad idea? i will be using this wxChoice other places in the program and I don't want to rewrite the code to load it for each form. Is this a good idea? I am...
by guzzi_jones
Thu Jan 09, 2014 3:10 am
Forum: C++ Development
Topic: add a wxchoice - name, code
Replies: 1
Views: 699

add a wxchoice - name, code

I have a database table like so: code, name a, a_description b, b_description. I want to fill a wxchoice with the values from this table. a_descdription will be shown in the wxchoice. when the user chooses a value i want to be able to grabe the code and use it to insert into another table. this seem...
by guzzi_jones
Tue Jan 07, 2014 1:34 am
Forum: Announcements and Discoveries
Topic: data project
Replies: 1
Views: 1234

data project

I have a pretty big project that i would like to see if there is interest in helping with. I would be setting up a ubuntu box with SVN, Redmine,wxwidgets,postgresql. I know an etl tool for the data transformation. It would be an open source project, but we would make money by coding data for wine su...
by guzzi_jones
Tue Dec 31, 2013 2:43 am
Forum: C++ Development
Topic: sort wxgrid
Replies: 1
Views: 1038

sort wxgrid

Is there a good sample of sorting a wxgrid ascending and descending in wxgrid 2.8 using c++.
Thanks.
I am learning a lot.