Re: skinClass attribute of s:Panel

2020-01-13 Thread Takeshita Shoichiro
Alex, thanks.  I already changed it.

Will check this problem at home and get back to you.

2020年1月14日(火) 13:51 Alex Harui :

> Including a code snippet and the exact error is often helpful.
>
>
>
> I’m going to guess that the xmlns:s needs to be changed to library://
> ns.apache.org/royale/spark
>
>
>
> FWIW, SkinnableContainers with custom skins is new code so expect bugs.
>
>
>
> HTH,
>
> -Alex
>
>
>
> *From: *Takeshita Shoichiro 
> *Reply-To: *"users@royale.apache.org" 
> *Date: *Monday, January 13, 2020 at 8:38 PM
> *To: *"users@royale.apache.org" 
> *Subject: *Re: skinClass attribute of s:Panel
>
>
>
> Sorry, skinClass seems to be supported.
>
>
>
> My problem is s:SparkSkin is not resolved in PanelSkin.as.
>
>
>
> SparkSkin.as exists in SparkRoyale and seems to be emulated.
>
>
>
> So, is this my problem?
>
>
>
> 2020年1月14日(火) 13:20 Takeshita Shoichiro :
>
> Our application uses s:Panel with skinClass=“PanelSkin”
>
>
>
> PanelSkin is provided by Adobe.  At present, skinClass is not emulated.
>
>
>
> My understanding is Royale’s recommendation is to replace skin by CSS.
>
>
>
> Is there any example of this migration?
>
>
>
> Thanks.
>
> --
>
> Shoichiro Takeshita
> 武下 祥一郎
>
> --
>
> Shoichiro Takeshita
> 武下 祥一郎
>
-- 
Shoichiro Takeshita
武下 祥一郎


Re: flash.display.DisplayObjects and flash.text.TextFileld

2020-01-13 Thread Takeshita Shoichiro
Alex, thanks a lot.

Resolved.

2020年1月14日(火) 13:49 Alex Harui :

> I suggest writing it as:
>
>
>
> var c:IUIComponent = getChildAt(I);
>
>   if (!(c is UITextField))
>
>
>
> HTH,
>
> -Alex
>
>
>
>
>
> *From: *Takeshita Shoichiro 
> *Reply-To: *"users@royale.apache.org" 
> *Date: *Monday, January 13, 2020 at 8:07 PM
> *To: *"users@royale.apache.org" 
> *Subject: *Re: flash.display.DisplayObjects and flash.text.TextFileld
>
>
>
> Gustavo, thank.
>
>
>
> It seems mx.core.UIComponent and mx.core.UITextField can be used.
>
>
>
> However, still unresolved data types DisplayObject and TextField exist.
>
>
>
> The code snippet is
>
>
>
>   var c:DisplayObject = getChildAt(I);
>
>   if (!(c is TextField))
>
>
>
>
>
> 2020年1月14日(火) 11:56 De Carli Gustavo :
>
> Hello Takeshita,  maybe it can help you
>
>
>
>
> https://github.com/apache/royale-asjs/wiki/Creating-A-High-Level-Emulation-Component
> 
>
>
>
>
>
> Gustavo.
>
>
>
> El lun., 13 ene. 2020 a las 23:33, Takeshita Shoichiro ()
> escribió:
>
> Hi,
>
>
>
> Are there any possible equivalents of these two libraries in Apache Royale?
>
>
>
> Thanks
>
> --
>
> Shoichiro Takeshita
> 武下 祥一郎
>
> --
>
> Shoichiro Takeshita
> 武下 祥一郎
>
-- 
Shoichiro Takeshita
武下 祥一郎


Re: flash.display.DisplayObjects and flash.text.TextFileld

2020-01-13 Thread Alex Harui
I suggest writing it as:

var c:IUIComponent = getChildAt(I);
  if (!(c is UITextField))

HTH,
-Alex


From: Takeshita Shoichiro 
Reply-To: "users@royale.apache.org" 
Date: Monday, January 13, 2020 at 8:07 PM
To: "users@royale.apache.org" 
Subject: Re: flash.display.DisplayObjects and flash.text.TextFileld

Gustavo, thank.

It seems mx.core.UIComponent and mx.core.UITextField can be used.

However, still unresolved data types DisplayObject and TextField exist.

