Henry Minsky | 1 Oct 14:50 2009
Picon

Fwd: New issue : Displaying bigger image


You should try asking the laszlo user list, the question may get answered and also others would be interested
in learning from it.


---------- Forwarded message ----------
From: Siti Nurnamira <sitinurnamira-/E1597aS9LS+ZvmcBgLQeg@public.gmane.org>
Date: Thu, Oct 1, 2009 at 12:18 AM
Subject: Re: [Laszlo-user] New issue : Displaying bigger image
To: henry.minsky-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org


Hi henry,
 
I'm not sure if it will be wrong to ask this question. My images can appear in the grid. Currently, im trying to make the image bigger when it is mouse over, it works, but the image is being blocked by the next row. Do you have any idea as to how to make the row push/move down when the image is big?
 
Thanks
siti nurnamira

New Email names for you!
Get the Email name you've always wanted on the new <at> ymail and <at> rocketmail.
Hurry before someone else does!



--
Henry Minsky
Software Architect
hminsky-oDN+GTs16Eu/3pe1ocb+swC/G2K4zDHf@public.gmane.org


Siti Nurnamira | 1 Oct 17:36 2009
Picon

Re: New issue : Displaying bigger image

Hi there,

I'm not sure if it will be wrong to ask this question. My images can appear in the grid. Currently, im trying to make the image bigger when it is mouse over, it works, but the image is being blocked by the next row. Do you have any idea as to how to make the row push/move down when the image is big?
 
Thanks
siti nurnamira

Get your new Email address!
Grab the Email name you've always wanted before someone else does!
Omar BELKHODJA | 4 Oct 01:46 2009
Picon

Setting focus on textedit seems not working

Hello,

I'm quite new to openlaszlo. I've started a little program with 
login/password window. I want to have the cursor at the starting of the 
application focusing into the login textedit. This doesn't seem to be 
working with the piece of code I've writen (tested in firefox/swf9). 
Below is the source code. Doesn't anybody know why it doesn't work ?

Thanks !

<?xml version="1.0" encoding="UTF-8" ?>
<canvas id="Canvas" width="100%" height="100%" bgcolor="#EAEAEA" 
align="center" valign="middle">
    <handler name="oninit">
         Debug.debug('canvas init');
		lz.Focus.setFocus(LoginEdit.parent);
		Debug.debug(lz.Focus);
		Debug.inspect(lz.Focus.getFocus());
    </handler>
    <window id="LoginDlg" title="Welcome to Kanfous !" clickable="false" 
width="200" opacity="1" bgcolor="#EAEAEA" x="${(Canvas.width - 
LoginDlg.width) / 2}" y="${(Canvas.height - LoginDlg.height) / 2}">
         <handler name="oninit">
             Debug.debug('window init');
         	//this.animate('opacity',1,500,false);
         </handler>
    		<simplelayout axis="y" />
    		<view width="100%">
    		    <handler name="oninit">
             	Debug.debug('view init');
             </handler>
        		<simplelayout axis="x" />
         	<text width="60">Login</text>text>
         	<edittext id="LoginEdit" width="100%"></edittext>
        	</view>
        	<view width="100%">
        		<simplelayout axis="x"/>
         	<text width="60">Password</text>text>
         	<edittext id="PasswordEdit" password="true" 
width="100%"></edittext>
        	</view>
         <view align="right">
             <simplelayout axis="x" spacing="10" />
             <button onclick="parent.parent.close()">Cancel</button>
             <button onclick="parent.parent.close()" 
isdefault="true">OK</button>
         </view>
     </window>
</canvas>

James Robey | 4 Oct 21:36 2009
Picon

Dynamically Creating Attributes on distant objects

Hi all, I have a question that i've researched personally on LZX dynamic 
attribute creation and I couldn't find information on what I was trying 
to do. When i turn to the list, you can bet that it's an interesting 
question :)

I'm in a situation where i'd like to constrain (use the handler 
reference syntax) to some object's attribute even though that object 
*doesn't have that attribute declared on it originally*. Ideally at init 
time like to be able to enhance an object whose reference I happen to 
have with an attribute that has all of the characteristics of a normal 
attribute in terms of events and access.

I'm doing this to set up systems of timing where actions may be chained 
together, and requiring the programmer to manually place attributes on 
these action classes would be tedious and ugly. I'd like some "magic" here.

Any ideas? For those who are following, I'm trying to avoid the solution 
of hacking these attributes into lz node objects directly and globally, 
so I beg to turn to dynamism.

