You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by Serkan Taş <se...@likyateknoloji.com> on 2018/02/17 21:31:33 UTC

about includeIn keyword

Hi,

In my flex application i am using states for component visibility and 
activity. What is may be the Royal way ?

Example :

     <s:Group width="100%" height="100%" includeIn="someState" >
         <compsMyForm id="myForm" left="381" right="380" top="259" 
bottom="264" horizontalCenter="0" verticalCenter="-3"/>
     </s:Group>


Re: about includeIn keyword

Posted by Piotr Zarzycki <pi...@gmail.com>.
Awesome! Thank you Andrew! :)

On Sun, Feb 18, 2018, 00:22 Andrew Wetmore <co...@gmail.com> wrote:

> I have added a note about this difference between Flex and Royale to the
> help docs [1]
>
> [1]
> https://apache.github.io/royale-docs/User-interface/Flex-equivalents.html
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#m_-208481092747486713_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> On Sat, Feb 17, 2018 at 6:38 PM, Serkan Taş <serkan.tas@likyateknoloji.com
> > wrote:
>
>> Thanks Piotr,
>>
>> I'll work on...
>>
>> 18.02.2018 01:29 tarihinde Piotr Zarzycki yazdı:
>>
>> It is true that in flex you could have declarations in the application
>> level. In Royale the earliest component where you can have such
>> declarations is View. In general you can declare States in every component
>> which inherits from UIBase. <js:Application doesn't inherit from UIBase.
>>
>> In my example I'm declaring states for some component. Take a look into
>> my main file for example [1]. I'm also using there states. I cannot declare
>> them outside View.
>>
>> [1]  https://goo.gl/XARZsv
>>
>> Piotr
>>
>>
>> 2018-02-17 23:21 GMT+01:00 Serkan Taş <se...@likyateknoloji.com>:
>>
>>> To make it clear,
>>>
>>> In flex i declared the states in application and used in view components
>>> which are child of application, but not the application itself.
>>>
>>> As you have done in your example :
>>> <mdl:states>
>>>
>>> <js:State name="Examples"/>
>>>
>>> <js:State name="Utils"/>
>>>
>>> <js:State name="Snippets"/>
>>>
>>> <js:State name="About"/>
>>>
>>> <js:State name="Legal"/>
>>>
>>> </mdl:states>
>>>
>>>
>>> Is it also restricted to be declared in application ?
>>>
>>> 18.02.2018 01:17 tarihinde Piotr Zarzycki yazdı:
>>>
>>> Application itself cannot have states. States can appear in the View or
>>> other components which you will create.
>>>
>>> 2018-02-17 23:14 GMT+01:00 Serkan Taş <se...@likyateknoloji.com>:
>>>
>>>> Here is my mxml file :
>>>>
>>>> <?xml version="1.0" encoding="utf-8"?>
>>>> <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>>>> <http://ns.adobe.com/mxml/2009>
>>>>                 xmlns:js="library://ns.apache.org/royale/basic"
>>>>                 xmlns:local="*"
>>>>                 pageTitle="HelloWorld">
>>>>
>>>>     <js:states> (Gives error :  This tag is unexpected. It will be
>>>> ignored)
>>>>         <js:State name="Examples" />
>>>>     </js:states>
>>>>
>>>>     <fx:Declarations>
>>>>     </fx:Declarations>
>>>>
>>>>     <fx:Script>
>>>>         <![CDATA[
>>>>
>>>>         ]]>
>>>>     </fx:Script>
>>>>
>>>>     <js:valuesImpl>
>>>>         <js:SimpleCSSValuesImpl />
>>>>     </js:valuesImpl>
>>>>
>>>>     <js:initialView>
>>>>         <js:View width="100%" height="100%">
>>>>             <js:Container width="100%" height="100%" >
>>>>                 <js:Label id="lbl" text="Hello World" width="200" />
>>>>             </js:Container>
>>>>         </js:View>
>>>>     </js:initialView>
>>>>
>>>>  </js:Application>
>>>>
>>>> 18.02.2018 00:41 tarihinde Piotr Zarzycki yazdı:
>>>>
>>>> Hi Serkan
>>>>
>>>> In Royale you are using states the same as in Flex. You can check how
>>>> did I use them in one of my example. Declaration [1] and usage [2]
>>>>
>>>> [1]  https://goo.gl/TuL3Y3
>>>> [2]  https://goo.gl/EJroMo
>>>>
>>>> Thanks, Piotr
>>>>
>>>>
>>>> 2018-02-17 22:31 GMT+01:00 Serkan Taş <se...@likyateknoloji.com>:
>>>>
>>>>> Hi,
>>>>>
>>>>> In my flex application i am using states for component visibility and
>>>>> activity. What is may be the Royal way ?
>>>>>
>>>>> Example :
>>>>>
>>>>>     <s:Group width="100%" height="100%" includeIn="someState" >
>>>>>         <compsMyForm id="myForm" left="381" right="380" top="259"
>>>>> bottom="264" horizontalCenter="0" verticalCenter="-3"/>
>>>>>     </s:Group>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Piotr Zarzycki
>>>>
>>>> Patreon: *https://www.patreon.com/piotrzarzycki
>>>> <https://www.patreon.com/piotrzarzycki>*
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Piotr Zarzycki
>>>
>>> Patreon: *https://www.patreon.com/piotrzarzycki
>>> <https://www.patreon.com/piotrzarzycki>*
>>>
>>>
>>>
>>
>>
>> --
>>
>> Piotr Zarzycki
>>
>> Patreon: *https://www.patreon.com/piotrzarzycki
>> <https://www.patreon.com/piotrzarzycki>*
>>
>>
>>
>
>
> --
> Andrew Wetmore
>
> http://cottage14.blogspot.com/
>
>
>
>
>