The code snippet is

  var c:DisplayObject = getChildAt(I);
  if (!(c is TextField))


2020年1月14日(火) 11:56 De Carli Gustavo 
mailto:gustavodeca...@gmail.com>>:
Hello Takeshita,  maybe it can help you

https://github.com/apache/royale-asjs/wiki/Creating-A-High-Level-Emulation-Component


Gustavo.

El lun., 13 ene. 2020 a las 23:33, Takeshita Shoichiro 
(mailto:jl03...@gmail.com>>) escribió:
Hi,

Are there any possible equivalents of these two libraries in Apache Royale?

Thanks
--
Shoichiro Takeshita
武下 祥一郎
--
Shoichiro Takeshita
武下 祥一郎


Re: skinClass attribute of s:Panel

2020-01-13 Thread Takeshita Shoichiro
Sorry, skinClass seems to be supported.

My problem is s:SparkSkin is not resolved in PanelSkin.as.

SparkSkin.as exists in SparkRoyale and seems to be emulated.

So, is this my problem?

2020年1月14日(火) 13:20 Takeshita Shoichiro :

> Our application uses s:Panel with skinClass=“PanelSkin”
>
> PanelSkin is provided by Adobe.  At present, skinClass is not emulated.
>
> My understanding is Royale’s recommendation is to replace skin by CSS.
>
> Is there any example of this migration?
>
> Thanks.
> --
> Shoichiro Takeshita
> 武下 祥一郎
>
-- 
Shoichiro Takeshita
武下 祥一郎


skinClass attribute of s:Panel

2020-01-13 Thread Takeshita Shoichiro
Our application uses s:Panel with skinClass=“PanelSkin”

PanelSkin is provided by Adobe.  At present, skinClass is not emulated.

My understanding is Royale’s recommendation is to replace skin by CSS.

Is there any example of this migration?

Thanks.
-- 
Shoichiro Takeshita
武下 祥一郎


Re: flash.display.DisplayObjects and flash.text.TextFileld

2020-01-13 Thread Takeshita Shoichiro
Gustavo, thank.

It seems mx.core.UIComponent and mx.core.UITextField can be used.

However, still unresolved data types DisplayObject and TextField exist.

The code snippet is

  var c:DisplayObject = getChildAt(I);
  if (!(c is TextField))


2020年1月14日(火) 11:56 De Carli Gustavo :

> Hello Takeshita,  maybe it can help you
>
>
> https://github.com/apache/royale-asjs/wiki/Creating-A-High-Level-Emulation-Component
>
>
> Gustavo.
>
> El lun., 13 ene. 2020 a las 23:33, Takeshita Shoichiro ()
> escribió:
>
>> Hi,
>>
>> Are there any possible equivalents of these two libraries in Apache
>> Royale?
>>
>> Thanks
>> --
>> Shoichiro Takeshita
>> 武下 祥一郎
>>
> --
Shoichiro Takeshita
武下 祥一郎


Re: flash.display.DisplayObjects and flash.text.TextFileld

2020-01-13 Thread De Carli Gustavo
Hello Takeshita,  maybe it can help you

https://github.com/apache/royale-asjs/wiki/Creating-A-High-Level-Emulation-Component

Gustavo.

El lun., 13 ene. 2020 a las 23:33, Takeshita Shoichiro ()
escribió:

> Hi,
>
> Are there any possible equivalents of these two libraries in Apache Royale?
>
> Thanks
> --
> Shoichiro Takeshita
> 武下 祥一郎
>


flash.display.DisplayObjects and flash.text.TextFileld

2020-01-13 Thread Takeshita Shoichiro
Hi,

Are there any possible equivalents of these two libraries in Apache Royale?

Thanks
-- 
Shoichiro Takeshita
武下 祥一郎


Re: Event and positioning list jewel

2020-01-13 Thread Carlos Rovira
Hi,

in fact as Yishay if DropDownList doesn't fit for you, you can use directly
Jewel ComboBox that supports itemrenderers that can be decorated with icons.
I think PopUpButton should be for custom views that need to be popped out
(like a form or other kind of screen). But for a language list, I'll be
using ComboBox. I think we should make as well another DropDownList that
not use the system select underneath, and be similar to ComboBox. Is
something to analyze...



El lun., 13 ene. 2020 a las 20:50, Yishay Weiss ()
escribió:

