Loading...
Processing Forum
Recent Topics
All Forums
Move this topic
Forum :
Share your Work
Programming Questions
Core Library Questions
Contributed Library Questions
Android Processing
Processing with Other Languages
Integration and Hardware
Library and Tool Development
Events and Opportunities
General Discussion
Sub forum :
Move this topic
Cancel
Contributed Library Questions
jaminglam
Plz teach me how to program a listview by G4P
in
Contributed Library Questions
•
28 days ago
Like the title i have mentioned.
I want to put a list view with checkbox on a float panel (read some string from a csv file and display on the list view), and I don't know how to complete it by G4P and gui builder.
Plz help me.
Thx. : )
1
Replies(2)
quarks
Re: Plz teach me how to program a listview by G4P
28 days ago
Since you want to create the list view at run-time you cannot use the GUI Builder tool.
You need to breakdown the problem into a number of tasks that will be executed by your sketch
use
loadStrings
to load the CSV file data
use the
split
method to get the strings separated from the data
create a GPanel control
create a GCheckBox control for each piece of information from loaded data
add each checkbox control to the panel.
jaminglam
Re: Re: Plz teach me how to program a listview by G4P
28 days ago
Thanks a lot, i have tried it, and it really work. : )
And now I have another question. There are too many checkboxes be put on the panel. Does the panel has scroll bar to control?
Leave a comment on quarks's reply
Change topic type
Topic Type :
Discussions
Questions
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to jaminglam's question
Top
Reply
{"z4105124":[25080000002639063],"z30114211":[25080000002635426,25080000002641015]}
Statistics
2
Replies
196
Views
0
Followers
Tags
No tags available for this topic.
Cancel
Actions
Permalink
Related Posts
G4P Library -Window close?
Run function on closing GWindow in ...
[G4] How to make highlighted text i...
GUI Builder doesn't start, but ...
problem with G4P timer