How do you make it work (editorGadget)?

Linux specific forum
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

How do you make it work (editorGadget)?

Post by chen »

This ia an example from the PB4 manual... in windows works like it must be
but in Linux does not?

why?

Code: Select all

 If OpenWindow(0, 0, 0, 322, 150, "EditorGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0)) 
    EditorGadget(0, 8, 8, 306, 133) 
    For a = 0 To 5 
      AddGadgetItem(0, a, "Line "+Str(a)) 
    Next 
    Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow 
  EndIf 
do I need to consider something else?
Pinhead
User
User
Posts: 47
Joined: Fri Sep 09, 2005 11:24 pm

Post by Pinhead »

What is the problem/error?
It works fine with PB4-beta2 and Slackware 11.
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

Pinhead wrote:What is the problem/error?
It works fine with PB4-beta2 and Slackware 11.
If you run the code in windows you get:
Line 0
Line 1
Line 2
Line 3
Line 4
Line 5

this is OK...

If I run it in Ubuntu 6.10... I get:

Line 0Line 1Line 2Line 3Line 4Line 5

that is not ....

Using PB4 beta 2

then are you getting the right result??? :?
Pinhead
User
User
Posts: 47
Joined: Fri Sep 09, 2005 11:24 pm

Post by Pinhead »

Ups, sorry.
I get the same result like yours. I thought it's a other problem.
Must be a problem with the EndOfLineChar.
I think it's a bug in PB4
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

Pinhead wrote:Ups, sorry.
I get the same result like yours. I thought it's a other problem.
Must be a problem with the EndOfLineChar.
I think it's a bug in PB4
I think so... I change the line termination to mac, to win and back to linux
but nothing works.....!!
Pinhead
User
User
Posts: 47
Joined: Fri Sep 09, 2005 11:24 pm

Post by Pinhead »

Close the line with 'chr(10)' that will work...
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

Pinhead wrote:Close the line with 'chr(10)' that will work...
no it isnt... anyway it is something that is not working like it must be.....
Pinhead
User
User
Posts: 47
Joined: Fri Sep 09, 2005 11:24 pm

Post by Pinhead »

I know, but chr(10) is a workaround till it is fixed...
Post Reply