> Theoretically you should be able to use ComboBox and change the view and
> the popup beads. Then you could also reuse the HideComboBoxOnMouseDownBead.
>
>
>
> *From: *Maria Jose Esteve 
> *Sent: *Monday, January 13, 2020 5:04 PM
> *To: *users@royale.apache.org
> *Subject: *RE: Event and positioning list jewel
>
>
>
> Hi Carlos,
>
> I like the idea of PopUpButton. We really got to this point (button +
> list) because the dropdownlist was not built well but now, I like this
> button option more, it is more clean and simple.
>
> I can help you very little with the creation of the new component but,
> with its debugging sure it is.
>
> Let's see if I take a while today and I can extract the project code so
> you can see the example.
>
>
>
> Thanks for your help.
>
> Hiedra
>
>
>
> *De:* Carlos Rovira-2 [via Apache Royale Users] <
> ml+s20374n3193...@n8.nabble.com>
> *Enviado el:* lunes, 13 de enero de 2020 14:05
> *Para:* Maria Jose Esteve 
> *Asunto:* Re: Event and positioning list jewel
>
>
>
> Hi Maria Jose,
>
>
>
> For the Image/List need: related to what Yishay said, there're similar
> code in Jewel ComboBox and PopUp components, although, I think we'll need
> to do some new component that shows a Button and clicking on it open
> another user defined component and manages the "click outside" behavior.
> Let's call it "PopUpButton" to refer to it. I think it could be very useful
> since seems it could be use a lot, and that we'll make a cleaner use in
> apps with a well defined API.
>
>
>
>  For the List layout problem, I'll need more data. Can you post a simple
> code where I can find the problem? posting it here, or creating a gihub
> issue will make it more easy to understand the problem and try to find a
> solution.
>
>
>
> Thanks
>
>
>
> El lun., 13 ene. 2020 a las 11:10, Maria Jose Esteve (<[hidden email]
> >) escribió:
>
> Hi Yishay,
>
> Thanks for answering.
>
> I know that I have to adapt to PAYG, I only need a little more time and
> work but "I will get it": P
>
> I will look at the example of HideComboPopup that you indicate and I will
> tell you how it goes ...
>
> As for the design, the truth is that what I had thought was a "vertical"
> design ... I was debugging the CSS but I have not managed to recognize what
> property makes the list cut, it must be an inherited property, I imagine
> that foother I will continue researching and I will tell you more.
>
>
>
> Thanks Yishay.
>
> Hiedra
>
>
>
> *De:* yishayw [via Apache Royale Users] <[hidden email]
> >
> *Enviado el:* lunes, 13 de enero de 2020 10:40
> *Para:* Maria Jose Esteve <[hidden email]
> >
> *Asunto:* RE: Event and positioning list jewel
>
>
>
> Hi Maria,
>
>
>
> Flex was richer and heavier, and had lots of features built in just in
> case someone might need them. In Royale we stress a Pay As You Go
> philosophy which means your application should contain less code that you
> are not using. This means there will be less events and attributes out of
> the box. If you are porting a Flex application or are just looking for a
> more Flex like experience you might want to take look at the Royale
> mx/spark components. Most of the APIs you mentioned should work there out
> of the box.
>
>
>
> If you want to write a new application using Jewel then you’ll have to
> work a bit differently. So regarding events: ‘enter’ is not implemented,
> ‘show’ and ‘hide’ are, and ‘creationComplete’ can probably be replaced with
> ‘initComplete’ if it’s a container. We don’t have
> FlexMouseEvent.MOUSE_DOWN_OUTSIDE, but you can take a look at this bead [1]
> to understand how you can implement this behavior in your app.
>
>
>
> The horizontal layout issue I’m not sure about, maybe Carlos has an idea.
> You could also try inspecting the css to see why it’s not working and file
> a bug.
>
>
>
> Hope this helps,
>
> Yishay
>
>
>
> [1]
> https://github.com/apache/royale-asjs/blob/develop/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/HideComboPopupOnMouseDownBead.as
>
>
>
> *From: *[hidden email] 
> *Sent: *Sunday, January 12, 2020 9:19 PM
> *To: *[hidden email] 
> *Subject: *Event and positioning list jewel
>
>
>
> Hi, as many of us come from Flex and I'm used to using events like "enter"
> 

