PDA

View Full Version : Drop-list scroll


Seadna
02-03-2016, 03:29 AM
Hi guys,

I have a drop-list on a canvas which is populated by a lot of items. The list is very long and I cannot select items at the bottom of the list (off canvas, and sometimes off the screen) is there a way to apply a scroll bar to the drop-list o that the user can scroll through items with the mouse wheel?

Any help is much appreciated!

Seadna
02-04-2016, 06:37 AM
Hi folks,

I have reduced the number of buttons etc on my canvas and now the issue is affecting more droplists. The virtual mouse seems to be limited to the size of the canvas (i think!) but the droplists expand below the canvas and the mouse cannot move down past it.

When i try to change the resolution of the canvas it does not change size.

I have attached a screenshot. I cannot currently move the mouse pointer lower than its position in the image.

Jeff
02-04-2016, 11:54 PM
Can you post the GUI canvas and drop list code that reproduces the issue?

Seadna
02-05-2016, 04:48 AM
Hi Jeff I figured it out. The code snippet I was working from had these lines:

bb = controlPanel.getBoundingBox()
canvas.setRenderWorldOverlay([bb.width + 5, bb.height + 5], fov=bb.height * 0.12, distance=3.0)

I removed them and its all fine now.