You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Piotr Zarzycki <pi...@gmail.com> on 2018/01/13 12:10:27 UTC

Clean up Alert

Hi Guys,

I'm working lately on some example using Basic/Express only components.
It's going quite good, especially with Peter's help with collections.
Now I need to user Alert, but it seems to me that this component need a bit
more love.

In case of JS sight it doesn't have View, but for SWF it has. I believe it
should create there all the parts of the Alert.

In the next days I'm going to fix all the issues related to that component.
Let me know if someone have something against to that Action. ;)

Thanks,
-- 

Piotr Zarzycki

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

Re: Clean up Alert

Posted by Alex Harui <ah...@adobe.com.INVALID>.
FWIW,  Flex PopUpManager did several things.  It managed having more than
one popup that you could switch between, like a spell-check or 'find text'
floating window and maybe a color palette.  It could talk to SWF in other
security domains.

Most of the time you don't need all of that.  One thing shows up, then
goes away.  Or one thing shows up, then something stacks on top of that,
then you dismiss the top thing, then the first popup.
UIUtils.findPopUpHost is our API for these scenarios.  It returns the
parent you can call addElement on that will put it above everything else
on screen.

HTH,
-Alex

On 1/14/18, 4:47 AM, "Piotr Zarzycki" <pi...@gmail.com> wrote:

>I doubt we should get in the Royale something like PopupManager. I think
>it
>should be on the application developer sight to give popup appropriate
>Parent. Several frameworks like PureMVC, Parsley make it easy.
>PureMVC is working great with Royale.
>
>Thanks, Piotr
>
>2018-01-14 13:44 GMT+01:00 Carlos Rovira <ca...@apache.org>:
>
>> Popups In flex always was tricky, if you remember about Application
>>tree vs
>> SystemManager tree where all popups hangs.
>> we should try to get in Royale as smooth as possible, but we need to
>>start
>> with something and then try to solve of the old and new problems. It's a
>> matter of iterate :)
>>
>> Thanks!
>>
>> 2018-01-14 13:15 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:
>>
>> > Hi Carlos,
>> >
>> > No problem. The one thing which bothers me is that maybe Alert should
>> have
>> > position: absolute. In my application I did it as an absolute. Will
>>see
>> > once you get your hands into that. ;)
>> > I have also found couple of scenario with data binding which were not
>> > working. I had to make some workaround. If I found enough energy I
>>will
>> try
>> > to extract them to the smaller examples.
>> >
>> > Thanks, Piotr
>> >
>> > 2018-01-14 13:04 GMT+01:00 Carlos Rovira <ca...@apache.org>:
>> >
>> > > Hi Piotr,
>> > >
>> > > nice job! thanks to do this, hope to reach soon my theming task and
>> start
>> > > with components like this, slider that seems to be prepared for this
>> task
>> > > thanks!
>> > >
>> > > 2018-01-14 6:31 GMT+01:00 piotrz <pi...@apache.org>:
>> > >
>> > > > I have update Alert visually to the previous state, where control
>>bar
>> > was
>> > > > white.
>> > > >
>> > > > 
>><https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-r
>>oyale-development.20373.n8.nabble&data=02%7C01%7Caharui%40adobe.com%7C038
>>410184729492bf12f08d55b4d0a7b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>>7C636515308831041844&sdata=2340DS74l4QjPOSNqeOswDXPlvJU9AR9vJv3VRYhurg%3D
>>&reserved=0.
>> > > com/file/t1/no_title_no_
>> > > > borders_control_bar.png>
>> > > >
>> > > > Thanks,
>> > > > Piotr
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > Sent from:
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-ro
>>yale-development.20373.n8.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com
>>%7C038410184729492bf12f08d55b4d0a7b%7Cfa7b1b5a7b34438794aed2c178decee1%7C
>>0%7C0%7C636515308831041844&sdata=QGQooJynp0TzCqL9DEnoTtG8Am9QcOe%2FQ%2Bhh
>>d25mCvM%3D&reserved=0
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > Carlos Rovira
>> > > 
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%
>>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C038410184729492bf12f08
>>d55b4d0a7b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63651530883104184
>>4&sdata=wAIg4YTfS89xKOen0IrgzLkbl%2B%2FO0Tipjkl2tCu5uFo%3D&reserved=0
>> > >
>> >
>> >
>> >
>> > --
>> >
>> > Piotr Zarzycki
>> >
>> > Patreon: 
>>*https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pat
>>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C038410184729
>>492bf12f08d55b4d0a7b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365153
>>08831041844&sdata=3ncGqWGr2gNAd62jLO0XpR2uw4AnujRT%2BaHTmRTQXNk%3D&reserv
>>ed=0
>> > 
>><https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pat
>>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C038410184729
>>492bf12f08d55b4d0a7b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365153
>>08831041844&sdata=3ncGqWGr2gNAd62jLO0XpR2uw4AnujRT%2BaHTmRTQXNk%3D&reserv
>>ed=0>*
>> >
>>
>>
>>
>> --
>> Carlos Rovira
>> 
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%
>>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C038410184729492bf12f08
>>d55b4d0a7b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63651530883104184
>>4&sdata=wAIg4YTfS89xKOen0IrgzLkbl%2B%2FO0Tipjkl2tCu5uFo%3D&reserved=0
>>
>
>
>
>-- 
>
>Piotr Zarzycki
>
>Patreon: 
>*https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patr
>eon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C03841018472949
>2bf12f08d55b4d0a7b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365153088
>31041844&sdata=3ncGqWGr2gNAd62jLO0XpR2uw4AnujRT%2BaHTmRTQXNk%3D&reserved=0
><https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patr
>eon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C03841018472949
>2bf12f08d55b4d0a7b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365153088
>31041844&sdata=3ncGqWGr2gNAd62jLO0XpR2uw4AnujRT%2BaHTmRTQXNk%3D&reserved=0
>>*


