Skip to main content
LDoyl.1
Associate II
October 30, 2020
Solved

How does the "CustomKeyboard" demo work? I have copied the appropriate files to my project and modified them to accommodate the stretched graphic to fit on the '469i-disco board (800 x 480). When I switch to the screen with the keyboard, error...

The program crashes in Framework/source/touchgfx/containers.cpp . I can find the where the error is generated here but haven't a clue why. At this stage, I am working in the simulator and building the gui with the idea of getting the gui built and then start adding the functionality. I am not sure what part of the project to zip up and send as I am sure you don't need the entire folder. I tried zipping just the "TouchGFX" folder which wouldn't properly open on another computer.

Any guidance would be much appreciated.

This topic has been closed for replies.
LDoyl.1
LDoyl.1Best answer
Associate II
November 2, 2020

I found the problem. In the sample Keyboard GUI included with TouchGFX 4.15 (Edit/Import GUI), the keyboard is not placed in the screen, instead MainView.cpp calls the image and locates on the screen with the following code:

MainView::MainView()

{

   keyboard.setPosition(80, 16, 320, 240);

   add(keyboard);

}

In my program, i have the keyboard placed as part of the screen along with other widgets. When I commented out the code in the braces, the project now compiles. The problem I was having was due to attempting to place the same image twice.

2 replies

MM..1
Super User
October 31, 2020

How is version of Touch and IDE? I mean compile is without errors, but maybe you need check too warnings.

Around zip project , reply is complicated.

LDoyl.1
LDoyl.1AuthorBest answer
Associate II
November 2, 2020

I found the problem. In the sample Keyboard GUI included with TouchGFX 4.15 (Edit/Import GUI), the keyboard is not placed in the screen, instead MainView.cpp calls the image and locates on the screen with the following code:

MainView::MainView()

{

   keyboard.setPosition(80, 16, 320, 240);

   add(keyboard);

}

In my program, i have the keyboard placed as part of the screen along with other widgets. When I commented out the code in the braces, the project now compiles. The problem I was having was due to attempting to place the same image twice.