Re: about includeIn keyword

Posted by Andrew Wetmore <co...@gmail.com>.
I have added a note about this difference between Flex and Royale to the
help docs [1]

[1]
https://apache.github.io/royale-docs/User-interface/Flex-equivalents.html

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sat, Feb 17, 2018 at 6:38 PM, Serkan Taş <se...@likyateknoloji.com>
wrote:

> Thanks Piotr,
>
> I'll work on...
>
> 18.02.2018 01:29 tarihinde Piotr Zarzycki yazdı:
>
> It is true that in flex you could have declarations in the application
> level. In Royale the earliest component where you can have such
> declarations is View. In general you can declare States in every component
> which inherits from UIBase. <js:Application doesn't inherit from UIBase.
>
> In my example I'm declaring states for some component. Take a look into my
> main file for example [1]. I'm also using there states. I cannot declare
> them outside View.
>
> [1]  https://goo.gl/XARZsv
>
> Piotr
>
>
> 2018-02-17 23:21 GMT+01:00 Serkan Taş <se...@likyateknoloji.com>:
>
>> To make it clear,
>>
>> In flex i declared the states in application and used in view components
>> which are child of application, but not the application itself.
>>
>> As you have done in your example :
>> <mdl:states>
>>
>> <js:State name="Examples"/>
>>
>> <js:State name="Utils"/>
>>
>> <js:State name="Snippets"/>
>>
>> <js:State name="About"/>
>>
>> <js:State name="Legal"/>
>>
>> </mdl:states>
>>
>>
>> Is it also restricted to be declared in application ?
>>
>> 18.02.2018 01:17 tarihinde Piotr Zarzycki yazdı:
>>
>> Application itself cannot have states. States can appear in the View or
>> other components which you will create.
>>
>> 2018-02-17 23:14 GMT+01:00 Serkan Taş <se...@likyateknoloji.com>:
>>
>>> Here is my mxml file :
>>>
>>> <?xml version="1.0" encoding="utf-8"?>
>>> <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>>> <http://ns.adobe.com/mxml/2009>
>>>                 xmlns:js="library://ns.apache.org/royale/basic"
>>>                 xmlns:local="*"
>>>                 pageTitle="HelloWorld">
>>>
>>>     <js:states> (Gives error :  This tag is unexpected. It will be
>>> ignored)
>>>         <js:State name="Examples" />
>>>     </js:states>
>>>
>>>     <fx:Declarations>
>>>     </fx:Declarations>
>>>
>>>     <fx:Script>
>>>         <![CDATA[
>>>
>>>         ]]>
>>>     </fx:Script>
>>>
>>>     <js:valuesImpl>
>>>         <js:SimpleCSSValuesImpl />
>>>     </js:valuesImpl>
>>>
>>>     <js:initialView>
>>>         <js:View width="100%" height="100%">
>>>             <js:Container width="100%" height="100%" >
>>>                 <js:Label id="lbl" text="Hello World" width="200" />
>>>             </js:Container>
>>>         </js:View>
>>>     </js:initialView>
>>>
>>>  </js:Application>
>>>
>>> 18.02.2018 00:41 tarihinde Piotr Zarzycki yazdı:
>>>
>>> Hi Serkan
>>>
>>> In Royale you are using states the same as in Flex. You can check how
>>> did I use them in one of my example. Declaration [1] and usage [2]
>>>
>>> [1]  https://goo.gl/TuL3Y3
>>> [2]  https://goo.gl/EJroMo
>>>
>>> Thanks, Piotr
>>>
>>>
>>> 2018-02-17 22:31 GMT+01:00 Serkan Taş <se...@likyateknoloji.com>:
>>>
>>>> Hi,
>>>>
>>>> In my flex application i am using states for component visibility and
>>>> activity. What is may be the Royal way ?
>>>>
>>>> Example :
>>>>
>>>>     <s:Group width="100%" height="100%" includeIn="someState" >
>>>>         <compsMyForm id="myForm" left="381" right="380" top="259"
>>>> bottom="264" horizontalCenter="0" verticalCenter="-3"/>
>>>>     </s:Group>
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Piotr Zarzycki
>>>
>>> Patreon: *https://www.patreon.com/piotrzarzycki
>>> <https://www.patreon.com/piotrzarzycki>*
>>>
>>>
>>>
>>
>>
>> --
>>
>> Piotr Zarzycki
>>
>> Patreon: *https://www.patreon.com/piotrzarzycki
>> <https://www.patreon.com/piotrzarzycki>*
>>
>>
>>
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>
>
>