Any help or even vague and hazy impressions would be helpful! Thank you 
in advance,

.james robey.

Omar BELKHODJA | 4 Oct 22:55 2009
Picon

Re: Setting focus on textedit seems not working

I'm using firefox 3.5.3 + openlaszlo-4.6.1-windows-dev-install.exe + 
debugger off + swf9.

I've checked again and it does work using dhtml but not in swf8/swf9. 
This is quite bad, because I've chosen openlaszlo to avoid javascript 
which I judge too slow compared to flash... Any idea why it doesn't work 
in flash mode ?

Max Carlson a écrit :
> This works fine for me in trunk/4.7, Firefox 3.5 DHTML - with the 
> debugger off.  What version of OpenLaszlo and browser are you running?
> 
> Omar BELKHODJA wrote:
>> Hello,
>>
>> I'm quite new to openlaszlo. I've started a little program with 
>> login/password window. I want to have the cursor at the starting of 
>> the application focusing into the login textedit. This doesn't seem to 
>> be working with the piece of code I've writen (tested in 
>> firefox/swf9). Below is the source code. Doesn't anybody know why it 
>> doesn't work ?
>>
>> Thanks !
>>
>> <?xml version="1.0" encoding="UTF-8" ?>
>> <canvas id="Canvas" width="100%" height="100%" bgcolor="#EAEAEA" 
>> align="center" valign="middle">
>>    <handler name="oninit">
>>         Debug.debug('canvas init');
>>         lz.Focus.setFocus(LoginEdit.parent);
>>         Debug.debug(lz.Focus);
>>         Debug.inspect(lz.Focus.getFocus());
>>    </handler>
>>    <window id="LoginDlg" title="Welcome to Kanfous !" 
>> clickable="false" width="200" opacity="1" bgcolor="#EAEAEA" 
>> x="${(Canvas.width - LoginDlg.width) / 2}" y="${(Canvas.height - 
>> LoginDlg.height) / 2}">
>>         <handler name="oninit">
>>             Debug.debug('window init');
>>             //this.animate('opacity',1,500,false);
>>         </handler>
>>            <simplelayout axis="y" />
>>            <view width="100%">
>>                <handler name="oninit">
>>                 Debug.debug('view init');
>>             </handler>
>>                <simplelayout axis="x" />
>>             <text width="60">Login</text>text>
>>             <edittext id="LoginEdit" width="100%"></edittext>
>>            </view>
>>            <view width="100%">
>>                <simplelayout axis="x"/>
>>             <text width="60">Password</text>text>
>>             <edittext id="PasswordEdit" password="true" 
>> width="100%"></edittext>
>>            </view>
>>         <view align="right">
>>             <simplelayout axis="x" spacing="10" />
>>             <button onclick="parent.parent.close()">Cancel</button>
>>             <button onclick="parent.parent.close()" 
>> isdefault="true">OK</button>
>>         </view>
>>     </window>
>> </canvas>
> 

James Robey | 4 Oct 22:58 2009
Picon

I think i might have answered my own question

     Poor form, sorry, but i answered my own question. I didn't need to 
do make another attribute. i found another way around the problem using 
these two lines which are a common pattern:

var something_method = new lz.Delegate(this, "something");
something_method.register(parent.after, "onmyevent");

     That worked just fine for my needs once i realized it was all i 
needed. Thanks for reading it!

.james.

P T Withington | 5 Oct 00:48 2009
Picon

Re: I think i might have answered my own question

You can do this in on operation:

new lz.Delegate(this, 'something', that, 'eventname');

you'll want to hang on to a reference to the new delegate, so you can  
unregister it in your destroy method, otherwise it causes a leak.

We hope to fix this some day:

http://jira.openlaszlo.org/jira/browse/LPP-225

