UI Toolkit

Reply

Member

Member
aallbbeerrtt97
Posts: 4
Registered: ‎19-04-2012
Message 1 of 7 (297 Views)
Accepted Solution

Label Autoscroll

Hello,

how can automatically scroll a label?

When the text is too long it gets cutted.

 

I tried with http://msdn.microsoft.com/de-de/library/system.windows.forms.textboxbase.scrolltocaret%28v=vs.80%29.... but this is for Windows only as i see, so how to do this on the Vita?

 

 

Please use plain text.

Member

Member
aallbbeerrtt97
Posts: 4
Registered: ‎19-04-2012
Message 2 of 7 (272 Views)

Betreff: Label Autoscroll

With a EditableText (Box) it doesn't work too.
Please use plain text.

Betreff: Label Autoscroll

Hi aallbbeerrtt97,

 

If I understand it correctly, this is about the same issue that is mentioned in:

Fit text by automatic resizing of Label possible?

 

If you make the label height big enough (and place it on a ScrollPanel), it won't be cut ... but keep in mind that you may end up with other issues if you make the height too big (stretched font if the label height > 2048)...

Until now, I did not find a good workaround for that specific issue.

Hopefully, this limit is not an issue for you.

Please use plain text.

Member

Member
aallbbeerrtt97
Posts: 4
Registered: ‎19-04-2012
Message 4 of 7 (247 Views)

Betreff: Label Autoscroll

Can you give me an example?
I dont understand this :smileyfrustrated:
Please use plain text.

Betreff: Label Autoscroll

If you are searching for autoscroll to the end of a label, I do not know a solution for that.

If you are searching for a way to prevent your label to be cut off without taking too much space on the screen, you might use a scrollpanel with a label.

 

Here are some screenshots:

Running example

scrolling label

 

Design: a scene with a ScrollPanel (containing PanelLabel)

screenshot_design_2_label_scroll.jpg

 

Design: the Panel with the label:

screenshot_design_2_label_scroll.jpg

 

I hope that this helps to understand what I meant...



Please use plain text.

Member

Member
aallbbeerrtt97
Posts: 4
Registered: ‎19-04-2012
Message 6 of 7 (213 Views)

Betreff: Label Autoscroll

Thank you, my problem is now:
In "Panel Class Name" i can't choose anything
Please use plain text.

Betreff: Label Autoscroll

In Panel Class Name you can select the panels you created.

Since you cannot select one, you probably did not yet create a panel.

 

In the menu choose Create new layout and select Panel (instead of Scene).

From there you can design your panel (which I called PanelLabel in the example).

Please use plain text.
This widget could not be displayed.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.

フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと PSM DevPortalを一度ログアウトし、再度ログインしてください。






Recent News