-- 
Andrew Wetmore

http://cottage14.blogspot.com/

Re: about includeIn keyword

Posted by Serkan Taş <se...@likyateknoloji.com>.
Thanks Piotr,

I'll work on...

18.02.2018 01:29 tarihinde Piotr Zarzycki yazdı:
> It is true that in flex you could have declarations in the application 
> level. In Royale the earliest component where you can have such 
> declarations is View. In general you can declare States in every 
> component which inherits from UIBase. <js:Application doesn't inherit 
> from UIBase.
>
> In my example I'm declaring states for some component. Take a look 
> into my main file for example [1]. I'm also using there states. I 
> cannot declare them outside View.
>
> [1] https://goo.gl/XARZsv
>
> Piotr
>
>
> 2018-02-17 23:21 GMT+01:00 Serkan Taş <serkan.tas@likyateknoloji.com 
> <ma...@likyateknoloji.com>>:
>
>     To make it clear,
>
>     In flex i declared the states in application and used in view
>     components which are child of application, but not the application
>     itself.
>
>     As you have done in your example :
>
>     <mdl:states>
>
>     	<js:State name="Examples"/>
>
>     	<js:State name="Utils"/>
>
>     	<js:State name="Snippets"/>
>
>     	<js:State name="About"/>
>
>     	<js:State name="Legal"/>
>
>     	</mdl:states>
>
>
>     Is it also restricted to be declared in application ?
>
>
>     18.02.2018 01:17 tarihinde Piotr Zarzycki yazdı:
>>     Application itself cannot have states. States can appear in the
>>     View or other components which you will create.
>>
>>     2018-02-17 23:14 GMT+01:00 Serkan Taş
>>     <serkan.tas@likyateknoloji.com
>>     <ma...@likyateknoloji.com>>:
>>
>>         Here is my mxml file :
>>
>>         <?xml version="1.0" encoding="utf-8"?>
>>         <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>>         <http://ns.adobe.com/mxml/2009>
>>                        
>>         xmlns:js="library://ns.apache.org/royale/basic
>>         <http://ns.apache.org/royale/basic>"
>>                         xmlns:local="*"
>>                         pageTitle="HelloWorld">
>>
>>             <js:states> (Gives error :  This tag is unexpected. It
>>         will be ignored)
>>                 <js:State name="Examples" />
>>             </js:states>
>>
>>             <fx:Declarations>
>>             </fx:Declarations>
>>
>>             <fx:Script>
>>                 <![CDATA[
>>
>>                 ]]>
>>             </fx:Script>
>>
>>             <js:valuesImpl>
>>                 <js:SimpleCSSValuesImpl />
>>             </js:valuesImpl>
>>
>>             <js:initialView>
>>                 <js:View width="100%" height="100%">
>>                     <js:Container width="100%" height="100%" >
>>                         <js:Label id="lbl" text="Hello World"
>>         width="200" />
>>                     </js:Container>
>>                 </js:View>
>>             </js:initialView>
>>
>>          </js:Application>
>>
>>
>>         18.02.2018 00:41 tarihinde Piotr Zarzycki yazdı:
>>>         Hi Serkan
>>>
>>>         In Royale you are using states the same as in Flex. You can
>>>         check how did I use them in one of my example. Declaration
>>>         [1] and usage [2]
>>>
>>>         [1] https://goo.gl/TuL3Y3
>>>         [2] https://goo.gl/EJroMo
>>>
>>>         Thanks, Piotr
>>>
>>>
>>>         2018-02-17 22:31 GMT+01:00 Serkan Taş
>>>         <serkan.tas@likyateknoloji.com
>>>         <ma...@likyateknoloji.com>>:
>>>
>>>             Hi,
>>>
>>>             In my flex application i am using states for component
>>>             visibility and activity. What is may be the Royal way ?
>>>
>>>             Example :
>>>
>>>                 <s:Group width="100%" height="100%"
>>>             includeIn="someState" >
>>>                     <compsMyForm id="myForm" left="381" right="380"
>>>             top="259" bottom="264" horizontalCenter="0"
>>>             verticalCenter="-3"/>
>>>                 </s:Group>
>>>
>>>
>>>
>>>
>>>         -- 
>>>
>>>         Piotr Zarzycki
>>>
>>>         Patreon: _https://www.patreon.com/piotrzarzycki
>>>         <https://www.patreon.com/piotrzarzycki>_
>>>
>>
>>
>>
>>
>>     -- 
>>
>>     Piotr Zarzycki
>>
>>     Patreon: _https://www.patreon.com/piotrzarzycki
>>     <https://www.patreon.com/piotrzarzycki>_
>>
>
>
>
>
> -- 
>
> Piotr Zarzycki
>
> Patreon: _https://www.patreon.com/piotrzarzycki_
>


