Aller au contenu

Photo

UI Listbox Question


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
comeandsee

comeandsee
  • Members
  • 32 messages

Hello, I have this list box here I'm having kind of an interesting quirk with. See the script below.

 

 

<UIListbox name="LISTBOX" x=20 y=35 width=445 height=145 yPadding=2 xPadding=5 hidescrollbarwhennotneeded="true" capturemouseclicks="false" showpartialchild=true scrollbaronright=true unequalcontrols=false scrollsegmentsize=1 update=true >

<UIPane name="LISTBOX_ITEM" width=420 height=145 tupple=true prototype=true draggable=false>

<UIText name="LISTBOX_ITEM_1" width="PARENT_WIDTH" height="DYNAMIC" idescrollbarwhennotneeded=true prototype=true align="left" valign="top" fontfamily="Default" style="1" />

</UIPane>
<UIScrollBar name="SB" style="STYLE_SB_THIN" />
</UIListbox>

 

 

Each time I do an AddListBoxRow instead of putting the rows right beneath each other, it separates the text so I have to scroll wheel each line. Basically instead of....

 

Text1

Text2

Text 3

 

It's

 

Text1

(have to mouse scroll wheel down to next page)

Text2

(have to mouse scroll wheel down to next page)

Text3

 

Kind of weird, never had a UI do this before. Any ideas?



#2
Loki_999

Loki_999
  • Members
  • 430 messages

What is the size of your UIScene?  

 

However, your listbox height is the same as the row so you will only ever see one entry at a time.

 

Finally, i found setting unequalcontrols to true can help a little bit with strange behaviour even when the controls are the same, but don't think this is your problem.



#3
comeandsee

comeandsee
  • Members
  • 32 messages

UI Screen width=475 height=240



#4
comeandsee

comeandsee
  • Members
  • 32 messages

What is the size of your UIScene?  

 

However, your listbox height is the same as the row so you will only ever see one entry at a time.

 

Finally, i found setting unequalcontrols to true can help a little bit with strange behaviour even when the controls are the same, but don't think this is your problem.

 

Wow, I <3 you! I had to reduce the pane height and it worked! :D