RE: Event and positioning list jewel

2020-01-13 Thread Yishay Weiss
Theoretically you should be able to use ComboBox and change the view and the 
popup beads. Then you could also reuse the HideComboBoxOnMouseDownBead.

From: Maria Jose Esteve
Sent: Monday, January 13, 2020 5:04 PM
To: users@royale.apache.org
Subject: RE: Event and positioning list jewel

Hi Carlos,
I like the idea of PopUpButton. We really got to this point (button + list) 
because the dropdownlist was not built well but now, I like this button option 
more, it is more clean and simple.
I can help you very little with the creation of the new component but, with its 
debugging sure it is.
Let's see if I take a while today and I can extract the project code so you can 
see the example.

Thanks for your help.
Hiedra

De: Carlos Rovira-2 [via Apache Royale Users] 
Enviado el: lunes, 13 de enero de 2020 14:05
Para: Maria Jose Esteve 
Asunto: Re: Event and positioning list jewel

Hi Maria Jose,

For the Image/List need: related to what Yishay said, there're similar code in 
Jewel ComboBox and PopUp components, although, I think we'll need to do some 
new component that shows a Button and clicking on it open another user defined 
component and manages the "click outside" behavior. Let's call it "PopUpButton" 
to refer to it. I think it could be very useful since seems it could be use a 
lot, and that we'll make a cleaner use in apps with a well defined API.

 For the List layout problem, I'll need more data. Can you post a simple code 
where I can find the problem? posting it here, or creating a gihub issue will 
make it more easy to understand the problem and try to find a solution.

Thanks

El lun., 13 ene. 2020 a las 11:10, Maria Jose Esteve (<[hidden 
email]>) escribió:
Hi Yishay,
Thanks for answering.
I know that I have to adapt to PAYG, I only need a little more time and work 
but "I will get it": P
I will look at the example of HideComboPopup that you indicate and I will tell 
you how it goes ...
As for the design, the truth is that what I had thought was a "vertical" design 
... I was debugging the CSS but I have not managed to recognize what property 
makes the list cut, it must be an inherited property, I imagine that foother I 
will continue researching and I will tell you more.

Thanks Yishay.
Hiedra

De: yishayw [via Apache Royale Users] <[hidden 
email]>
Enviado el: lunes, 13 de enero de 2020 10:40
Para: Maria Jose Esteve <[hidden 
email]>
Asunto: RE: Event and positioning list jewel

Hi Maria,

Flex was richer and heavier, and had lots of features built in just in case 
someone might need them. In Royale we stress a Pay As You Go philosophy which 
means your application should contain less code that you are not using. This 
means there will be less events and attributes out of the box. If you are 
porting a Flex application or are just looking for a more Flex like experience 
you might want to take look at the Royale mx/spark components. Most of the APIs 
you mentioned should work there out of the box.

If you want to write a new application using Jewel then you’ll have to work a 
bit differently. So regarding events: ‘enter’ is not implemented, ‘show’ and 
‘hide’ are, and ‘creationComplete’ can probably be replaced with ‘initComplete’ 
if it’s a container. We don’t have FlexMouseEvent.MOUSE_DOWN_OUTSIDE, but you 
can take a look at this bead [1] to understand how you can implement this 
behavior in your app.

The horizontal layout issue I’m not sure about, maybe Carlos has an idea. You 
could also try inspecting the css to see why it’s not working and file a bug.

Hope this helps,
Yishay

[1] 
https://github.com/apache/royale-asjs/blob/develop/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/HideComboPopupOnMouseDownBead.as

From: [hidden email]
Sent: Sunday, January 12, 2020 9:19 PM
To: [hidden email]
Subject: Event and positioning list jewel

Hi, as many of us come from Flex and I'm used to using events like "enter" 
"show" "hide" "creationcomplete" ...
I am working with the jewel components, which I love, but it is difficult for 
me to understand the new way of working, with Royale (beads, strand ...) For 
example, I have a List that I open when I click on an image and the I want to 
close if you click "outside" but I can't get it ... I only manage to close it 
if I select an item.
Another problem I have is that I cannot position the list "above the button, it 
is always positioned vertically centered, maybe it has to do with what is 
inside the FooterBar ... can you give me a hand?

Some catch:
a) General display:

[cid:image001.png@01D5C985.0BF003D0]

