String+String in Beta 2

Linux specific forum
Pinhead
User
User
Posts: 47
Joined: Fri Sep 09, 2005 11:24 pm

String+String in Beta 2

Post by Pinhead »

Hi,
a small Error:

Code: Select all

  If OpenWindow(0 , x, y, 500, 162, "Test",  #PB_Window_TitleBar )

      If CreateGadgetList(WindowID(0))
        StringGadget(0, 130, 50, 340, 27, "")               
        ButtonGadget(1, 260, 110, 80, 30, "xyz")                 
      EndIf
  EndIf
  
  Repeat 
 
  Event = WaitWindowEvent() 
  GadgetID = EventGadget() 
    
  If Event = #PB_Event_CloseWindow
    End
  EndIf
  
    If Event = #PB_Event_Gadget
      If GadgetID = 1
         text$=GetGadgetText(0)+GetGadgetText(1) ; not working
           
          ;this is working:
          ; text$=GetGadgetText(0)
          ;text$=text$+GetGadgetText(0)
          ;text$=text$+GetGadgetText(1)
           
         SetGadgetText(0,text$)
       
      EndIf
   EndIf 
   
 ForEver
It works under XP but not under Linux...
Why? Bug or feature?
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 575
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

:?:

Works perfectly here.

Mandriva 2006, official.
Kernel 2.6.16
XFCE 4.1
PB 4.0 beta 2
cheers,

bembulak
Pinhead
User
User
Posts: 47
Joined: Fri Sep 09, 2005 11:24 pm

Post by Pinhead »

Works perfectly here.
:?: :?: :?:

When I press the button the StringGadget is still empty!

Slackware 11
Kernel 2.6.18
Fluxbox
PB 4.0 beta 2
Pinhead
User
User
Posts: 47
Joined: Fri Sep 09, 2005 11:24 pm

Post by Pinhead »

Same problem with Suse 10.2
FloHimself
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 14, 2003 3:38 pm
Location: Lüneburg - Germany

Post by FloHimself »

here it works fine!

openSUSE 10.2
Kernel 2.6.18.2-34-default
Gnome 2.16.1
PureBasic 4.0b2
My favorite numbers: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
Pinhead
User
User
Posts: 47
Joined: Fri Sep 09, 2005 11:24 pm

Post by Pinhead »

with the default suse installation?
I tested it again under Gnome, same Problem...
When I use

Code: Select all

text$=GetGadgetText(0)+GetGadgetText(1)
the StringGadget ist still empty after pressing the button...

This is a very strange problem :shock:
Pinhead
User
User
Posts: 47
Joined: Fri Sep 09, 2005 11:24 pm

Post by Pinhead »

Problem is found :!: :!: :!:

If I use the compiler option 'unicode executable' then it goes wrong.
I think unicode is one of the big problems in PB4 for Linux.
FloHimself
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 14, 2003 3:38 pm
Location: Lüneburg - Germany

Post by FloHimself »

Yes, with unicode enabled I get the same problem.
My favorite numbers: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
Post Reply