Re: about includeIn keyword

Posted by Piotr Zarzycki <pi...@gmail.com>.
It is true that in flex you could have declarations in the application
level. In Royale the earliest component where you can have such
declarations is View. In general you can declare States in every component
which inherits from UIBase. <js:Application doesn't inherit from UIBase.

In my example I'm declaring states for some component. Take a look into my
main file for example [1]. I'm also using there states. I cannot declare
them outside View.

[1]  https://goo.gl/XARZsv

Piotr


2018-02-17 23:21 GMT+01:00 Serkan Taş <se...@likyateknoloji.com>:

> To make it clear,
>
> In flex i declared the states in application and used in view components
> which are child of application, but not the application itself.
>
> As you have done in your example :
> <mdl:states>
>
> <js:State name="Examples"/>
>
> <js:State name="Utils"/>
>
> <js:State name="Snippets"/>
>
> <js:State name="About"/>
>
> <js:State name="Legal"/>
>
> </mdl:states>
>
>
> Is it also restricted to be declared in application ?
>
> 18.02.2018 01:17 tarihinde Piotr Zarzycki yazdı:
>
> Application itself cannot have states. States can appear in the View or
> other components which you will create.
>
> 2018-02-17 23:14 GMT+01:00 Serkan Taş <se...@likyateknoloji.com>:
>
>> Here is my mxml file :
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>> <http://ns.adobe.com/mxml/2009>
>>                 xmlns:js="library://ns.apache.org/royale/basic"
>>                 xmlns:local="*"
>>                 pageTitle="HelloWorld">
>>
>>     <js:states> (Gives error :  This tag is unexpected. It will be
>> ignored)
>>         <js:State name="Examples" />
>>     </js:states>
>>
>>     <fx:Declarations>
>>     </fx:Declarations>
>>
>>     <fx:Script>
>>         <![CDATA[
>>
>>         ]]>
>>     </fx:Script>
>>
>>     <js:valuesImpl>
>>         <js:SimpleCSSValuesImpl />
>>     </js:valuesImpl>
>>
>>     <js:initialView>
>>         <js:View width="100%" height="100%">
>>             <js:Container width="100%" height="100%" >
>>                 <js:Label id="lbl" text="Hello World" width="200" />
>>             </js:Container>
>>         </js:View>
>>     </js:initialView>
>>
>>  </js:Application>
>>
>> 18.02.2018 00:41 tarihinde Piotr Zarzycki yazdı:
>>
>> Hi Serkan
>>
>> In Royale you are using states the same as in Flex. You can check how did
>> I use them in one of my example. Declaration [1] and usage [2]
>>
>> [1]  https://goo.gl/TuL3Y3
>> [2]  https://goo.gl/EJroMo
>>
>> Thanks, Piotr
>>
>>
>> 2018-02-17 22:31 GMT+01:00 Serkan Taş <se...@likyateknoloji.com>:
>>
>>> Hi,
>>>
>>> In my flex application i am using states for component visibility and
>>> activity. What is may be the Royal way ?
>>>
>>> Example :
>>>
>>>     <s:Group width="100%" height="100%" includeIn="someState" >
>>>         <compsMyForm id="myForm" left="381" right="380" top="259"
>>> bottom="264" horizontalCenter="0" verticalCenter="-3"/>
>>>     </s:Group>
>>>
>>>
>>
>>
>> --
>>
>> Piotr Zarzycki
>>
>> Patreon: *https://www.patreon.com/piotrzarzycki
>> <https://www.patreon.com/piotrzarzycki>*
>>
>>
>>
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>
>
>


