Info bar with MXP

Posted by Okram on Thu 04 Sep 2003 10:22 AM — 3 posts, 16,068 views.

Italy #0
Hallo, I've made a script which puts on my infobar the four spells I like to have "always on", like strength, shield, armor, and fly.

Every time the mud sends me the message about my strength spell wearing off, I set the variable StrengthOnOff to false, and send the text "cast 'strength'" to the MUD.

Additionally, I made a script that shows text on the infobar like "strength" if the spell is NOT active, and "STRENGTH" if it is active. The same, of course, for other spells.

Now, I'd like to "simply click" on the "strength" text in the InfoBar to send the "cast 'strength'" text to the mud.

I tried with putting MXP on the infobar like <send href="cast 'strength'">strength</send> but it don't work.

How should I do?
Thanks in advance,
-marco-
USA #1
The infobar only supports text. It doesn't have support for links, buttons, icons or anything else you might expect. There is a good reason for this, since you cannot create distinct 'fields' on the bar that can be cleared individually or otherwise changed directly. Whether or not Nick ever impliments a better design is questionable, especially since he would practically have to recode the ToolBar implimentation to fix some of its worse behaviours, before he ever extended it to do anything more than what it does.

Of course this is just my opinion. However it does seem like this particular 'feature' of windows requires almost as much work to use properly as it would take to build one completely from scratch using the most basic Frame object and adding things on one by one. lol Put in the simplest terms. These infobars/toolbars appear to only be able to do one thing at a time, and then barely functionally at that. Trying to have it do colored text, but also links, but also icons, but also buttons, then also.... and you rapidly end up with something that won't work at all.

As an example, just trying to make one behave like the Windows Taskbar and auto-hide itself, then become visible again took me 6 hours of fiddling, and then I never did get the mouse to hover over the correct part of the bar or the bar to correctly shrink itself again without clicking on something on it to force the effect. It just can't be done starting at the ToolBar level. And compared to mixing content, this is practically a no-brainer.

I'll leave it to Nick to tell you if I am wrong about this or not though. He may actually have some sort of solution I can't think of.
Australia Forum Administrator #2
See this post:

http://www.gammon.com.au/forum/?bbsubject_id=3128

This shows how you can do a fancier "info bar" using a separate VB program. Rather than bloating the core application I would prefer for more extensive information to be displayed using something like this.