Hi all,
I'm finding some differences between the code that I run "live" and that one from the exported application.
to be simple I have two main differences:
one is in the main window dimensions and font. they differ a bit and it is difficult to imagine how to build the graphics to make them neat.
here two pics to understand what I mean:
The run version.
The export application version.
And then another issue come out using the G4P.selectOutput / Input function, which calls two different windows in the two different cases:
this is the dialog opened on run.
and this is the dialog opened by the exported application:
As you can see they differ a lot..
Does anyone know this could be corrected? any ideas?
Thanks, Davide.
EDIT: Moved because i posted in the wrong section.
Hi I have a program in which i need to enter a serie of data.
Here's a pic:
I'm using G4P as TextFields Library, so my datas are all Strings. If you see the window on the right there are lines composed of 7 fields, and I can add them, or delete them let's say to a max number of 20 lines. then I need to save those values in a file, and reload different saved files when I need them.
Which is the simplest way to do a thing like this?
Hi, I would like to know if there is a way to erase from the screen a GTextField.
I need this because I want to add a line of GTextFields when i click on a button, and then if i click on another button i want to delete the last line of GTextFields.
I tried to just setVisible(false) them, but it says I can't.
Tried also with MyTextField.dispose(), and it is disposed, but not erased from the screen.
Hi I want to use a second window, using GWindow, to plot a graph with realtime input. (let's say mouse position)
The problem is that also if I don't put 'background()' neither in the main draw() nor in the GWindow draw(), the second window always refresh as if i was calling background() each cycle.
This way I cannot plot a graph, because each cycle the GWindow is blanked.
Can someone help me?
Linuxmint 13 and latest processing/G4P library.
here is some code to reproduce the issue:
Hi, I've looked around in the forum, but i can't figure out how to do it correctly.
I have several GTextFields, and i use them to input numbers, which are then sent on a serial protocol one-character-per-time, so it is convenient for me to have them as Strings.
Now I would like to avoid sending characters other than numbers (0 to 9), so which is the best way to find out characters other than numbers in a String?
I was thinking about converting the string to a number, and see if it return an error, but I'm quite sure there must be a better way..
Hi trying to use a knob here to set an integer value between let's say 0 and 50.
added a Label below the knob to print the value, but it seem that does something wrong while converting, because the label prints a value between 0 and 1. if i set the type of value for the knob to DECIMAL (0.0-50.0) the label prints 0.0 to 1.0.
If i do "print (myKnob.getValueI())" it returns the right value (0-50)
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:
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); } } } } }
I've tried the same using GEvent.CHANGED and it works.
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).