b) For you to see the elements in the list I have established a horizontal 
layout:




   






RE: Event and positioning list jewel

2020-01-13 Thread Maria Jose Esteve
Hi Carlos,
I like the idea of PopUpButton. We really got to this point (button + list) 
because the dropdownlist was not built well but now, I like this button option 
more, it is more clean and simple.
I can help you very little with the creation of the new component but, with its 
debugging sure it is.
Let's see if I take a while today and I can extract the project code so you can 
see the example.

Thanks for your help.
Hiedra

De: Carlos Rovira-2 [via Apache Royale Users] 
Enviado el: lunes, 13 de enero de 2020 14:05
Para: Maria Jose Esteve 
Asunto: Re: Event and positioning list jewel

Hi Maria Jose,

For the Image/List need: related to what Yishay said, there're similar code in 
Jewel ComboBox and PopUp components, although, I think we'll need to do some 
new component that shows a Button and clicking on it open another user defined 
component and manages the "click outside" behavior. Let's call it "PopUpButton" 
to refer to it. I think it could be very useful since seems it could be use a 
lot, and that we'll make a cleaner use in apps with a well defined API.

 For the List layout problem, I'll need more data. Can you post a simple code 
where I can find the problem? posting it here, or creating a gihub issue will 
make it more easy to understand the problem and try to find a solution.

Thanks

El lun., 13 ene. 2020 a las 11:10, Maria Jose Esteve (<[hidden 
email]>) escribió:
Hi Yishay,
Thanks for answering.
I know that I have to adapt to PAYG, I only need a little more time and work 
but "I will get it": P
I will look at the example of HideComboPopup that you indicate and I will tell 
you how it goes ...
As for the design, the truth is that what I had thought was a "vertical" design 
... I was debugging the CSS but I have not managed to recognize what property 
makes the list cut, it must be an inherited property, I imagine that foother I 
will continue researching and I will tell you more.

Thanks Yishay.
Hiedra

De: yishayw [via Apache Royale Users] <[hidden 
email]>
Enviado el: lunes, 13 de enero de 2020 10:40
Para: Maria Jose Esteve <[hidden 
email]>
Asunto: RE: Event and positioning list jewel

Hi Maria,

Flex was richer and heavier, and had lots of features built in just in case 
someone might need them. In Royale we stress a Pay As You Go philosophy which 
means your application should contain less code that you are not using. This 
means there will be less events and attributes out of the box. If you are 
porting a Flex application or are just looking for a more Flex like experience 
you might want to take look at the Royale mx/spark components. Most of the APIs 
you mentioned should work there out of the box.

If you want to write a new application using Jewel then you’ll have to work a 
bit differently. So regarding events: ‘enter’ is not implemented, ‘show’ and 
‘hide’ are, and ‘creationComplete’ can probably be replaced with ‘initComplete’ 
if it’s a container. We don’t have FlexMouseEvent.MOUSE_DOWN_OUTSIDE, but you 
can take a look at this bead [1] to understand how you can implement this 
behavior in your app.

The horizontal layout issue I’m not sure about, maybe Carlos has an idea. You 
could also try inspecting the css to see why it’s not working and file a bug.

Hope this helps,
Yishay

[1] 
https://github.com/apache/royale-asjs/blob/develop/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/HideComboPopupOnMouseDownBead.as

From: [hidden email]
Sent: Sunday, January 12, 2020 9:19 PM
To: [hidden email]
Subject: Event and positioning list jewel

Hi, as many of us come from Flex and I'm used to using events like "enter" 
"show" "hide" "creationcomplete" ...
I am working with the jewel components, which I love, but it is difficult for 
me to understand the new way of working, with Royale (beads, strand ...) For 
example, I have a List that I open when I click on an image and the I want to 
close if you click "outside" but I can't get it ... I only manage to close it 
if I select an item.
Another problem I have is that I cannot position the list "above the button, it 
is always positioned vertically centered, maybe it has to do with what is 
inside the FooterBar ... can you give me a hand?

Some catch:
a) General display:

[cid:image001.png@01D5C985.0BF003D0]

b) For you to see the elements in the list I have established a horizontal 
layout:




   








[cid:image002.png@01D5C985.0BF003D0]

c) This is displayed with the vertical layout: (observe that it is cut in the 
4th item)

