EditorGadget - How to get lines in right order

Linux specific forum
User avatar
Lord
Addict
Addict
Posts: 907
Joined: Tue May 26, 2009 2:11 pm

EditorGadget - How to get lines in right order

Post by Lord »

Hello everybody!

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_CloseWindow
Result in EditorGadget #1
Row 1
Header
Row 2
Row 3
Row 4
Row 5
Row 6
Row 7
Row 8
Row 9
Row 10
Result in EditorGadget #2
Row 1
Header
Row 2
Row 3
Result in EditorGadget #3
Header
Row 2
Row 1
Row 3
I'm using Ubuntu 12.04.1 and PureBasic 5.00_beta2_x86.

What am I doing wrong?
Image
User avatar
Lord
Addict
Addict
Posts: 907
Joined: Tue May 26, 2009 2:11 pm

Re: EditorGadget - How to get lines in right order

Post by Lord »

Sorry!

I just found out, that the above mentioned behaviour
was already posted in the Linux bug section.
Just ignore the posting above.
Image
Post Reply