View Single Post
  #1  
Unread 01-22-2005, 02:45 PM
Eloa Eloa is offline
EQ2MAP Webmaster
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unkown
Posts: 496
Default Scrollable text boxes, scrollable pages, scrollable text boxes in scrollable pages!

You have probably found yourself in the same situation I have been in for a while. You have a small page that you want to display a lot of information in so you wanted to make it scrollable only to find out that you make a new scrollbar. It don't work. You copy an existing scrollbar. It don't work. It just won't work. Whenever you punch in the name of a page for it to control it just won't accept it. So this is what you do:

Copy an existing scrollbar from Journals.JournalsQuest.Active. Copy from Journals.JournalsQuest.Active.QuestDetails the Treeview, treeviewstyle, and treeviewDSContainer into the page you want to make scrollable. Now set the control of the scrollbar to the page in which you just placed these items. It acepts it. Delete the treeview stuff. Go to the properties on the page and change the scrollextent to something larger than the size of the page. Voila. Your page scrolls.

This works in the UIBuilder as well, you do not need to load up the game to test it. Chances are if it isnt working in UIBuilder, it wont work ingame but you can try it. Let me know of the success or failures in following these steps.

Quirks:
If you resize the page after setting the scroll extent, it automatically links scroll extent to the new Size property.

From a scrollable text boxes post I made as I was figuring this stuff out. Now sure if its exactly true anymore:

from what I can see, problems only occur when you change how far down the tree the scrollbar is. You can only set it to control things within the same level of the tree. Say if you pull if from MainHUD.Society.MotdBox, you can move it to say MainHUD.BlankPage.Nothing, but you may not move it to MainHUD.BlankPage or MainHUD.BlankPage.Nothing.NothingHereEither

These are the only conditions I have noticed that caused it scrollable or not. If you can't get it to work even after following these rules, let me know and I'll look at it further.

I have just gotten a scrollable page to work. <loop>

Last edited by Eloa : 01-22-2005 at 02:53 PM.
Reply With Quote