on 10-05-2012 08:14 PM
Hi there,
So I got a Scene with a ScrollPanel on it. Then I got normal Panel with a simpel label on it.
But when I do this :
pnlScroll.AddChildFirst(new pnlTest());
Nothing happens. I made Scene and the Panel in the UI Composer. Mayby I need an extra piece of code?
I also took a look at the UI_catalog sample and I couldn't find anything usefull there.
Solved! Go to Solution.
on 10-05-2012 09:21 PM
I have it working in my UI Wizard and it's pretty straightforward. When in doubt, use AddChildLast so you're sure it's visible. What size and location settings did you use on the pnlTest panel? You're probably better off creating the pnlTest object first separately, setting its location and size settings, and then adding it to the scrollpanel.
on 11-05-2012 08:47 AM
Hi, thanks for the reply.
My panel is h: 100, w: 400 (and contains a smaller label). My Scrollpanel is h:450, w:400
Using this :
Panel x = new pnlTest();
pnlScroll.AddChildLast(x);
pnlScroll.SetPosition(62, 115);
pnlScroll.SetSize(543, 400);And using : this.RootWidget.AddChildLast(pnlScroll);
Also doens't work.
on 11-05-2012 06:12 PM
on 12-05-2012 09:18 AM
Thanks for replying. I got it to work now using some different approach.
I made a panel with ListPanelItem and a Panel with a ScrollPanel.
Then I added the panelitem to the scrollpane!l and then added that one to my scene.
Thanks for the help
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を一度ログアウトし、再度ログインしてください。


Website ©2013 Sony Computer Entertainment Europe
All content, game titles, trade names and/or trade dress, trademarks, artwork and associated imagery are trademarks and/or copyright material of their respective owners. All rights reserved. [more info]
%%http://community.eu.playstation.com/t5/Announcements/Beta-Trial-Information/td-p/11386362
best_shooter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_driver.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_performer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_footballer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_fighter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_creator.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_action_player.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
dev2.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Producer-and-Developer-Ranks/td-p/18407352
trophy.gif%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/The-Community-Awards-FAQ/td-p/18407096
PSlogoSM.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Online-Support-Coordinator-rank/td-p/18414870