Search found 109 matches
- Fri Mar 10, 2017 7:17 pm
- Forum: C++ Development
- Topic: wxTextCtrl Doesn't Display a Cursor
- Replies: 13
- Views: 3050
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 ...
- Fri Mar 10, 2017 6:21 pm
- Forum: C++ Development
- Topic: wxTextCtrl Doesn't Display a Cursor
- Replies: 13
- Views: 3050
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 ...
- Fri Mar 10, 2017 5:43 pm
- Forum: C++ Development
- Topic: wxTextCtrl Doesn't Display a Cursor
- Replies: 13
- Views: 3050
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,...
- Fri Mar 10, 2017 4:23 pm
- Forum: C++ Development
- Topic: wxTextCtrl Doesn't Display a Cursor
- Replies: 13
- Views: 3050
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...
- Wed Mar 01, 2017 7:21 pm
- Forum: General Development
- Topic: How to Run Code when the Tab Key is Pressed?
- Replies: 2
- Views: 2838
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
And they worked the first time, too! How often does THAT happen?
Thank you, doublemax!
Colleen
- Wed Mar 01, 2017 6:25 pm
- Forum: General Development
- Topic: How to Run Code when the Tab Key is Pressed?
- Replies: 2
- Views: 2838
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...
- Mon Apr 25, 2016 12:50 pm
- Forum: C++ Development
- Topic: How to Change the Forms Displayed in wxWidgets
- Replies: 2
- Views: 1005
Re: How to Change the Forms Displayed in wxWidgets
Do you want to do this as a learning exercise or do you just want to solve that particular task as easy as possible? In the latter case check one of the "book control" classes. In your case wxSimpleBook might be exactly what you need: http://docs.wxwidgets.org/trunk/classwx_simplebook.htm...
- Fri Apr 22, 2016 8:14 pm
- Forum: C++ Development
- Topic: How to Change the Forms Displayed in wxWidgets
- Replies: 2
- Views: 1005
How to Change the Forms Displayed in wxWidgets
I am using CodeLite and creating wxWidgets programs, with wxCrafter as my GUI generator. I am a beginner with all three software packages. I'm creating a test program to learn how to create pages and change the focus from one to the other. Each page contains a "Next" button and a "Pre...
- Thu Apr 21, 2016 8:36 pm
- Forum: C++ Development
- Topic: Need wxW Syntax for Two-Step Keyboard Shortcut
- Replies: 4
- Views: 1641
Re: Need wxW Syntax for Two-Step Keyboard Shortcut
There are two different mechanics at work here. Keyboard shortcuts are always one command, like Ctrl-O for open and they work even if the file menu is not open. The fact that ALT-F opens the file menu is a native Windows behavior if the "File" menu is written as "&File". In ...
- Thu Apr 21, 2016 7:44 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Undefined References in Plain C DLL Compilations
- Replies: 2
- Views: 1734
Re: Undefined References in Plain C DLL Compilations
Please show the headerfile of the DLL that contains the exported variables and functions. Thank you for reading this message, doublemax. I had two problems that caused these errors. 1. I only had the *.dll version of the file in the default directory. I also found the *.lib version of the file and ...
- Thu Apr 21, 2016 7:20 pm
- Forum: C++ Development
- Topic: Need wxW Syntax for Two-Step Keyboard Shortcut
- Replies: 4
- Views: 1641
Need wxW Syntax for Two-Step Keyboard Shortcut
Hi! I am creating a menu bar in wxWidgets , using CodeLite . I am having trouble assigning a keyboard shortcut to my Menu Item, and I wonder if someone can help me. In this menu bar, I have a File menu option, and under that, I have the menu items New, Open, Save, Save As, etc. I would like to assig...
- Mon Apr 18, 2016 5:52 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Compiler Warnings During wxWidgets 3.1.0 Compilation
- Replies: 10
- Views: 5143
Re: Compiler Warnings During wxWidgets 3.1.0 Compilation
Hi, Colleen, [snip] Is there a reason you build the library as 'monolithic'? This type of build is not tested very often and usually is not preferable. The 'Unicode' flag is obsolete. [snip]... All official builds of wx are now UNICODE-only. In regards to gcc version - I don't know what is your int...
- Mon Apr 18, 2016 5:25 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Undefined References in Plain C DLL Compilations
- Replies: 2
- Views: 1734
Undefined References in Plain C DLL Compilations
Hi. I have a CodeLite workspace that contains two plain C projects. The projects both compile to *.dlls. One project, called Essentials (global variables and utility functions) is compiled first into Essentials.dll. The second project, called Reader, invokes Essentials.dll in its compilation. I am b...
- Thu Apr 14, 2016 1:31 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Compiler Warnings During wxWidgets 3.1.0 Compilation
- Replies: 10
- Views: 5143
Re: Compiler Warnings During wxWidgets 3.0.2 Compilation
Please post the exact command line you used to build wxWidgets. Also, when it comes to GCC + wxWidgets, the latest compiler version is not always the best. TDM-GCC 4.8.1 is known to work. Hi, doublemax. Thanks for the tip on TDM-GCC 4.8.1. Here is the batch file I used to build the 32-bit Debug and...
- Thu Apr 14, 2016 1:14 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Compiler Warnings During wxWidgets 3.1.0 Compilation
- Replies: 10
- Views: 5143
Re: Compiler Warnings During wxWidgets 3.0.2 Compilation
Hi, Colleen, You title says it 3.0.2 but the software list at the end says 3.1.0. Please correct it. ;-) Thank you. Hi, OneEyeMan. Done! I apologize for the conflict. I started with wxWidgets version 3.0.2. Then I uninstalled wxWidgets and installed 3.1.0, hoping the warnings would go away. They di...