It is currently Mon Sep 25, 2017 4:13 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Combo weirdness !
PostPosted: Wed Feb 15, 2017 8:37 pm 
Offline
User
User

Joined: Wed May 15, 2013 8:26 pm
Posts: 26
Location: South Pacific
Hi guys, I'm having combo gadget issues with Linux, where if there are too many items for the window size I get a combo with a load of blank lines at the start.

Mint 18 Sarah 5.44 LTS (Linux - x64)

See below...

Image

Code:
  If OpenWindow(0, 0, 0, 350, 200, "ComboBoxTest", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
   
    ComboBoxGadget(1, 10, 10, 200, 21)
    For a = 1 To 30
        AddGadgetItem(1, -1,"ComboBox item " + Str(a))
      Next
    SetGadgetState(1, 2)    ; set (beginning with 0) the third item as active one

    Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf


Is this one of those Gtk weird things or does anyone know a fix? Other than keeping the list short that is :lol:


Top
 Profile  
Reply with quote  
 Post subject: Re: Combo weirdness !
PostPosted: Thu Feb 16, 2017 10:23 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 1037
Location: germany
I can confirm this weird behavior with PB 5.44 LTS (x64) on my Kubuntu 16.04. Really weird. And if you use the scroll-wheel of your mouse it becomes even worse...

Kukulkan

_________________
When somebody says "Expect the unexpected" slap them in the face and say" You didn’t expect that, did you?"


Top
 Profile  
Reply with quote  
 Post subject: Re: Combo weirdness !
PostPosted: Thu Feb 16, 2017 7:31 pm 
Offline
User
User

Joined: Wed May 15, 2013 8:26 pm
Posts: 26
Location: South Pacific
Thanks Kukulkan. From what I can make out it's a GDK issue rather than a Purebasic one. As you say, use a mouse wheel and you can go on for miles of white lines :) then scroll up and they all disappear.... cool... not! :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Combo weirdness !
PostPosted: Fri Feb 17, 2017 7:59 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 1037
Location: germany
But other GTK software on my system is not affected...

_________________
When somebody says "Expect the unexpected" slap them in the face and say" You didn’t expect that, did you?"


Top
 Profile  
Reply with quote  
 Post subject: Re: Combo weirdness !
PostPosted: Sat Feb 18, 2017 9:15 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Jun 26, 2014 9:17 am
Posts: 225
Location: Germany
Confirmed!
Yes, and the behavior depends on where the window is placed vertically.
Its a mix of trying to use a max. screen height for the popup and centering the previous selection.

Regards, Charly

_________________
PureBasic 5.3-5.5, Linux: (X/L/K)Ubuntus+Mint - Windows XP (32Bit)
PureBasic Linux-API-Library & Viewer: http://www.chabba.de


Top
 Profile  
Reply with quote  
 Post subject: Re: Combo weirdness !
PostPosted: Sat Feb 18, 2017 1:55 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 603
Location: right here
looks familiar to me. it seems to be an old issue:
https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/388633
Quote:
Therefore, the most efficient behavior for an option menu is opening it so that the currently selected item is immediately under the pointer, because that results in least mouse movement and eye movement to access the previous/next items
but i agree it just looks wrong.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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