Search found 64 matches

by marcusbarnet
Wed Oct 02, 2019 5:54 pm
Forum: C++ Development
Topic: Clear a WxTextCtrl after few seconds
Replies: 7
Views: 336

Re: Clear a WxTextCtrl after few seconds

I can't click a button in order to make the timer starts.

The timer should starts automatically when the first character is typed in the text control.

I do not know how to do that.
by marcusbarnet
Wed Oct 02, 2019 5:03 pm
Forum: C++ Development
Topic: Clear a WxTextCtrl after few seconds
Replies: 7
Views: 336

Clear a WxTextCtrl after few seconds

I have an application that reads data from a magnetic card reader. It starts with a WxTextCtrl with focus ON so the cursor is already in position and when the user swipes the card, all the characters are automatically typed in the text control. The problem is that sometimes the swiping is not correc...
by marcusbarnet
Tue Oct 01, 2019 9:47 pm
Forum: C++ Development
Topic: Reload WxWidgets session
Replies: 15
Views: 451

Re: Reload WxWidgets session

I solved the problem with the window size by setting it after loading the new frame.
by marcusbarnet
Tue Oct 01, 2019 9:52 am
Forum: C++ Development
Topic: Reload WxWidgets session
Replies: 15
Views: 451

Re: Reload WxWidgets session

Thank you a lot for your help and support! I did in this way: void ThirdPage::Onbutton_homeClick(wxCommandEvent& event) { firstpage = new ProjectFrame(NULL, -1, ); //here we create 1 page firstpage->Show(true); //show it this->Destroy(); //and destroy page3 //then you do not need to modify destructo...
by marcusbarnet
Mon Sep 30, 2019 10:41 pm
Forum: C++ Development
Topic: Reload WxWidgets session
Replies: 15
Views: 451

Re: Reload WxWidgets session

Can you provide me an example for the first page, please?

I'm not able to understand how to create Frame2 when I destroy frame1.

Code: Select all

ProjectFrame::~ProjectFrame()
{
    //(*Destroy(ProjectFrame)
    //*)
   
    }
by marcusbarnet
Mon Sep 30, 2019 10:14 pm
Forum: C++ Development
Topic: Reload WxWidgets session
Replies: 15
Views: 451

Re: Reload WxWidgets session

I can't change everything at this point. I just would like to find a solution without changing a lot my current application. On frame3, I did this: void ThirdPage::Onbutton_homeClick(wxCommandEvent& event) { firstpage->Show(true); // firstpage->tessera->Clear() this->Hide(); firstpage->Destroy(); .....
by marcusbarnet
Mon Sep 30, 2019 9:52 pm
Forum: C++ Development
Topic: Reload WxWidgets session
Replies: 15
Views: 451

Re: Reload WxWidgets session

No, the user navigate through the frames by filling some forms and other operations. The application works on a Kiosk, so he user does the login, insert some data and then when he finishes he can click on a "DONE" button to come back to Frame1 and allow other users to make the same procedure. At the...
by marcusbarnet
Mon Sep 30, 2019 8:46 pm
Forum: C++ Development
Topic: Reload WxWidgets session
Replies: 15
Views: 451

Re: Reload WxWidgets session

When the user comes back to frame1, all the text controls are already filled with old data and all the variables are set to old values.

How can I destroy the frames and rebuild them again?
by marcusbarnet
Mon Sep 30, 2019 7:50 pm
Forum: C++ Development
Topic: Reload WxWidgets session
Replies: 15
Views: 451

Reload WxWidgets session

Hi to all, I have a WxWidgets application in C++ under Ubuntu and I'm using three frames. The operating flow is very simple: Frame1 -> Frame2 -> Frame3 After frame3, the user automatically comes back to Frame1. I just use Show() and Hide() to display only one frame per time. All the frames have some...
by marcusbarnet
Thu Aug 29, 2019 8:58 am
Forum: C++ Development
Topic: Parse a string with WxWidgets
Replies: 1
Views: 138

Parse a string with WxWidgets

I'm developing a WxWidgets application under Ubuntu and I'm using CodeBlocks as IDE. I would like to: read the data stored in a magnetic card band check if they are OK parse the string in order to get the code, the name and the surname I'm using a USB magnetic card reader and I set a TextCtrl as "fo...
by marcusbarnet
Sun Jul 28, 2019 7:15 pm
Forum: C++ Development
Topic: How to open new frame from button
Replies: 19
Views: 724

Re: How to open new frame from button

I'm able to correctly compile the sample by using line commands, but I still get the errors when I try to compile it by using Codeblocks. amples/wizard/wizard.cpp:20: ./../../include/wx/msw/chkconf.h:27:10: error: #error "wxUSE_WINRT must be defined." # error "wxUSE_WINRT must be defined." ^~~~~ ./....
by marcusbarnet
Sun Jul 28, 2019 4:14 pm
Forum: C++ Development
Topic: How to open new frame from button
Replies: 19
Views: 724

Re: How to open new frame from button

I was trying to compile the notebook example by using CodeBlocks on Ubuntu. I imported the project into CodeBlocks by using the import utility and by selecting the visual studio project file. Everything loaded correctly, but when I try to build the project, I get this error: In file included from /u...
by marcusbarnet
Sun Jul 28, 2019 9:00 am
Forum: C++ Development
Topic: How to open new frame from button
Replies: 19
Views: 724

Re: How to open new frame from button

What is your suggestion? Would it be better for me to switch to wxformbuilder?

I spent this morning looking for a solution but I really found almost nothing about wxlistbook. It is so strange to me..
by marcusbarnet
Sun Jul 28, 2019 8:33 am
Forum: C++ Development
Topic: How to open new frame from button
Replies: 19
Views: 724

Re: How to open new frame from button

I've read that wxlistbook can have some problems with wxsmith even if on the code blocks page it says that it is supported: http://wiki.codeblocks.org/index.php/Co ... h_features

May be I should switch to wxformbuilder.
I currently can't see the wxlistbook icon container in code blocks.
by marcusbarnet
Sat Jul 27, 2019 8:50 pm
Forum: C++ Development
Topic: How to open new frame from button
Replies: 19
Views: 724

Re: How to open new frame from button

Thank you, wxSimplebook seems very close to what I would like to obtain.

I looked on google, but I wasn't able to find any good tutorial to understand how to implement it. I only found the class reference but it is too hard for me to derive an usable code from there.