Re: Clean up Alert

Posted by Piotr Zarzycki <pi...@gmail.com>.
I doubt we should get in the Royale something like PopupManager. I think it
should be on the application developer sight to give popup appropriate
Parent. Several frameworks like PureMVC, Parsley make it easy.
PureMVC is working great with Royale.

Thanks, Piotr

2018-01-14 13:44 GMT+01:00 Carlos Rovira <ca...@apache.org>:

> Popups In flex always was tricky, if you remember about Application tree vs
> SystemManager tree where all popups hangs.
> we should try to get in Royale as smooth as possible, but we need to start
> with something and then try to solve of the old and new problems. It's a
> matter of iterate :)
>
> Thanks!
>
> 2018-01-14 13:15 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:
>
> > Hi Carlos,
> >
> > No problem. The one thing which bothers me is that maybe Alert should
> have
> > position: absolute. In my application I did it as an absolute. Will see
> > once you get your hands into that. ;)
> > I have also found couple of scenario with data binding which were not
> > working. I had to make some workaround. If I found enough energy I will
> try
> > to extract them to the smaller examples.
> >
> > Thanks, Piotr
> >
> > 2018-01-14 13:04 GMT+01:00 Carlos Rovira <ca...@apache.org>:
> >
> > > Hi Piotr,
> > >
> > > nice job! thanks to do this, hope to reach soon my theming task and
> start
> > > with components like this, slider that seems to be prepared for this
> task
> > > thanks!
> > >
> > > 2018-01-14 6:31 GMT+01:00 piotrz <pi...@apache.org>:
> > >
> > > > I have update Alert visually to the previous state, where control bar
> > was
> > > > white.
> > > >
> > > > <http://apache-royale-development.20373.n8.nabble.
> > > com/file/t1/no_title_no_
> > > > borders_control_bar.png>
> > > >
> > > > Thanks,
> > > > Piotr
> > > >
> > > >
> > > >
> > > > --
> > > > Sent from: http://apache-royale-development.20373.n8.nabble.com/
> > > >
> > >
> > >
> > >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> > >
> >
> >
> >
> > --
> >
> > Piotr Zarzycki
> >
> > Patreon: *https://www.patreon.com/piotrzarzycki
> > <https://www.patreon.com/piotrzarzycki>*
> >
>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>



-- 

Piotr Zarzycki

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

Re: Clean up Alert