-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

Re: about includeIn keyword

Posted by Serkan Taş <se...@likyateknoloji.com>.
To make it clear,

In flex i declared the states in application and used in view components 
which are child of application, but not the application itself.

As you have done in your example :

<mdl:states>

	<js:State name="Examples"/>

	<js:State name="Utils"/>

	<js:State name="Snippets"/>

	<js:State name="About"/>

	<js:State name="Legal"/>

	</mdl:states>


Is it also restricted to be declared in application ?


18.02.2018 01:17 tarihinde Piotr Zarzycki yazdı:
> Application itself cannot have states. States can appear in the View 
> or other components which you will create.
>
> 2018-02-17 23:14 GMT+01:00 Serkan Taş <serkan.tas@likyateknoloji.com 
> <ma...@likyateknoloji.com>>:
>
>     Here is my mxml file :
>
>     <?xml version="1.0" encoding="utf-8"?>
>     <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>     <http://ns.adobe.com/mxml/2009>
>                     xmlns:js="library://ns.apache.org/royale/basic
>     <http://ns.apache.org/royale/basic>"
>                     xmlns:local="*"
>                     pageTitle="HelloWorld">
>
>         <js:states> (Gives error :  This tag is unexpected. It will be
>     ignored)
>             <js:State name="Examples" />
>         </js:states>
>
>         <fx:Declarations>
>         </fx:Declarations>
>
>         <fx:Script>
>             <![CDATA[
>
>             ]]>
>         </fx:Script>
>
>         <js:valuesImpl>
>             <js:SimpleCSSValuesImpl />
>         </js:valuesImpl>
>
>         <js:initialView>
>             <js:View width="100%" height="100%">
>                 <js:Container width="100%" height="100%" >
>                     <js:Label id="lbl" text="Hello World" width="200" />
>                 </js:Container>
>             </js:View>
>         </js:initialView>
>
>      </js:Application>
>
>
>     18.02.2018 00:41 tarihinde Piotr Zarzycki yazdı:
>>     Hi Serkan
>>
>>     In Royale you are using states the same as in Flex. You can check
>>     how did I use them in one of my example. Declaration [1] and
>>     usage [2]
>>
>>     [1] https://goo.gl/TuL3Y3
>>     [2] https://goo.gl/EJroMo
>>
>>     Thanks, Piotr
>>
>>
>>     2018-02-17 22:31 GMT+01:00 Serkan Taş
>>     <serkan.tas@likyateknoloji.com
>>     <ma...@likyateknoloji.com>>:
>>
>>         Hi,
>>
>>         In my flex application i am using states for component
>>         visibility and activity. What is may be the Royal way ?
>>
>>         Example :
>>
>>             <s:Group width="100%" height="100%" includeIn="someState" >
>>                 <compsMyForm id="myForm" left="381" right="380"
>>         top="259" bottom="264" horizontalCenter="0" verticalCenter="-3"/>
>>             </s:Group>
>>
>>
>>
>>
>>     -- 
>>
>>     Piotr Zarzycki
>>
>>     Patreon: _https://www.patreon.com/piotrzarzycki
>>     <https://www.patreon.com/piotrzarzycki>_
>>
>
>
>
>
> -- 
>
> Piotr Zarzycki
>
> Patreon: _https://www.patreon.com/piotrzarzycki_
>


Re: about includeIn keyword

Posted by Piotr Zarzycki <pi...@gmail.com>.
Application itself cannot have states. States can appear in the View or
other components which you will create.

2018-02-17 23:14 GMT+01:00 Serkan Taş <se...@likyateknoloji.com>:

