G4P GTextField. Cannot handle "Enter"
in
Contributed Library Questions
•
10 months ago
Hi I'm following my learning curve with this library, but i've encountered one problem.
I have a grid of GTextFields, and I can manage jumping to the next one using TAB with GTabManager, but I can't manage the ENTER key.
EDIT: also forgot to mention that SHIFT+TAB doesn't work.
What I tried is:
What am I missing?
By the way, I see the library creator looks for feedbacks on the Gui Creator Tool. I've tried downloading that but it doesn't run. tried on LinuxMint13, latest library and latest Processing (2.0b6..beta, not alfa).
Thanks, Davide.
I have a grid of GTextFields, and I can manage jumping to the next one using TAB with GTabManager, but I can't manage the ENTER key.
EDIT: also forgot to mention that SHIFT+TAB doesn't work.
What I tried is:
- void handleTextEvents(GEditableTextControl tc, GEvent event) {
for (int row = 1; row < 21; row++) {
for (int col = 1; col < 9; col++) {
if ((tc == PrgFlds[row][col]) && (event == GEvent.ENTERED)) {
if (PrgFlds[row][col].hasFocus()) {
PrgFlds[row][col].setFocus(false);
}
}
}
}
}
What am I missing?
By the way, I see the library creator looks for feedbacks on the Gui Creator Tool. I've tried downloading that but it doesn't run. tried on LinuxMint13, latest library and latest Processing (2.0b6..beta, not alfa).
Thanks, Davide.
1