[MAXGUI] "About" window module?

BlitzMax Forums/BlitzMax Module Tweaks/[MAXGUI] "About" window module?

Grisu(Posted 2006) [#1]
Hi!

Has anyone written a proper "about" window module yet?
Such as the ones used in Firefox or Thunderbird:




Version, homepage link ect on the one "side".
Scrolling credits on the other "side".

Anything that is better than this when I click "About" in the BMX GUI:



klepto2(Posted 2006) [#2]
Do you mean something like this?



The TTextStyle is extendable as you see by the TStaticText
So it should be easy to add different Effects like scrolling, fading etc.
It is a short write and bug maybe included. but it should give you a hint how to do it. Also things like textColor etc. are not implemented yet.

Enjoy ;)


Grisu(Posted 2006) [#3]
Thanks Klepto.

Will have a look.

P.S.: Is this EmitEventHook stuff portable to MAC+Linux?


Dreamora(Posted 2006) [#4]
Yepp thats BMs own event code stuff from brl.event etc


Grisu(Posted 2006) [#5]
Another problem with the example.
When I click the close button, not only the about window shuts down, but also the WHOLE application.
How can I prevent that?

Also, can I set a window to ALWAYSONTOP with MAXGUI commands?
So the about window stays over the apps window...


SebHoll(Posted 2006) [#6]
Change the
		Case EVENT_WINDOWCLOSE
			End
to this:
		Case EVENT_WINDOWCLOSE
			If EventSource() = About.Window Then About.Kill() Else End
*EDIT: Just to explain: this will check to see if the event was triggered by the About Box window, if it was then the about box is "Killed", otherwise (i.e. it was triggered by the main window) it ends the program.

Also I think there was an "AlwaysOnTop" flag in the Type declaration but I don't think it works. :(


Seb


Grisu(Posted 2006) [#7]
Thanks Seb!