Posted by Carlos Rovira <ca...@apache.org>.
Popups In flex always was tricky, if you remember about Application tree vs
SystemManager tree where all popups hangs.
we should try to get in Royale as smooth as possible, but we need to start
with something and then try to solve of the old and new problems. It's a
matter of iterate :)

Thanks!

2018-01-14 13:15 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:

> Hi Carlos,
>
> No problem. The one thing which bothers me is that maybe Alert should have
> position: absolute. In my application I did it as an absolute. Will see
> once you get your hands into that. ;)
> I have also found couple of scenario with data binding which were not
> working. I had to make some workaround. If I found enough energy I will try
> to extract them to the smaller examples.
>
> Thanks, Piotr
>
> 2018-01-14 13:04 GMT+01:00 Carlos Rovira <ca...@apache.org>:
>
> > Hi Piotr,
> >
> > nice job! thanks to do this, hope to reach soon my theming task and start
> > with components like this, slider that seems to be prepared for this task
> > thanks!
> >
> > 2018-01-14 6:31 GMT+01:00 piotrz <pi...@apache.org>:
> >
> > > I have update Alert visually to the previous state, where control bar
> was
> > > white.
> > >
> > > <http://apache-royale-development.20373.n8.nabble.
> > com/file/t1/no_title_no_
> > > borders_control_bar.png>
> > >
> > > Thanks,
> > > Piotr
> > >
> > >
> > >
> > > --
> > > Sent from: http://apache-royale-development.20373.n8.nabble.com/
> > >
> >
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>



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

Re: Clean up Alert

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

No problem. The one thing which bothers me is that maybe Alert should have
position: absolute. In my application I did it as an absolute. Will see
once you get your hands into that. ;)
I have also found couple of scenario with data binding which were not
working. I had to make some workaround. If I found enough energy I will try
to extract them to the smaller examples.

Thanks, Piotr

2018-01-14 13:04 GMT+01:00 Carlos Rovira <ca...@apache.org>:

> Hi Piotr,
>
> nice job! thanks to do this, hope to reach soon my theming task and start
> with components like this, slider that seems to be prepared for this task
> thanks!
>
> 2018-01-14 6:31 GMT+01:00 piotrz <pi...@apache.org>:
>
> > I have update Alert visually to the previous state, where control bar was
> > white.
> >
> > <http://apache-royale-development.20373.n8.nabble.
> com/file/t1/no_title_no_
> > borders_control_bar.png>
> >
> > Thanks,
> > Piotr
> >
> >
> >
> > --
> > Sent from: http://apache-royale-development.20373.n8.nabble.com/
> >
>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>



-- 

Piotr Zarzycki

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

Re: Clean up Alert

Posted by Carlos Rovira <ca...@apache.org>.
Hi Piotr,

nice job! thanks to do this, hope to reach soon my theming task and start
with components like this, slider that seems to be prepared for this task
thanks!

2018-01-14 6:31 GMT+01:00 piotrz <pi...@apache.org>:

> I have update Alert visually to the previous state, where control bar was
> white.
>
> <http://apache-royale-development.20373.n8.nabble.com/file/t1/no_title_no_
> borders_control_bar.png>
>
> Thanks,
> Piotr
>
>
>
> --
> Sent from: http://apache-royale-development.20373.n8.nabble.com/
>



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

Re: Clean up Alert

Posted by piotrz <pi...@apache.org>.
I have update Alert visually to the previous state, where control bar was
white.

<http://apache-royale-development.20373.n8.nabble.com/file/t1/no_title_no_borders_control_bar.png> 

Thanks,
Piotr



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

Re: Clean up Alert

Posted by piotrz <pi...@apache.org>.
I have ended up for today with something like that on the JS sight. SWF sight
is broken, not sure what is wrong. If no one opposes tomorrow I will commit
my changes.

All stuff which is being used for create that popup is in the AlertView. I
have introduced also CloseEvent which will gives and information what was
clicked OK, Cancel etc.

<http://apache-royale-development.20373.n8.nabble.com/file/t1/alert_popup.png> 

If title is not specified popup looks like that:

<http://apache-royale-development.20373.n8.nabble.com/file/t1/no_title.png> 

Thanks, Piotr



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