Search found 30 matches
- Tue Apr 09, 2019 8:01 pm
- Forum: C++ Development
- Topic: Textctrl OnBackspace Event Availabiliy
- Replies: 8
- Views: 1226
Re: Textctrl OnBackspace Event Availabiliy
You could catch the wxEVT_CHAR event (-> wxKeyEvent), but that shouldn't be necessary. The wxEVT_TEXT event should always be called when the value of the text field changes, that means also in response to backspace. But i think there is a more serious flaw in the code: totalgrades gets incremented ...
- Tue Apr 09, 2019 7:22 pm
- Forum: C++ Development
- Topic: Textctrl OnBackspace Event Availabiliy
- Replies: 8
- Views: 1226
Re: Textctrl OnBackspace Event Availabiliy
You could catch the wxEVT_CHAR event (-> wxKeyEvent), but that shouldn't be necessary. The wxEVT_TEXT event should always be called when the value of the text field changes, that means also in response to backspace. But i think there is a more serious flaw in the code: totalgrades gets incremented ...
- Tue Apr 09, 2019 7:06 pm
- Forum: C++ Development
- Topic: Textctrl OnBackspace Event Availabiliy
- Replies: 8
- Views: 1226
Re: Textctrl OnBackspace Event Availabiliy
Hi, This is a VERY BAD design . You should have a button on you frame which will read "Calculate" or some something like this. In the button pres event handler you will check whether all fields required hasw the values and then calculate the needed value. You can filter the characters typ...
- Tue Apr 09, 2019 1:44 pm
- Forum: C++ Development
- Topic: Textctrl OnBackspace Event Availabiliy
- Replies: 8
- Views: 1226
Textctrl OnBackspace Event Availabiliy
Hi guys i'm a beginner level wxwidgets programmer. i recently embarked on a small project that calculates your GPA based on Grades and Credit load and i stumbled upon a little bug, I use a 'OnTextCtrltext' function to automatically grab Values once input. my problem is in the case of the user making...
- Sat Apr 06, 2019 5:51 am
- Forum: C++ Development
- Topic: Communication between Main frame and New dialog
- Replies: 6
- Views: 1158
Re: Communication between Main frame and New dialog
Wow! it was so easy...
Thanks for the support sir.
Thanks for the support sir.
- Sun Mar 31, 2019 8:06 am
- Forum: C++ Development
- Topic: Communication between Main frame and New dialog
- Replies: 6
- Views: 1158
Re: Communication between Main frame and New dialog
Thanks Again Sir for your advice. I've tried all i can to make it work but to no avail. I tried creating methods one example: Settings dialog.cpp: Wxstring carrier1; void settinggsdialog::OnButton1Click(wxCommandEvent& event) { carrier1 = TextCtrl1->GetValue(); } wxString Getitout = carrier1; //...
- Tue Mar 26, 2019 5:53 am
- Forum: C++ Development
- Topic: Communication between Main frame and New dialog
- Replies: 6
- Views: 1158
Re: Communication between Main frame and New dialog
Thanks Very Much Sir, You've been a great help to me these past few months.
I'd be lieing if I said I understood your code straight away but I think I get your point. I'll start implementing this right now and I'll return feedback if I encounter any problems along the way.
Thanks Again Sir
I'd be lieing if I said I understood your code straight away but I think I get your point. I'll start implementing this right now and I'll return feedback if I encounter any problems along the way.
Thanks Again Sir
- Sun Mar 24, 2019 12:10 pm
- Forum: C++ Development
- Topic: Communication between Main frame and New dialog
- Replies: 6
- Views: 1158
Communication between Main frame and New dialog
Hi. I'm a newbie in Wxwidgets and I recently had this problem I'm Currently on a project of creating a GPA calculator for college students and I wanted to make it possible for the user to be able to input his or her courses via a settings button I created which opens up a dialog with a framework to ...
- Mon Jan 21, 2019 10:16 pm
- Forum: C++ Development
- Topic: wxfile name dialog
- Replies: 2
- Views: 708
Re: wxfile name dialog
I tried using the filedialog save property but it jus shows, I input a name and it displays an error. What kind of error did you get? Can you post full code for reproducing? Though, there is enough material with examples of using wxFileDialog you can just copy-paste code from there and fit it for y...
- Mon Jan 21, 2019 5:43 pm
- Forum: C++ Development
- Topic: wxfile name dialog
- Replies: 2
- Views: 708
wxfile name dialog
Hi I'm a beginner in wxwidgets/wxsmith programming, Thanks to this Awesome forum I was able to create my very first texteditor... My question is how can I be able to edit the filename before it's saved. I tried using the filedialog save property but it jus shows, I input a name and it displays an er...
- Thu Jan 17, 2019 7:26 pm
- Forum: C++ Development
- Topic: wxTextFile Confusion
- Replies: 4
- Views: 1469
Re: wxTextFile Confusion
Thanks I'll check on them..
- Thu Jan 17, 2019 11:48 am
- Forum: C++ Development
- Topic: wxTextFile Confusion
- Replies: 4
- Views: 1469
Re: wxTextFile Confusion
Thanks Very Much for your Reply and Advice, I really appreciate it! About your question. It Backfired in the sense I couldn't save a file with a user input file name... I tried so hard, even porting in string variables to replace the file name which obviously wasn't applicable and also the fstream c...
- Wed Jan 16, 2019 8:46 pm
- Forum: C++ Development
- Topic: wxTextFile Confusion
- Replies: 4
- Views: 1469
wxTextFile Confusion
Hi! I'm a newbie in wxwidgets, I use codeblocks as my IDE, I recently embarked on a project to create a sort of jotter like app for instantly saving texts and loading them with emphasis on speed... But that's another story. I originally started the project using basic C++ File save via fstream/ofstr...
- Wed Jan 09, 2019 9:06 pm
- Forum: C++ Development
- Topic: can't make use of string data type
- Replies: 1
- Views: 675
can't make use of string data type
Hi guys! I recently embarked on a project to create a simple jotter app. I use codeblocks. I planned on using C++'s basic txt file save due to the fact i'm working with texts bu i came across a problem; I was easily able to create a text editor that stored values or variables using save slots for sa...
- Wed Dec 19, 2018 6:48 pm
- Forum: C++ Development
- Topic: Wxbutton label font resize
- Replies: 6
- Views: 1743
Re: Wxbutton label font resize
Thanks. This is a little more complicated than it needs to be. The font you get from "Button1->GetFont()" is probably the same for all buttons, so you could just change the font size and then set this font for all buttons. There is however the problem that the buttons won't automatically ...