Combo positioning

Previous topic - Next topic

MrTAToad

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]

Kitty Hello

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

Will do shortly - I hope :)

Vampire

Sorry für OT, aber wo finde ich ddgui?
Hab das Board schon abgesucht...

Kitty Hello

In Samples/Projects/DDgui. The lib is in Samples/COMMON/ddgui.gbas.

MrTAToad

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