S. ancelot <sancelot <at> free.fr> writes:

> 
> Hi,
> I would like to know if it is possible to set up a button at a fixed x,y 
> position.
> 
> I tried using stack, it has worked, but it is impossible to click on the 
> button !!!
> 
> Is this a bug ?
> 
> Best Regards
> Steph
> 

It works for me. See the following code :

<?xml version="1.0"?>

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

<window id="example-window" title="Example 7.4.2"
        xmlns:html="http://www.w3.org/1999/xhtml";
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";>
<script>
function showPositionAndSize()
{
  var labelbox = document.getElementById('pos').boxObject;
  alert("Position is (" + labelbox.x + "," + labelbox.y +
        ") and size is (" + labelbox.width + "," +
        labelbox.height + ")");
}
</script>
<stack>
  <button label="Goblins" left="5" top="5"/>
  <button label="Trolls" left="60" top="20"/>
  <button label="ClickMe" id="pos" left="150" top="60" 
          oncommand="showPositionAndSize();"/>
</stack>
</window>






-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
XUL News Wire      - http://xulnews.com
XUL Job Postings   - http://xuljobs.com
Open XUL Alliance - http://xulalliance.org  
_______________________________________________
xul-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xul-talk

Reply via email to