[cid:image003.png@01D5C985.71C18940]

Any help will be welcome.
Thank you very much to all.
Hiedra.





If you reply to this email, your message will be added to 

Re: Jewel Themes Dynamic Switching

2020-01-13 Thread Carlos Rovira
Hi,

just let you know that I posted a new update for Tour De Jewel yesterday
where you can find Flat (Light) themes added to Tour De Jewel.

https://twitter.com/ApacheRoyale/status/1216476271955398659

As always, you can share and retweet to make it reach more people!

Hope you like it :)

Carlos



El mar., 7 ene. 2020 a las 13:13, Carlos Rovira ()
escribió:

> Hi Yishay,
>
> CSS files are copied to the resources/assets folder in the Tour De Jewel
> Application. Then I use "loadCSS" method function (present in Core) to load
> the CSS. In TDJ I remove as well the older themes to avoid have it linked.
>
>
> El dom., 5 ene. 2020 a las 12:44, Yishay Weiss ()
> escribió:
>
>> That looks really cool. Does this mean you can choose in runtime which
>> css to load into your application? In other words is all css preloaded or
>> is there a server call being made?
>>
>>
>>
>> *From:* Carlos Rovira 
>> *Sent:* Saturday, January 4, 2020 10:20:39 PM
>> *To:* users@royale.apache.org 
>> *Subject:* Jewel Themes Dynamic Switching
>>
>>
>>
>> Hi,
>>
>>
>>
>> if you are interested in jewel themes dynamic switching at runtime check
>> this tweet:
>>
>>
>>
>> https://twitter.com/carlosrovira/status/1213553124658561026
>>
>>
>>
>> And don't forget to retweet and share! ;)
>>
>>
>>
>> Best,
>>
>>
>>
>> --
>>
>> Carlos Rovira
>>
>> http://about.me/carlosrovira
>>
>>
>>
>> *From: *Carlos Rovira 
>> *Sent: *Saturday, January 4, 2020 10:20 PM
>> *To: *users@royale.apache.org
>> *Subject: *Jewel Themes Dynamic Switching
>>
>>
>>
>> Hi,
>>
>>
>>
>> if you are interested in jewel themes dynamic switching at runtime check
>> this tweet:
>>
>>
>>
>> https://twitter.com/carlosrovira/status/1213553124658561026
>>
>>
>>
>> And don't forget to retweet and share! ;)
>>
>>
>>
>> Best,
>>
>>
>>
>> --
>>
>> Carlos Rovira
>>
>> http://about.me/carlosrovira
>>
>>
>>
>>
>>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Event and positioning list jewel

2020-01-13 Thread Carlos Rovira
Hi Maria Jose,

For the Image/List need: related to what Yishay said, there're similar code
in Jewel ComboBox and PopUp components, although, I think we'll need to do
some new component that shows a Button and clicking on it open another user
defined component and manages the "click outside" behavior. Let's call it
"PopUpButton" to refer to it. I think it could be very useful since seems
it could be use a lot, and that we'll make a cleaner use in apps with a
well defined API.

 For the List layout problem, I'll need more data. Can you post a simple
code where I can find the problem? posting it here, or creating a gihub
issue will make it more easy to understand the problem and try to find a
solution.

Thanks

El lun., 13 ene. 2020 a las 11:10, Maria Jose Esteve ()
escribió:

