I experienced Problems in running a program under Ubuntu 14.04 / Lubuntu 14.04 / Ubuntu 10.04 / all 32bit.
A lot of stringgadgets are setup and expected to be filled with numbers after pressing the Start button.
But:
Everything runs fine under Ubuntu 14.04
Program stucks after pressing the Start button, no entry possible in Stringgadgets under Lubuntu 14.04
Same problem under Ubuntu 10.14, but runs properly after upgrading to Ubuntu 12.04.
The stringgadgets get a different backgound color, depending on their content. After pressing Start they are all red.
Here is the loop:
Code: Select all
....GUI setup...with a lot of stringgadgets
button = ButtonGadget(#PB_Any, 470, 200, 50,30, "Start")
textwrite = 0
start = 0
Repeat
Event = WaitWindowEvent()
If EventGadget() = button
los = Date()
start = 1
loeschen()
DisableGadget(button, 1)
EndIf
If start = 1
ok = 0
For ii = 0 To 99
i = Int(ii / 10) +1
k = Mod(ii,10) +1
If Val(GetGadgetText(ii)) <> i * k
SetGadgetColor(ii, #PB_Gadget_BackColor, RGB (255,0,0)) ; nicht ok
Else
SetGadgetColor(ii, #PB_Gadget_BackColor, RGB (255,255,255)) ; ok
ok = ok + 1
EndIf
Next
If ok = 100 And textwrite = 0
ende = Date()
zeit$ = FormatDate("%mm:%ss", ende -los )
TextGadget(#PB_Any, 470, 250, 80, 130, "Du brauchtest " + zeit$ + " Minuten.")
textwrite = 1
EndIf
EndIf
Until Event = #PB_Event_CloseWindow
Could anyone please give me a hint what to change?
By the way: PB compiler 5.22 LTS was used.
