PureBasic Forum

linux gadgets different heights?
Page 1 of 1

Author:  collectordave [ Mon Oct 09, 2017 5:34 am ]
Post subject:  linux gadgets different heights?

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?



Author:  collectordave [ Mon Oct 09, 2017 6:38 am ]
Post subject:  Re: linux gadgets different heights?

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:-
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, "")
    Event = WaitWindowEvent()
    Select Event
      Case #PB_Event_CloseWindow


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.



Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group