GLBasic forum

Codesnippets => DD-GUI => Topic started by: MrTAToad on 2011-May-26

Title: Combo positioning
Post by: MrTAToad 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]
Title: Re: Combo positioning
Post by: Kitty Hello 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?
Title: Re: Combo positioning
Post by: MrTAToad on 2011-May-29
Will do shortly - I hope :)
Title: Re: Combo positioning
Post by: Vampire on 2011-May-30
Sorry für OT, aber wo finde ich ddgui?
Hab das Board schon abgesucht...
Title: Re: Combo positioning
Post by: Kitty Hello on 2011-May-30
In Samples/Projects/DDgui. The lib is in Samples/COMMON/ddgui.gbas.
Title: Re: Combo positioning
Post by: MrTAToad 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