[fusion-users] Non-visual widgets

Chris Claydon chris.claydon at autodesk.com
Mon Apr 20 12:01:23 EDT 2009


I'm not sure this is the best approach, but could you extend the existing selection widget to add in the new code (either by modifying it directly or by creating a new widget based on it)?

-----Original Message-----
From: fusion-users-bounces at lists.osgeo.org [mailto:fusion-users-bounces at lists.osgeo.org] On Behalf Of Jackie Ng
Sent: Thursday, April 09, 2009 3:48 AM
To: fusion-users at lists.osgeo.org
Subject: Re: [fusion-users] Non-visual widgets


I don't want to modify the actual mapguide templates to accomodate this widget, can it be stored within a container, even though it has no visual appearance? 

- Jackie


Jackie Ng wrote:
> Hi All,
>
> I want to do is to be able to execute some javascript in response to a map selection event, but I want to be able to do this without hacking each fusion template, so I thought some kind of widget similar to Invoke Script in functionality would do the trick, but I was wondering:
>
> a) Is it possible to create widgets that have no visual appearance?
>   
Yes, the Maptip widget might be an example of this.  It does have some 
visual output but there is no buttons or anything to start/stop it.

> b) If so, how do these get associated with the ApplicationDefinition? Is there MapGuide Studio support for this? Or would I have to manually edit the XML.
>   
You would put it in the AppDef, with a <Type> that corresponds to what 
you called the widget, e.g. Fusion.Widget.MyWidgetType would have <Type> 
set to MyWidgetType.  For the <Name> element, I think you need a 
corresponding HTML element in your template, but that can be an empty 
hidden element.  Paul can correct me if I'm wrong about that.

I don't think there is support for this in Studio so you would have to 
code that by hand in your AppDef.


Mike

> - Jackie
>   

-- 
   Michael Adair
   Senior Software Architect
   DM Solutions Group Inc.

   Office: (613) 565-5056 x26
   madair at dmsolutions.ca
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca


_______________________________________________
fusion-users mailing list
fusion-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fusion-users



-- 
View this message in context: http://n2.nabble.com/Non-visual-widgets-tp2561352p2610210.html
Sent from the Fusion Users mailing list archive at Nabble.com.

_______________________________________________
fusion-users mailing list
fusion-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fusion-users


More information about the fusion-users mailing list