Also, we have some ideas about how to dynamically add handlers, so  
that you don't have to understand the delegate mechanism to do what  
you want.  (Hm. can't find the Jira for tha just now...)

On 2009-10-04, at 16:58, James Robey wrote:

>    Poor form, sorry, but i answered my own question. I didn't need  
> to do make another attribute. i found another way around the problem  
> using these two lines which are a common pattern:
>
> var something_method = new lz.Delegate(this, "something");
> something_method.register(parent.after, "onmyevent");
>
>    That worked just fine for my needs once i realized it was all i  
> needed. Thanks for reading it!
>
> .james.

Max Carlson | 5 Oct 01:05 2009

Happy birthday OpenLaszlo!

It's hard to believe we've been open source for 5 years.  I'll be 
hoisting a beer in honor of all our accomplishments and to all our 
wonderful contributors!  Happy birthday OpenLaszlo!

--

-- 
Regards,
Max Carlson
OpenLaszlo.org

Henry Minsky | 5 Oct 01:56 2009

Re: Setting focus on textedit seems not working

Can you tell me what error you are seeing in swf8 and swf9 or swf10?

Do you happen to have the Flash debug player installed? It will give some more detailed
error information from the flash runtime in swf9/10, that perhaps you could copy and send to us.



On Sun, Oct 4, 2009 at 4:55 PM, Omar BELKHODJA <omar.belkhodja-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I'm using firefox 3.5.3 + openlaszlo-4.6.1-windows-dev-install.exe + debugger off + swf9.

I've checked again and it does work using dhtml but not in swf8/swf9. This is quite bad, because I've chosen openlaszlo to avoid javascript which I judge too slow compared to flash... Any idea why it doesn't work in flash mode ?


Max Carlson a écrit :

This works fine for me in trunk/4.7, Firefox 3.5 DHTML - with the debugger off.  What version of OpenLaszlo and browser are you running?

Omar BELKHODJA wrote:
Hello,

I'm quite new to openlaszlo. I've started a little program with login/password window. I want to have the cursor at the starting of the application focusing into the login textedit. This doesn't seem to be working with the piece of code I've writen (tested in firefox/swf9). Below is the source code. Doesn't anybody know why it doesn't work ?

Thanks !

<?xml version="1.0" encoding="UTF-8" ?>
<canvas id="Canvas" width="100%" height="100%" bgcolor="#EAEAEA" align="center" valign="middle">
  <handler name="oninit">
       Debug.debug('canvas init');
       lz.Focus.setFocus(LoginEdit.parent);
       Debug.debug(lz.Focus);
       Debug.inspect(lz.Focus.getFocus());
  </handler>
  <window id="LoginDlg" title="Welcome to Kanfous !" clickable="false" width="200" opacity="1" bgcolor="#EAEAEA" x="${(Canvas.width - LoginDlg.width) / 2}" y="${(Canvas.height - LoginDlg.height) / 2}">
       <handler name="oninit">
           Debug.debug('window init');
           //this.animate('opacity',1,500,false);
       </handler>
          <simplelayout axis="y" />
          <view width="100%">
              <handler name="oninit">
               Debug.debug('view init');
           </handler>
              <simplelayout axis="x" />
           <text width="60">Login</text>text>
           <edittext id="LoginEdit" width="100%"></edittext>
          </view>
          <view width="100%">
              <simplelayout axis="x"/>
           <text width="60">Password</text>text>
           <edittext id="PasswordEdit" password="true" width="100%"></edittext>
          </view>
       <view align="right">
           <simplelayout axis="x" spacing="10" />
           <button onclick="parent.parent.close()">Cancel</button>
           <button onclick="parent.parent.close()" isdefault="true">OK</button>
       </view>
   </window>
</canvas>





--
Henry Minsky
Software Architect
hminsky-oDN+GTs16Eu/3pe1ocb+swC/G2K4zDHf@public.gmane.org


James Robey | 5 Oct 03:00 2009
Picon

Re: I think i might have answered my own question

P T Withington wrote:
> You can do this in on operation:
>
> new lz.Delegate(this, 'something', that, 'eventname');
>
> you'll want to hang on to a reference to the new delegate, so you can 
> unregister it in your destroy method, otherwise it causes a leak.
>
> We hope to fix this some day:
>
> http://jira.openlaszlo.org/jira/browse/LPP-225
>
> Also, we have some ideas about how to dynamically add handlers, so 
> that you don't have to understand the delegate mechanism to do what 
> you want.  (Hm. can't find the Jira for tha just now...)
>
> On 2009-10-04, at 16:58, James Robey wrote:
>
>>    Poor form, sorry, but i answered my own question. I didn't need to 
>> do make another attribute. i found another way around the problem 
>> using these two lines which are a common pattern:
>>
>> var something_method = new lz.Delegate(this, "something");
>> something_method.register(parent.after, "onmyevent");
>>
>>    That worked just fine for my needs once i realized it was all i 
>> needed. Thanks for reading it!
>>
>> .james. 
I wasn't very descriptive, sorry. Ideally i'd like to say

new lz.attribute(parent, {name:"somestate", type:"string", value:someval});

and have that work from that point on just as a normal attribute would. 
Am i missing a pattern that lets me do this clearly? It would be like 
annotations, i guess. and thanks for your response.


Gmane