It is currently Tue Oct 24, 2017 1:34 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: linux gadgets different heights?
PostPosted: Mon Oct 09, 2017 5:34 am 
Offline
Enthusiast
Enthusiast

Joined: Fri Aug 28, 2015 6:10 pm
Posts: 724
Location: Portugal
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

_________________
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.


Top
 Profile  
Reply with quote  
 Post subject: Re: linux gadgets different heights?
PostPosted: Mon Oct 09, 2017 6:38 am 
Offline
Enthusiast
Enthusiast

Joined: Fri Aug 28, 2015 6:10 pm
Posts: 724
Location: Portugal
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:
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

_________________
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye