I'm still trying to do my first steps in using Linux.
Right now i stumbled over this:
How do I get the lines in a EditorGadget in a wanted order?
Code: Select all
OpenWindow(1, 10, 10, 400, 400,"Test")
EditorGadget(2, 0, 0, 400, 200, #PB_Editor_ReadOnly)
EditorGadget(3, 0, 200, 400, 100, #PB_Editor_ReadOnly)
EditorGadget(4, 0, 300, 400, 200, #PB_Editor_ReadOnly)
SetGadgetText(2,"Header")
i=1
Repeat
AddGadgetItem(2,-1, "Row "+Str(i))
i+1
Until i=11
AddGadgetItem(3,0,"Header")
AddGadgetItem(3, -1, "Row 1")
AddGadgetItem(3,-1, "Row 2")
AddGadgetItem(3 ,-1, "Row 3")
AddGadgetItem(4, -1, "Row 1")
AddGadgetItem(4,-1, "Row 2")
AddGadgetItem(4 ,-1, "Row 3")
AddGadgetItem(4,0,"Header")
Repeat
Event=WaitWindowEvent()
Until Event=#PB_Event_CloseWindowResult in EditorGadget #2Row 1
Header
Row 2
Row 3
Row 4
Row 5
Row 6
Row 7
Row 8
Row 9
Row 10
Result in EditorGadget #3Row 1
Header
Row 2
Row 3
I'm using Ubuntu 12.04.1 and PureBasic 5.00_beta2_x86.Header
Row 2
Row 1
Row 3
What am I doing wrong?

