You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Yishay Weiss <yi...@hotmail.com> on 2021/03/03 12:23:14 UTC

RE: mx:ComboBox using prompt and labelFunction questions

Hi,

Good questions.

Commented out code is usually code taken from the Flex SDK which is not yet implemented in Royale.

Does this [1] answer the rest of your questions?

[1] Emulation Components · apache/royale-asjs Wiki (github.com)<https://github.com/apache/royale-asjs/wiki/emulation-components#creating-an-emulation-component>

From: gbarbosa<ma...@gmail.com>
Sent: Wednesday, February 24, 2021 3:22 AM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: mx:ComboBox using prompt and labelFunction questions

Hi Royale Devs,

Currently migrating a flex app to royale. I'm trying to use some comboBox
properties and they seem to not be working.

<mx:ComboBox
    prompt="Select..."
/>

This should display a comboBox with "Select..." correct? am I missing
something?

The SDK 0.9.8 seems to not be able to find the property labelFunction. This
is fine because I know not all properties have been completed for the
emulation components. My question here is when I look at the source code in
the SDK../MxRoyale/src/main/royale/mx/controls/ComboBox.as how can I tell if
a property has been implemented.

Where and/or how do the mxml component properties get set? I see some
commented out code regarding labelFunction. Is it just available on the
class? Does some documentation already exist for how to implement a property
for an emulation component?

Thank you for your time.



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


RE: mx:ComboBox using prompt and labelFunction questions

Posted by Yishay Weiss <yi...@hotmail.com>.
Yes, correct. MX components should have all behaviors accessible through the top level component, e.g. ComboBox. So if you don’t see prompt there then it isn’t implemented.

On the other hand, it may be possible to easily add that behavior by using one of the Basic beads, as I think is explained in the walkthrough.

From: gbarbosa<ma...@gmail.com>
Sent: Tuesday, March 9, 2021 11:59 PM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: Re: mx:ComboBox using prompt and labelFunction questions

Hi yishayw,

I hadn't seen that wiki article, that explained alot. I've went through it a
couple times. Is it correct to say that if a mx component doesn't have a
method implemented in it's class or any inherited class for it's inherited
property, it will not work?

Is this true for style properties as well?

Thank you again for your time.



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Re: mx:ComboBox using prompt and labelFunction questions

Posted by gbarbosa <gb...@gmail.com>.
Hi yishayw,

I hadn't seen that wiki article, that explained alot. I've went through it a
couple times. Is it correct to say that if a mx component doesn't have a
method implemented in it's class or any inherited class for it's inherited
property, it will not work?

Is this true for style properties as well?

Thank you again for your time.



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/

Re: mx:ComboBox using prompt and labelFunction questions

Posted by Yishay Weiss <yi...@hotmail.com>.
Hi,

Before we start a thread on how to add prompt to mx:ComboBox can you just confirm that you've seen the walkthrough [1] ?

[1] Getting MX Alert To Run · apache/royale-asjs Wiki (github.com)<https://github.com/apache/royale-asjs/wiki/getting-mx-alert-to-run>

Thanks

________________________________
From: gbarbosa <gb...@gmail.com>
Sent: Thursday, March 4, 2021 4:57 PM
To: dev@royale.apache.org <de...@royale.apache.org>
Subject: RE: mx:ComboBox using prompt and labelFunction questions

Hi yishayw,

I appreciate the response. I've read the linked wiki page and while it was a
great start to stubbing out components the main focus of that page is to get
your app to compile.

What was not obvious to me was how you go about adding properties and
implementing them, to a MXRoyale component. They talked about adding beads
and strands, but when I looked in the source code there didn't seem to be
beads or strands.

What I'm trying to make simpler is the process of determining if something
is a bug in royale vs something that is not implemented. Take mx:ComboBox
prompt for example. I'm not seeing any goog:DEBUG statements so it should be
implemented correct?



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/

RE: mx:ComboBox using prompt and labelFunction questions

Posted by gbarbosa <gb...@gmail.com>.
Hi yishayw,

I appreciate the response. I've read the linked wiki page and while it was a
great start to stubbing out components the main focus of that page is to get
your app to compile.

What was not obvious to me was how you go about adding properties and
implementing them, to a MXRoyale component. They talked about adding beads
and strands, but when I looked in the source code there didn't seem to be
beads or strands.

What I'm trying to make simpler is the process of determining if something
is a bug in royale vs something that is not implemented. Take mx:ComboBox
prompt for example. I'm not seeing any goog:DEBUG statements so it should be
implemented correct?



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/