> Hi Yishay,
>
> Thanks for answering.
>
> I know that I have to adapt to PAYG, I only need a little more time and
> work but "I will get it": P
>
> I will look at the example of HideComboPopup that you indicate and I will
> tell you how it goes ...
>
> As for the design, the truth is that what I had thought was a "vertical"
> design ... I was debugging the CSS but I have not managed to recognize what
> property makes the list cut, it must be an inherited property, I imagine
> that foother I will continue researching and I will tell you more.
>
>
>
> Thanks Yishay.
>
> Hiedra
>
>
>
> *De:* yishayw [via Apache Royale Users] 
> *Enviado el:* lunes, 13 de enero de 2020 10:40
> *Para:* Maria Jose Esteve 
> *Asunto:* RE: Event and positioning list jewel
>
>
>
> Hi Maria,
>
>
>
> Flex was richer and heavier, and had lots of features built in just in
> case someone might need them. In Royale we stress a Pay As You Go
> philosophy which means your application should contain less code that you
> are not using. This means there will be less events and attributes out of
> the box. If you are porting a Flex application or are just looking for a
> more Flex like experience you might want to take look at the Royale
> mx/spark components. Most of the APIs you mentioned should work there out
> of the box.
>
>
>
> If you want to write a new application using Jewel then you’ll have to
> work a bit differently. So regarding events: ‘enter’ is not implemented,
> ‘show’ and ‘hide’ are, and ‘creationComplete’ can probably be replaced with
> ‘initComplete’ if it’s a container. We don’t have
> FlexMouseEvent.MOUSE_DOWN_OUTSIDE, but you can take a look at this bead [1]
> to understand how you can implement this behavior in your app.
>
>
>
> The horizontal layout issue I’m not sure about, maybe Carlos has an idea.
> You could also try inspecting the css to see why it’s not working and file
> a bug.
>
>
>
> Hope this helps,
>
> Yishay
>
>
>
> [1]
> https://github.com/apache/royale-asjs/blob/develop/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/HideComboPopupOnMouseDownBead.as
>
>
>
> *From: *[hidden email]
> 
> *Sent: *Sunday, January 12, 2020 9:19 PM
> *To: *[hidden email] 
> *Subject: *Event and positioning list jewel
>
>
>
> Hi, as many of us come from Flex and I'm used to using events like "enter"
> "show" "hide" "creationcomplete" ...
>
> I am working with the jewel components, which I love, but it is difficult
> for me to understand the new way of working, with Royale (beads, strand
> ...) For example, I have a List that I open when I click on an image and
> the I want to close if you click "outside" but I can't get it ... I only
> manage to close it if I select an item.
>
> Another problem I have is that I cannot position the list "above the
> button, it is always positioned vertically centered, maybe it has to do
> with what is inside the FooterBar ... can you give me a hand?
>
>
>
> Some catch:
>
> a) General display:
>
>
>
> [image: cid:image001.png@01D5C985.0BF003D0]
>
>
>
> b) For you to see the elements in the list I have established a horizontal
> layout:
>
>
>
> 
>
>  visible.init="false" visible.exit="false" visible.noinit="false">
>
>   style="color: #0;"
>
>  itemRenderer="ImageDopDownItemRenderer" dataProvider=
> "{langModel.list}"  labelField="label"
>
>  change="lanManager_change(event)" >
>
>
>
> 
>
> 
>
> 
>
> 
>
>  "lanImage_Click(event)"/>
>
> 
>
> 
>
>
>
> [image: cid:image002.png@01D5C985.0BF003D0]
>
>
>
> c) This is displayed with the vertical layout: (observe that it is cut in
> the 4th item)
>
>
>
> [image: cid:image003.png@01D5C985.71C18940]
>
>
>
> Any help will be welcome.
>
> Thank you very much to all.
>
> Hiedra.
>
>
>
>
>
>
>
>
> --
>
> *If you reply to this email, your message will be added to the discussion
> below:*
>
>
> 

RE: Event and positioning list jewel

2020-01-13 Thread Maria Jose Esteve
Hi Yishay,
Thanks for answering.
I know that I have to adapt to PAYG, I only need a little more time and work 
but "I will get it": P
I will look at the example of HideComboPopup that you indicate and I will tell 
you how it goes ...
As for the design, the truth is that what I had thought was a "vertical" design 
... I was debugging the CSS but I have not managed to recognize what property 
makes the list cut, it must be an inherited property, I imagine that foother I 
will continue researching and I will tell you more.

Thanks Yishay.
Hiedra

De: yishayw [via Apache Royale Users] 
Enviado el: lunes, 13 de enero de 2020 10:40
Para: Maria Jose Esteve 
Asunto: RE: Event and positioning list jewel

Hi Maria,

Flex was richer and heavier, and had lots of features built in just in case 
someone might need them. In Royale we stress a Pay As You Go philosophy which 
means your application should contain less code that you are not using. This 
means there will be less events and attributes out of the box. If you are 
porting a Flex application or are just looking for a more Flex like experience 
you might want to take look at the Royale mx/spark components. Most of the APIs 
you mentioned should work there out of the box.

