Search found 47 matches

by Ste2008
Wed May 28, 2008 2:44 pm
Forum: C++ Development
Topic: How do i create a file
Replies: 3
Views: 744

This is the error I get

Code: Select all

cannot call member function `bool wxFile::Create(const wxChar*, bool, int)' without object
I dont understand what it means by adding an object, as I just want the function to create a file[/quote]
by Ste2008
Wed May 28, 2008 2:29 pm
Forum: C++ Development
Topic: How do i create a file
Replies: 3
Views: 744

How do i create a file

Hi all,
sorry for stupid question looking to create a file to write to, and am using wxFile but cant gat it to work what am i doing wrong

wxFile::Create(SaveDialog->GetFilename(), true,wxS_DEFAULT);

Thanx in advance
by Ste2008
Sat May 03, 2008 3:19 pm
Forum: C++ Development
Topic: Is it possible to copy and existing text file and rename it
Replies: 5
Views: 736

Hi max, I tried what you said and the program compiles okay but when I open a file and then use the save as function to copy the file in another location the program crashes and i dont know why, can you suggest what i maybe doing wrong?? void MainFrame::SaveFileAs(wxCommandEvent& WXUNUSED(event)) { ...
by Ste2008
Sat May 03, 2008 11:25 am
Forum: C++ Development
Topic: Is it possible to copy and existing text file and rename it
Replies: 5
Views: 736

Is it possible to copy and existing text file and rename it

Hi all I am looking to use the wxFileDialog and create a save-as function. As part of this function i want to copy an existing file already opened to a new location(e.g from my documents to my desktop)and be able to give the copied file the name entered in by the user in the dialog window. Firstly w...
by Ste2008
Tue Apr 29, 2008 12:05 pm
Forum: C++ Development
Topic: Is it possible to just rename a file
Replies: 2
Views: 1114

Thanks
Yea sorry i forgot the tags
by Ste2008
Tue Apr 29, 2008 11:39 am
Forum: C++ Development
Topic: Is it possible to just rename a file
Replies: 2
Views: 1114

Is it possible to just rename a file

Hi all, I am reading in a file and manipulating the data being read in to display the data differently in a text box. My problem is when i save the file it saves what is displayed in the text box but thats not how my open file reads in the data. So i was wondering is it possible when i do a save or ...
by Ste2008
Sun Apr 27, 2008 10:28 am
Forum: C++ Development
Topic: How do I automatically adjust the screen size of app
Replies: 7
Views: 1341

Hi auria,
i tried using the form builder, but as soon as i apply it the frame, it just makes it the same size of the frame i dont understand how i can visually split it up??
by Ste2008
Sun Apr 27, 2008 10:24 am
Forum: C++ Development
Topic: Cant see the problem??
Replies: 8
Views: 1142

Hey max

I tried your suggestion, but its not compiling has a problem with your dynamic casting, and still doesnt know what function to call, should i perform anything in the cpp file for this constructor to work??
by Ste2008
Sat Apr 26, 2008 6:40 pm
Forum: C++ Development
Topic: Cant see the problem??
Replies: 8
Views: 1142

The MainFrame Panel is as follows

Code: Select all

WxPanel1 = new wxPanel(this, ID_WXPANEL1, wxPoint(0,29), wxSize(975,550));
and on this lies Panel3

Code: Select all

WxPanel3 = new wxPanel(WxPanel1, ID_WXPANEL3, wxPoint(1,292), wxSize(500,260));
this panel is then used fot the wxtreectrl
by Ste2008
Sat Apr 26, 2008 6:25 pm
Forum: C++ Development
Topic: Cant see the problem??
Replies: 8
Views: 1142

My original code was as follows: WxTreeCtrl1 = new wxTreeCtrl(WxPanel3, ID_WXTREECTRL1, wxPoint(1,-3), wxSize(487,260), wxTR_HAS_BUTTONS); But I wanted create functions for this Tree, to allow me to display different nodes or children on the tree at different stages throughout my application This is...
by Ste2008
Sat Apr 26, 2008 6:09 pm
Forum: C++ Development
Topic: How do I automatically adjust the screen size of app
Replies: 7
Views: 1341

Hi Max,

Im kinda new to all this would it be maybe possible to give me a small example to get me started??

From reading about sizers I came across wxboxsizer would that be suitable for what i am looking to do here??

Thanx for advice
Ste
by Ste2008
Sat Apr 26, 2008 4:09 pm
Forum: C++ Development
Topic: How do I automatically adjust the screen size of app
Replies: 7
Views: 1341

How do I automatically adjust the screen size of app

Hi all, I have created a gui, and have all the windows and panels to a size I am happy with when the application opens initially. What I am now looking to do is be able resize my app when it is running and the panels to change in size in relation the new size of the main app or frame size These are ...
by Ste2008
Sat Apr 26, 2008 11:38 am
Forum: C++ Development
Topic: Cant see the problem??
Replies: 8
Views: 1142

Still gives me the same error, any other suggestions??

Would I need to create a constructor for wxTreeCtrl, or would the default constructor be used here??
Thanx
Ste
by Ste2008
Sat Apr 26, 2008 11:16 am
Forum: C++ Development
Topic: Cant see the problem??
Replies: 8
Views: 1142

Cant see the problem??

Hi there, I am creating a wxTreeCtrl tree, in a class called TreeView. The header file is shown below: #include <wx/wx.h> #include <wx/treectrl.h> #ifndef __TREEVIEWFrame_H // Make sure to only declare these classes once #define __TREEVIEWFrame_H class TreeView : public wxTreeCtrl { public: TreeView...
by Ste2008
Thu Apr 17, 2008 10:53 pm
Forum: C++ Development
Topic: How do I add data to labels in wxTreectrl
Replies: 6
Views: 1303

I still am unable to add data to the tree, I am using the code as suggested and it compiles fine but it still doesnt add the string "node-data" to the tree, all that just prints out is the label. What am i doing wrong?? WxTreeCtrl1 = new wxTreeCtrl(WxPanel3, ID_WXTREECTRL1, wxPoint(1,-3), wxSize(487...