Mirage Source
RTB - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: RTB (/showthread.php?tid=607)



RTB - Matt - 09-01-2007

I was curious, is it possible to use a custom scroll bar in a rich text box? The default windows one just doesn't fit with games.


- Obsidian - 09-01-2007

yeah there was a tutorial for it a while ago. i might still have it. i'll look and see


- Matt - 09-01-2007

Thanks.


- Forte - 09-01-2007

yeah, i remember a tut on that a super long time ago. Dont have it thought sorry, best bet is on Obsidian :?


- Robin - 09-01-2007

Yes. Yes it is.

EDIT: You can use one of the crappy pre-built ones or you can get the code which allows a seperate scroll bar control a RTB, then create some picboxes to control the scrollbar.

Creates a nice effect tbf.


- Matt - 09-01-2007

Where can I get my hands on that code Kite?

Appreciate you pointing it out. ^_^

I was thinking about using the picture boxes myself. Though with that, what about the actual scroll bar, I would just have the arrows, correct?


- Robin - 09-01-2007

Well, a while ago I made a visual Inventory in one picture box (before I learnt about DX) and I made a little user control which found out the height of a picture box, how many times you wanted it to be able to scroll in both directions, and also the distance something should change with each click, and made a nice little scroller thingy.

Of course, if you are using it for just one thing, simply create a picture box which moves with the text (can use the functions which comes with the 'separate scroller' code) and then just make a quick drag code.

Unfortunately I don't have any of my old MS code left, otherwise I would have uploaded it for you Sad

As for where to find the separate scroll code, just look on PSC. You'll find it after a couple of searches.


- Matt - 09-01-2007

Okay, I'll take a look over at PSC when I get the time. Appreciate the help man, thanks.