Click to See Complete Forum and Search --> : wxWindows - InsertSeperator() Error...
jesseray
August 10th, 2004, 03:38 AM
I am using Dev-C++ (4.9.9.0) with the wxWindows devpak and everything seems to be functional except for the InsertSeperator() and AppendSeperator() commands. The error for AppendSeperator() is...
"In constructor `MyFrame::MyFrame(const wxString&, const wxPoint&, const wxSize&, long int)': 'AppendSeperator' undeclared (first use this function)"
I do not know why it is throwing this error. I can create the menu bar, menus, and append menu items to the menu, but I cannot append a seperator to the menu. Here's the source code...
http://megamanxplosion.50megs.com/code.txt
Help would be appreciated :)
Latem
August 10th, 2004, 07:03 AM
Your link doesnt work. At least I get a forbidden when I click to it.
Can you just post the contructor code here please.
Also what are those two functions. I cant seem to find them in the documentation for wxFrame or any of the parent classes.
Make sure you are including everything that you need.
You should at least have the following:
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
Also, you can try the wiki at wxwidgets website, and there is also a wxWidgets/Dev-C++ forum (http://g.yi.org/forum/list.php?13) although it seems to be down at the moment.
Good luck,
Latem
Philip Nicoletti
August 10th, 2004, 07:06 AM
I could not download your code to verify whether the mis-spelling is
just in the post or in your code ...
InsertSeparator() and AppendSeparator()
Latem
August 10th, 2004, 07:14 AM
Also, I just read again, and saw that you are using the devpak w/ dev-C++. The devpak is wxWindows 2.2.9, which was released on January 4th 2002!
You should really get the latest stable version, and use that. You won't be able to integrate it into Dev-C++ as nicely, but the improvements are worth it.
Latem
jesseray
August 10th, 2004, 12:59 PM
Latem (Post 1): Don't know why the link doesn't work, I verified it before I posted. Perhaps it just remembered where I was referred from (the site manager). Sorry about that, I just tried to find a quick spot to put the txt file for others to see, I didn't know that companies were so pathetic that they make you link to text files...
Philip: Duh! *bangs head on desk* I feel ashamed of myself lol. Problem solved! Thanks for pointing out my stupid mistake :)
Latem (Post 2): Yeah, I'm using a wxWindows devpack, but not the one that you are thinking of. I am using version 2.4.2. It's just a little bit outdated and I may consider upgrading, this is actually the first time I've gotten to play with wxWindows and an easy installation is what the doctor ordered, I don't want to spend a ton of time on a project I don't want to use. Anyways, do you know the major differences between the two versions? Do you know if they actually implement the status bar using the native windows component yet? The current status bar under XP themes really looks funky, hopefully they've fixed that.
Latem
August 10th, 2004, 06:24 PM
lol, I didnt see the spelling meistake neither.
I just assumed you are using the devpack on Dev-C++ website, cuz that's the only one I know of. Where did you get this devpack?
wxWindows isnt all that hard to install, you just have to build it that's all. I think the part that's more of a pain is having to write your own makefile. I am just too lazy, and never know how to write it right, even though there is a template thing for wxWidgets makefiles. Dev-C++ does that for you.
I don't know exactly what the changes are, I haven't used wxWidgets in some time. I am sure you can find the changes.txt on their website somewhere.
Finally, what's wrong with the statusbar? I dont remember it being weird or anything. Maybe I just never noticed. heh
Latem
jesseray
August 10th, 2004, 11:38 PM
lol, I didnt see the spelling meistake neither.
I just assumed you are using the devpack on Dev-C++ website, cuz that's the only one I know of. Where did you get this devpack?
http://michel.weinachter.free.fr/
Just install the imagelib devpack if you don't have it installed already, then install the wxWindows devpack. That's all there is to it.
I don't know exactly what the changes are, I haven't used wxWidgets in some time. I am sure you can find the changes.txt on their website somewhere.
Yeah, I looked through it just a little while ago, I didn't see any mention of the status bar, visually, being changed. It was 77kb worth of technical details and I basically skimmed over it :p
Finally, what's wrong with the statusbar? I dont remember it being weird or anything. Maybe I just never noticed. heh
It's not functionally wrong, just visually. wxWindows appears to draw a rectangle at the bottom of the window and fills it with the menu bar color. The XP visual style fills the status bar with a tiled bitmap, but wxWindows' status bar isn't really a status bar, just a drawn rectangle. That's the only difference, it doesn't change the way that the program works. It's just one of those little details that always irk me ;)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.