Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / How could I do windows?
- By Basic Date 2009-01-10 16:57
I've been working on a vector shapes editor, and I have a few windows with some tools in it, view etc.

I've been trying to make the window act more like a window that you would see in your OS. I'd like to make the interal of the window scrollable.
Like a chat window or somthing similar. I've been having trouble making it so that it would only render the contents that are needed.

anybody have and ideas how this could be approched?
- By jlnr (dev) Date 2009-01-15 17:35
Hmm, are you using Ruby or C++, and are you talking about several Window instances (which would be bad because support for that is being dropped ;() or do you simulate them inside one Gosu::Window? In the latter case, the new Window#clip_to method, or beginClipping/endClipping respectively, may be just what you need :)
- By Basic Date 2009-01-16 09:48
I'm using Ruby.

I'm trying to simulate windows from with in a gosu app. Implementing a scrolling mechanism was where I was stumbling.

Sounds like clip_to would be the method I'm after. Must have glanced over it the last time I read the doc's.

thanks
- By leviathan Date 2009-04-20 07:43
@basic

Did you manage to solve this? I'm looking for this at:
http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?tid=40;msg=TpcSub
- By Basic Date 2009-04-23 07:46
@leviathan

I have got side tracked from this atm as I have been busy, After jlnr pointed out the clip method it should be easy enough to make the actual windows, but as for the text wrapping this might be a bit fiddly (unless I've overlooked a text wrap method as well).
- By jlnr (dev) Date 2009-04-23 12:51
You can layout and render wrapped text with all four common alignments using the Image#from_text method.
- By Basic Date 2009-04-24 18:37
you thought of every thing :)
Up Topic Gosu / Gosu Exchange / How could I do windows?

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill