Ankit,
 
I got around this.  I overrode the _windowDrag state in the datepicker ... a "moveable" attribute determines whether or not the datepicker is fixed.  This could easily be extended to a class.  See example below.
 
Jeff
 
<canvas width="100%" height="100%" debug="true">
    <datepicker name="dp" startAsIcon="false">
        <attribute name="moveable" type="boolean" value="false" />
        <state name="_windowDrag" placement="main">
            <attribute name="starty" value="$once{this.y}"/>
            <attribute name="startx" value="$once{this.x}"/>
            <attribute name="ydoffset" value="this.getMouse( 'y' )" when="once" />
            <attribute name="xdoffset" value="this.getMouse( 'x' )" when="once" />
            <attribute name="y" value="${setDragPos('y', this.immediateparent.getMouse( 'y' ))}"/>
            <attribute name="x" value="${setDragPos('x', this.immediateparent.getMouse( 'x' ))}"/>
 
            <method name="setDragPos" args="xory, mousepos">   
            <![CDATA[
                if (this.getAttribute("moveable")) {
                    newpos = mousepos - this[xory + 'doffset'];
                    diff = this[xory] - this['start' + xory];
                    if (Math.abs(diff) > 3) {
                        setAttribute('state', 3);
                    }
                } else {
                    return this.getAttribute(xory);
                }
            ]]> 
            </method>
        </state>    
    </datepicker>
</canvas>


From: ankit rastogi [mailto:[EMAIL PROTECTED]
Sent: Friday, May 19, 2006 1:10 AM
To: [email protected]
Subject: Re: [Laszlo-user] Freezing datepicker

No responses on making datepicker immovable.
Does that mean there is no solution to fix this.

Regards,
Ankit.

On 5/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Send Laszlo-user mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
         http://www.openlaszlo.org/mailman/listinfo/laszlo-user
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Laszlo-user digest..."


Today's Topics:

   1. Re: inserting view into Window (Alexey)
   2. Freezing datepicker (ankit rastogi)
   3. Re: ide4laszlo launch button (Max Carlson)


----------------------------------------------------------------------

Message: 1
Date: Thu, 18 May 2006 12:40:27 +0300
From: Alexey <[EMAIL PROTECTED]>
Subject: Re: [Laszlo-user] inserting view into Window
To: "Stephane ." <[email protected]>
Message-ID: < [EMAIL PROTECTED]>
Content-Type: text/plain; charset=Windows-1251

Hi, Stephane.

   It didn't help me though :(

   By why otherViewFromAnotherWindow shouldn't be visible?

?? ?????? 18 ??? 2006 ?., 0:20:16:

> Look for a JS command like appendChild to Node element. As all components
> inherit from this, it should be disponible.
> Then use it in some method event as latter why not:
> ??????? otherviewfromanotherwindow.appendChild(moduleViewtofire)
> ??????? focusedwindow.appendChild(moduleViewtoactive)

> otherviewfromanotherwindow shouldn't be visible
> 2006/5/17, Alexey < [EMAIL PROTECTED]>:
> Hi, Stephane.

> This is not really what I want. I need to place module (only one module) in
> the window element. Not placing them all in window and showing only one of
> them.

> I very hope it is possible.

> ?? ?????? 17 ??? 2006 ?., 23:38:38:

>> Hi Alexey,
>> I think you can do that:
>> <canvas>
>> <view id="placeholder">
>> <window id="moduleWindow">
>> </window>
>> <view id="module1" visible="false"></view>
>> <view id="module2" visible="false"></view>
>> <button>Click meto visible module1
>> <method name="click" event="onclick">
>> this.parent.module1.setAttribute("visible", true);
>> </method>
>> </button>
>> </view>

>> </canvas>

>>
>> 2006/5/17, Alexey <[EMAIL PROTECTED]>:
>> Hi!

>> Can you help me with advice how to insert view into window. For example

>> <canvas>

>> <view id="module1" ></view>
>> <view id="module2" ></view>

>> <view id="placeholder">
>> <window id="moduleWindow">
>> </window>
>> </view>

>> </canvas>

>> I need to be able set in moduleWindow module1 or module2 (3,4 and so on).
>> I tryed get subviews of canvas, get LzView object with id I need and tryed do
>> the following:

>> moduleWindow.subviews = {};
>> moduleWindow.addSubview(viewObject);
>> moduleWindow.open();

>> But nothing happends :(

>> Thank you in advance.






--
? ?????????,
Alexey                          mailto:[EMAIL PROTECTED]




------------------------------

Message: 2
Date: Thu, 18 May 2006 15:17:54 +0530
From: "ankit rastogi" <[EMAIL PROTECTED]>
Subject: [Laszlo-user] Freezing datepicker
To: [email protected]
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Folks,

Any idea how can I stop my datepicker from becoming movable onmousclick.
I want to freeze it to fixed location.

Thanks,
Ankit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20060518/aced856e/attachment-0001.html

------------------------------

Message: 3
Date: Thu, 18 May 2006 05:14:28 -0700
From: Max Carlson <[EMAIL PROTECTED]>
Subject: Re: [Laszlo-user] ide4laszlo launch button
To: Daniel Pool <[EMAIL PROTECTED]>
Cc: [email protected]
Message-ID: < [EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Daniel,

Yes, we are aware of the problem.  One reason it takes a long time is
because the is the current design does not work directly with the local
file system.  Instead, a compressed file is uploaded to the server via
HTTP.  This is great for remote development,  but far from ideal when
the web server is on the same machine.  Please file a bug/feature
request and we'll add an option to work directly with the local file
system in an upcoming release.

Of course, if you have the time and interest, we'd love your help
implementing this feature in the plugin.  Thank you!

--
Regards,
Max Carlson
OpenLaszlo.org

Daniel Pool wrote:
> We are using eclipse and the ide4Laszlo and it is working well for us.
> But when we run the application from within eclipse using the run menu
> it takes a long time to launch. We have solved this by writing a script
> that copies all the source files from the workspace folder into the
> corresponding lps server folder and then opens a browser window with the
> appropriate url. We also set the preferences of eclipse to not display
> the launch command.
>
> But the question remains. What takes such a long in launching an
> application through eclipse's run menu. I would like to see this fixed
> because as it is you have to work around the obvious path provided for
> running an application in the IDE.
>
> Should I file a bug about this somewhere or am I missing something?
>
> Thanks,
> Daniel.
>
> _______________________________________________
> Laszlo-user mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>



------------------------------

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user


End of Laszlo-user Digest, Vol 19, Issue 26
*******************************************

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to