If you want to write a new application using Jewel then you’ll have to work a 
bit differently. So regarding events: ‘enter’ is not implemented, ‘show’ and 
‘hide’ are, and ‘creationComplete’ can probably be replaced with ‘initComplete’ 
if it’s a container. We don’t have FlexMouseEvent.MOUSE_DOWN_OUTSIDE, but you 
can take a look at this bead [1] to understand how you can implement this 
behavior in your app.

The horizontal layout issue I’m not sure about, maybe Carlos has an idea. You 
could also try inspecting the css to see why it’s not working and file a bug.

Hope this helps,
Yishay

[1] 
https://github.com/apache/royale-asjs/blob/develop/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/HideComboPopupOnMouseDownBead.as

From: [hidden email]
Sent: Sunday, January 12, 2020 9:19 PM
To: [hidden email]
Subject: Event and positioning list jewel

Hi, as many of us come from Flex and I'm used to using events like "enter" 
"show" "hide" "creationcomplete" ...
I am working with the jewel components, which I love, but it is difficult for 
me to understand the new way of working, with Royale (beads, strand ...) For 
example, I have a List that I open when I click on an image and the I want to 
close if you click "outside" but I can't get it ... I only manage to close it 
if I select an item.
Another problem I have is that I cannot position the list "above the button, it 
is always positioned vertically centered, maybe it has to do with what is 
inside the FooterBar ... can you give me a hand?

Some catch:
a) General display:

[cid:image001.png@01D5C985.0BF003D0]

b) For you to see the elements in the list I have established a horizontal 
layout:




   








[cid:image002.png@01D5C985.0BF003D0]

c) This is displayed with the vertical layout: (observe that it is cut in the 
4th item)

[cid:image003.png@01D5C985.71C18940]

Any help will be welcome.
Thank you very much to all.
Hiedra.





If you reply to this email, your message will be added to the discussion below:
http://apache-royale-users.20374.n8.nabble.com/Event-and-positioning-list-jewel-tp3190p3191.html
To start a new topic under Apache Royale Users, email 
ml+s20374n1...@n8.nabble.com
To unsubscribe from Apache Royale Users, click 
here.
NAML


RE: Event and positioning list jewel

2020-01-13 Thread Yishay Weiss
Hi Maria,

Flex was richer and heavier, and had lots of features built in just in case 
someone might need them. In Royale we stress a Pay As You Go philosophy which 
means your application should contain less code that you are not using. This 
means there will be less events and attributes out of the box. If you are 
porting a Flex application or are just looking for a more Flex like experience 
you might want to take look at the Royale mx/spark components. Most of the APIs 
you mentioned should work there out of the box.

If you want to write a new application using Jewel then you’ll have to work a 
bit differently. So regarding events: ‘enter’ is not implemented, ‘show’ and 
‘hide’ are, and ‘creationComplete’ can probably be replaced with ‘initComplete’ 
if it’s a container. We don’t have FlexMouseEvent.MOUSE_DOWN_OUTSIDE, but you 
can take a look at this bead [1] to understand how you can implement this 
behavior in your app.

The horizontal layout issue I’m not sure about, maybe Carlos has an idea. You 
could also try inspecting the css to see why it’s not working and file a bug.

Hope this helps,
Yishay

[1] 
https://github.com/apache/royale-asjs/blob/develop/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/HideComboPopupOnMouseDownBead.as

From: Maria Jose Esteve
Sent: Sunday, January 12, 2020 9:19 PM
To: users@royale.apache.org
Subject: Event and positioning list jewel

Hi, as many of us come from Flex and I'm used to using events like "enter" 
"show" "hide" "creationcomplete" ...
I am working with the jewel components, which I love, but it is difficult for 
me to understand the new way of working, with Royale (beads, strand ...) For 
example, I have a List that I open when I click on an image and the I want to 
close if you click "outside" but I can't get it ... I only manage to close it 
if I select an item.
Another problem I have is that I cannot position the list "above the button, it 
is always positioned vertically centered, maybe it has to do with what is 
inside the FooterBar ... can you give me a hand?

Some catch:
a) General display:

[cid:image001.png@01D5C985.0BF003D0]

b) For you to see the elements in the list I have established a horizontal 
layout:




   








[cid:image002.png@01D5C985.0BF003D0]

c) This is displayed with the vertical layout: (observe that it is cut in the 
4th item)

[cid:image003.png@01D5C985.71C18940]

Any help will be welcome.
Thank you very much to all.
Hiedra.