Page 1 of 1

linux gadgets different heights?

Posted: Mon Oct 09, 2017 5:34 am
by collectordave
Hi All

Just sorting my programmes to work on Linux.

Noticed that whatever size I make say a combobox gadget it is displayed at a height of 25 - 30. Same with some other gadgets as well.

Is this normal?

If so are there minimum heights for gadgets on Linux?

Regards

CD

Re: linux gadgets different heights?

Posted: Mon Oct 09, 2017 6:38 am
by collectordave
Digging a little deeper found that the height of a string gafget is not changed by changing it's height but its position is. With following code:-

Code: Select all

Global Window_0

Global String_0, String_1

  Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, "", #PB_Window_SystemMenu)
  String_0 = StringGadget(#PB_Any, 20, 20, 60, 20, "")
  String_1 = StringGadget(#PB_Any, 90, 20, 90, 45, "")
  
  Repeat
    
    Event = WaitWindowEvent()
    Select Event
      Case #PB_Event_CloseWindow
        End

  EndSelect
  
  ForEver
On windows fine the second stringgadget is 45 high and on a level with the first.

On Linux the second string gadget is moved down and the height not changed!

Is this a bug in the Linux version?

A little more info

I am using ubuntu 16.04 LTS and PB 5.61.

The form designer works Ok and looks as you would expect. problem is when you run the programme.

Regards

cd