[Chameleon-dev] [Bug 422] New: Scale widget does not implement WIDGETCLASS parameter

bugzilla-daemon at www.maptools.org bugzilla-daemon at www.maptools.org
Fri May 28 07:28:21 EDT 2004


http://www.maptools.org/bugzilla/show_bug.cgi?id=422

           Summary: Scale widget does not implement WIDGETCLASS parameter
           Product: Chameleon
           Version: 1.99
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Widget
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: bartvde at xs4all.nl


The scale widget does not implement the WIDGETCLASS parameter using which you 
can use css to change the appearance of the widget.

Maybe there are more widgets that would need this parameter but don't use it? 
The only one I have encountered so far is the Scale widget.

Also it would be nice to have a KeyPress event on the Scale widget as an 
enhancement. Here is the code I use:

in drawPublish:
<INPUT OnKeyPress=\"KeyPressed(event)\"  ...

In GetJavascriptFunctions:

  $szJsFunctionName = "KeyPressed";
  $szFunction = <<<EOT
/**
 * {$szJsFunctionName}
 * called to register and even when the map extents chnages (JSAPI)
 */
function {$szJsFunctionName}(e)
{
	if (!e) var e = window.event;
	var code = e.keyCode;
	if (code == 13)
	{
          document.forms[0].UPDATE_MAP.value = "1";
	  document.forms[0].submit();
          return;
	}
}
EOT;
$aReturn[$szJsFunctionName] = $szFunction;



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Chameleon-dev mailing list