Hello, I can not input text into text field on GUI window created by G4P in case if the main (sketch) window uses P3D. Please help to solve this issue.
Example code: `
// Need G4P library
import g4p_controls.*;
public void setup(){
size(480, 320, P3D);
createGUI();
customGUI();
// Place your setup code here
}
public void draw(){
background(230);
}
// Use this method to add additional statements
// to customise the GUI controls
public void customGUI(){
}
`
gui `
synchronized public void win_draw1(GWinApplet appc, GWinData data) { //_CODE_:window1:248571:
appc.background(230);
} //_CODE_:window1:248571:
public void textfield2_change1(GTextField source, GEvent event) { //_CODE_:textfield2:400022:
println("textfield2 - GTextField >> GEvent." + event + " @ " + millis());
} //_CODE_:textfield2:400022:
// Create all the GUI controls.
// autogenerated do not edit
public void createGUI(){
G4P.messagesEnabled(false);
G4P.setGlobalColorScheme(GCScheme.BLUE_SCHEME);
G4P.setCursor(ARROW);
if(frame != null)
frame.setTitle("Sketch Window");
window1 = new GWindow(this, "Window title", 0, 0, 240, 120, false, JAVA2D);
window1.addDrawHandler(this, "win_draw1");
textfield2 = new GTextField(window1.papplet, 40, 45, 160, 30, G4P.SCROLLBARS_NONE);
textfield2.setOpaque(true);
textfield2.addEventHandler(this, "textfield2_change1");
}
// Variable declarations
// autogenerated do not edit
GWindow window1;
GTextField textfield2;
`