Search found 88 matches

by ColleenKobe
Fri May 19, 2017 11:19 am
Forum: General Development
Topic: Software Architecture for Reusable Code
Replies: 4
Views: 1031

Re: Software Architecture for Reusable Code

[snip]Just write your class like you would any other class. You drop it into a project by "add existing item" or the equivalent in your IDE, or even just compiling it as a library then #including the relevent headers and linking against it when you need it. but the point here I suppose is to be gen...
by ColleenKobe
Wed May 17, 2017 3:01 pm
Forum: General Development
Topic: Software Architecture for Reusable Code
Replies: 4
Views: 1031

Software Architecture for Reusable Code

I am writing a class in C++ using wxWidgets and wxCrafter, minGW and CodeLite (see versions below). The class will contain procedures to build wxDialogs with controls to call procedures and functions to process data. Ordinary tasks. My project engineer wants me to write the class so that I can "just...
by ColleenKobe
Thu May 11, 2017 6:25 pm
Forum: Compiler / Linking / IDE Related
Topic: compiler error C1083 for windows.h
Replies: 1
Views: 1205

Re: compiler error C1083 for windows.h

I realize this posting is a year and a half old, but I thought I would answer anyway. The error message is telling you that wxWidgets needs windows.h to compile your program, but wxWidgets can't find windows.h. My guess is that windows.h resides somewhere on your computer, but in a directory that wx...
by ColleenKobe
Thu May 11, 2017 5:32 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling test_gui fails
Replies: 5
Views: 960

Re: Compiling test_gui fails

You can find the source code for TestFactoryRegistry.h at http://cppunit.sourceforge.net/doc/cvs/_test_factory_registry_8h-source.html You'll have to make a new file on your own computer in cppunit/extensions, assuming you have that directory somewhere. TestRunner.h source code can be found at http:...
by ColleenKobe
Wed Apr 19, 2017 11:44 am
Forum: C++ Development
Topic: Trouble Instantiating wxPopupWindow
Replies: 2
Views: 465

Re: Trouble Instantiating wxPopupWindow

I don't see any wxPopupWindow in the code you posted, so i'm not sure if *your* wxPopupWindow is the same i have in mind. In general you'll create a popup window in the moment you want to display it. And when it closes it destroys itself. Oh. I see. Well, that would be easy enough. From the code it...
by ColleenKobe
Tue Apr 18, 2017 7:15 pm
Forum: C++ Development
Topic: Trouble Instantiating wxPopupWindow
Replies: 2
Views: 465

Trouble Instantiating wxPopupWindow

I am trying to create a wxPopupWindow in Windows, in CodeLite , using wxCrafter to design my pages. The program compiles and builds, but when I execute it, the code to display the wxPopupWindow does not run, because the pointer to the class is null. I had some code in main.cpp to instantiate the cla...
by ColleenKobe
Wed Apr 12, 2017 2:15 pm
Forum: C++ Development
Topic: wxTextCtrl Doesn't Display a Cursor
Replies: 13
Views: 1823

Re: wxTextCtrl Doesn't Display a Cursor

if I remove the wxEVT_SET_FOCUS and wxEVT_KILL_FOCUS events, what should I do with the code in those procedures? That's only for a test to check if this is related to the problem. It wasn't meant as a permanent solution. Oh. Sorry, I misunderstood. The focus is in the cell for Channel 1, column "Di...
by ColleenKobe
Wed Apr 12, 2017 2:08 pm
Forum: C++ Development
Topic: wxTextCtrl Doesn't Display a Cursor
Replies: 13
Views: 1823

Re: wxTextCtrl Doesn't Display a Cursor

So for sure missing an event.Skip() call is the reason why you don't see the cursor there. You were right! I added the event.Skip (true); at the top of the local Set_Focus and Kill_Focus procedures, and now I have a cursor. Thank you. I can't imagine how I would have learned about event.Skip otherw...
by ColleenKobe
Tue Apr 11, 2017 3:08 pm
Forum: C++ Development
Topic: wxTextCtrl Doesn't Display a Cursor
Replies: 13
Views: 1823

Re: wxTextCtrl Doesn't Display a Cursor

#7 is not necessary, you should pass that parameter to the command line Okay. #8 I've never seen that before, what's it supposed to do? I don't know. I found a batch file for this online and I just copied it. This is what clueless people do. :-( copy %WXWIN%\include\wx\msw\setup.h %WXWIN%\include\w...
by ColleenKobe
Fri Mar 10, 2017 7:17 pm
Forum: C++ Development
Topic: wxTextCtrl Doesn't Display a Cursor
Replies: 13
Views: 1823

Re: wxTextCtrl Doesn't Display a Cursor

Ok, I presume you used MinGW compiler of some flavor, right? Which command{s} did you use to compile the library? Yes, I used MinGW. Here is the batch file I created to compile wxWidgets. I know it's wordy and long and a lot of it is commented out. But I thought that I'd have to help my co-workers ...
by ColleenKobe
Fri Mar 10, 2017 6:21 pm
Forum: C++ Development
Topic: wxTextCtrl Doesn't Display a Cursor
Replies: 13
Views: 1823

Re: wxTextCtrl Doesn't Display a Cursor

Actually, no, I have no idea how to compile those samples. I tried to compile them when I first downloaded wxWidgets, but I got confused. There were lots of mystery (to me) abbreviations, and the directions required me to know which ones I needed, and I didn't. I wasn't sure what I was supposed to ...
by ColleenKobe
Fri Mar 10, 2017 5:43 pm
Forum: C++ Development
Topic: wxTextCtrl Doesn't Display a Cursor
Replies: 13
Views: 1823

Re: wxTextCtrl Doesn't Display a Cursor

Thank you for replying, ONEEYEMAN. You're talking about the sample code that came with wxWidgets, right? On my computer, they text samples are installed in C:\wxWidgets\samples\text. Actually, no, I have no idea how to compile those samples. I tried to compile them when I first downloaded wxWidgets,...
by ColleenKobe
Fri Mar 10, 2017 4:23 pm
Forum: C++ Development
Topic: wxTextCtrl Doesn't Display a Cursor
Replies: 13
Views: 1823

wxTextCtrl Doesn't Display a Cursor

I have written a short program to give me practice navigating among text fields and buttons on the screen. Everything works fine, as far as moving from field to field, and typing, changing, and saving values goes. The one thing that puzzles me is that there is no cursor displayed in the wxTextCtrl f...
by ColleenKobe
Wed Mar 01, 2017 7:21 pm
Forum: General Development
Topic: How to Run Code when the Tab Key is Pressed?
Replies: 2
Views: 1984

Re: How to Run Code when the Tab Key is Pressed?

BEAUTIFUL! The wxEVT_SET_FOCUS and wxEVT_KILL_FOCUS worked perfectly!
And they worked the first time, too! How often does THAT happen?

Thank you, doublemax!

Colleen
by ColleenKobe
Wed Mar 01, 2017 6:25 pm
Forum: General Development
Topic: How to Run Code when the Tab Key is Pressed?
Replies: 2
Views: 1984

How to Run Code when the Tab Key is Pressed?

I have three wxTextCtrl boxes. I want the user to be able to enter text into a box, and then press the Enter or Tab key to move to the next box. On leaving the first box, I want to do the following: Execute a function to verify what the user typed is a legal value. If the value is legal: save the ne...