Wrote a little code to see what is happening:-
Code: Select all
Global Window_0
Global Combo_0, btnMag1, ListView_0, btnMag2, btnShort, btnLong,txtShort
Enumeration FormFont
#Font_Window_0_0
EndEnumeration
LoadFont(#Font_Window_0_0,"Sans", 16)
Define Event.i,iLoop.i
Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, "", #PB_Window_SystemMenu)
btnMag2 = ButtonGadget(#PB_Any, 330, 10, 110, 25, "Magic 2")
btnMag1 = ButtonGadget(#PB_Any, 210, 10, 110, 20, "Magic 1")
Combo_0 = ComboBoxGadget(#PB_Any, 10, 10, 160, 30)
ListView_0 = ListViewGadget(#PB_Any, 10, 60, 160, 150)
btnShort = ButtonGadget(#PB_Any, 10, 230, 90, 30, "Short")
btnLong = ButtonGadget(#PB_Any, 130, 230, 90, 30, "Long")
btnFont = ButtonGadget(#PB_Any, 250, 230, 90, 30, "Font")
txtShort = TextGadget(#PB_Any, 210, 140, 120, 20, "Short")
txtImportant = TextGadget(#PB_Any, 270, 140, 60, 20, "Important")
Repeat
Event = WaitWindowEvent()
Select event
Case #PB_Event_CloseWindow
End
Case #PB_Event_Menu
Select EventMenu()
EndSelect
Case #PB_Event_Gadget
Select EventGadget()
Case btnFont
SetGadgetFont(btnMag1, FontID(#Font_Window_0_0))
SetGadgetFont(txtShort, FontID(#Font_Window_0_0))
Case btnMag1
Debug "Magic 1"
Case btnMag2
Debug "Magic 2"
Case btnShort
ClearGadgetItems(Combo_0)
ClearGadgetItems(ListView_0)
For iLoop = 0 To 20
AddGadgetItem(Combo_0,-1,"Item " + Str(iLoop))
AddGadgetItem(ListView_0,-1,"Item " + Str(iLoop))
Next
SetGadgetText(btnMag1,"Magic 1")
SetGadgetText(txtShort,"Short")
Case btnLong
ClearGadgetItems(Combo_0)
ClearGadgetItems(ListView_0)
For iLoop = 0 To 20
AddGadgetItem(Combo_0,-1,"Item " + Str(iLoop) + " A much Longer String To Check It Out. The Quick Brown Fox Jumps Over The Lazy Dog.")
AddGadgetItem(ListView_0,-1,"Item " + Str(iLoop) + " A much Longer String To Check It Out")
Next
SetGadgetText(btnMag1,"Just Checking it out")
SetGadgetText(txtShort,"Checking How text Gadgets React")
EndSelect
EndSelect
ForEverI have resolved the Linux user problem by taking my linux applications off line, no more emails from 'Frustrated'.
Is there anyway around this auto resizeing? Or do I just give up on writing applications for Linux?
CD