> Here is my mxml file :
>
> <?xml version="1.0" encoding="utf-8"?>
> <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> <http://ns.adobe.com/mxml/2009>
>                 xmlns:js="library://ns.apache.org/royale/basic"
>                 xmlns:local="*"
>                 pageTitle="HelloWorld">
>
>     <js:states> (Gives error :  This tag is unexpected. It will be ignored)
>         <js:State name="Examples" />
>     </js:states>
>
>     <fx:Declarations>
>     </fx:Declarations>
>
>     <fx:Script>
>         <![CDATA[
>
>         ]]>
>     </fx:Script>
>
>     <js:valuesImpl>
>         <js:SimpleCSSValuesImpl />
>     </js:valuesImpl>
>
>     <js:initialView>
>         <js:View width="100%" height="100%">
>             <js:Container width="100%" height="100%" >
>                 <js:Label id="lbl" text="Hello World" width="200" />
>             </js:Container>
>         </js:View>
>     </js:initialView>
>
>  </js:Application>
>
> 18.02.2018 00:41 tarihinde Piotr Zarzycki yazdı:
>
> Hi Serkan
>
> In Royale you are using states the same as in Flex. You can check how did
> I use them in one of my example. Declaration [1] and usage [2]
>
> [1]  https://goo.gl/TuL3Y3
> [2]  https://goo.gl/EJroMo
>
> Thanks, Piotr
>
>
> 2018-02-17 22:31 GMT+01:00 Serkan Taş <se...@likyateknoloji.com>:
>
>> Hi,
>>
>> In my flex application i am using states for component visibility and
>> activity. What is may be the Royal way ?
>>
>> Example :
>>
>>     <s:Group width="100%" height="100%" includeIn="someState" >
>>         <compsMyForm id="myForm" left="381" right="380" top="259"
>> bottom="264" horizontalCenter="0" verticalCenter="-3"/>
>>     </s:Group>
>>
>>
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>
>
>


-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

Re: about includeIn keyword

Posted by Serkan Taş <se...@likyateknoloji.com>.
Here is my mxml file :

<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                 xmlns:js="library://ns.apache.org/royale/basic"
                 xmlns:local="*"
                 pageTitle="HelloWorld">

     <js:states> (Gives error :  This tag is unexpected. It will be ignored)
         <js:State name="Examples" />
     </js:states>

     <fx:Declarations>
     </fx:Declarations>

     <fx:Script>
         <![CDATA[

         ]]>
     </fx:Script>

     <js:valuesImpl>
         <js:SimpleCSSValuesImpl />
     </js:valuesImpl>

     <js:initialView>
         <js:View width="100%" height="100%">
             <js:Container width="100%" height="100%" >
                 <js:Label id="lbl" text="Hello World" width="200" />
             </js:Container>
         </js:View>
     </js:initialView>

  </js:Application>


18.02.2018 00:41 tarihinde Piotr Zarzycki yazdı:
> Hi Serkan
>
> In Royale you are using states the same as in Flex. You can check how 
> did I use them in one of my example. Declaration [1] and usage [2]
>
> [1] https://goo.gl/TuL3Y3
> [2] https://goo.gl/EJroMo
>
> Thanks, Piotr
>
>
> 2018-02-17 22:31 GMT+01:00 Serkan Taş <serkan.tas@likyateknoloji.com 
> <ma...@likyateknoloji.com>>:
>
>     Hi,
>
>     In my flex application i am using states for component visibility
>     and activity. What is may be the Royal way ?
>
>     Example :
>
>         <s:Group width="100%" height="100%" includeIn="someState" >
>             <compsMyForm id="myForm" left="381" right="380" top="259"
>     bottom="264" horizontalCenter="0" verticalCenter="-3"/>
>         </s:Group>
>
>
>
>
> -- 
>
> Piotr Zarzycki
>
> Patreon: _https://www.patreon.com/piotrzarzycki_
>


Re: about includeIn keyword

Posted by Piotr Zarzycki <pi...@gmail.com>.
Hi Serkan

In Royale you are using states the same as in Flex. You can check how did I
use them in one of my example. Declaration [1] and usage [2]

[1]  https://goo.gl/TuL3Y3
[2]  https://goo.gl/EJroMo

Thanks, Piotr


2018-02-17 22:31 GMT+01:00 Serkan Taş <se...@likyateknoloji.com>:

> Hi,
>
> In my flex application i am using states for component visibility and
> activity. What is may be the Royal way ?
>
> Example :
>
>     <s:Group width="100%" height="100%" includeIn="someState" >
>         <compsMyForm id="myForm" left="381" right="380" top="259"
> bottom="264" horizontalCenter="0" verticalCenter="-3"/>
>     </s:Group>
>
>


-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*