BASIC

Author Topic: Combo positioning  (Read 3340 times)

MrTAToad

  • Guest
Combo positioning
« on: 2011-May-26 »
I've found that if a combo selection box is too near the right hand side of a window, and a scrollbar needs to be displayed, not all of the scroll bar is displayed, as in the picture.

[attachment deleted by admin]

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10656
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Combo positioning
« Reply #1 on: 2011-May-27 »
isn't the combo box as wide as the original widget? I thought the scroll bar would just make the buttons smaller...
Can you post a quick test example?

MrTAToad

  • Guest
Re: Combo positioning
« Reply #2 on: 2011-May-29 »
Will do shortly - I hope :)

Offline Vampire

  • Mr. Polyvector
  • ***
  • Posts: 193
    • View Profile
Re: Combo positioning
« Reply #3 on: 2011-May-30 »
Sorry für OT, aber wo finde ich ddgui?
Hab das Board schon abgesucht...

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10656
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Combo positioning
« Reply #4 on: 2011-May-30 »
In Samples/Projects/DDgui. The lib is in Samples/COMMON/ddgui.gbas.

MrTAToad

  • Guest
Re: Combo positioning
« Reply #5 on: 2011-Jun-01 »
Here is some quick example code :

Code: GLBasic [Select]
LOCAL a$,a%

a$=""
FOR a%=1 TO 100
        INC a$,a%+"|"
NEXT

DDgui_pushdialog(0,0,319,100)
DDgui_combo("a",LEFT$(a$,LEN(a$)-1),319-8,100-24)
WHILE TRUE
        DDgui_show(FALSE)
        SHOWSCREEN
WEND

If run in 320 x 240 or so, you can see that the scrollbar area is partially off the screen