Suggestion: URL Events?

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

User avatar
mmixLinus
Quite a regular
Quite a regular
Posts: 71
Joined: Fri May 20, 2011 08:46
Location: Lund, Sweden
Contact:

Suggestion: URL Events?

Postby mmixLinus » Wed Aug 01, 2012 18:23

Hi again :wink:

Would it not be very nice to have some form of "link" escape to StaticText? Something like

Code: Select all

check out our [linkstart=clickCallbackFn]web page[linkend]
which when hovered draws an underline, and when clicked generates a URL Event of sorts?

I suppose there could be hover/unhover events too.

BR,
mmixLinus++;
MMiX.Me 3D Music Player
Galaxy Navigator 3D - 2 million stars (ESA's Gaia satellite)
(YouTube|Facebook)

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Suggestion: URL Events?

Postby CrazyEddie » Thu Aug 02, 2012 07:53

While it's not quite as clean an intuitive, we already support this by way of the [window] tag - so you would have an appropriately styled button (which basically means, it would draw text only normally, text with an underline image on hover/mouse over, and perhaps text in a different colour when in the pushed state), and you add instances of the button to the static text, then embed the [window] tags in the static text text that reference the buttons - this will cause cegui to draw the buttons inline as part of the text.

I understand that the above is not specifically what you asked for, and is a little bit clunky to use in practice. Of course it's theoretically possible to do what you suggested, basically doing the above internally and hiding most of the nastiness from the user. I will add a 'no promises' ticket for it, and think about it some more :)

Thanks for the suggestion.

CE.

User avatar
mmixLinus
Quite a regular
Quite a regular
Posts: 71
Joined: Fri May 20, 2011 08:46
Location: Lund, Sweden
Contact:

Re: Suggestion: URL Events?

Postby mmixLinus » Thu Aug 02, 2012 09:53

Yeah, you're right, the functionality I am suggesting is a bit high-level, and can be done using the available primitives. That's completely fine :)
MMiX.Me 3D Music Player
Galaxy Navigator 3D - 2 million stars (ESA's Gaia satellite)
(YouTube|Facebook)


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 7 guests