Re: [DISCUSS] Alerts and Dialogs in FlexJS

2016-07-07 Thread Alex Harui
Adobe is on holiday this week so I will answer for Peter. There are org.apache.flex.html.Alert and SimpleAlert classes. SimpleAlert wraps JavaScript alert and has no options. Alert is more like mx.controls.Alert. Other than Panel, there is no "base class" for dialogs. Feel free to make one if

Re: [DISCUSS] Alerts and Dialogs in FlexJS

2016-07-07 Thread yishayw
Hi Peter, Is there anything I can use for dialogs or should I create something? -- View this message in context: http://apache-flex-development.247.n4.nabble.com/DISCUSS-Alerts-and-Dialogs-in-FlexJS-tp27505p53755.html Sent from the Apache Flex Development mailing list archive

Re: [DISCUSS] Alerts and Dialogs in FlexJS

2013-06-10 Thread Christophe Herreman
Regarding the buttons, I would find the following interesting: - option to define the order in which the buttons appear (e.g. Mac vs Windows [1]). The flags approach doesn't work for this, so perhaps replace this by an array. - extra buttons: Yes, No, Cancel, OK, Retry, Ignore, Abort, ... -

Re: [DISCUSS] Alerts and Dialogs in FlexJS

2013-06-10 Thread Peter Ent
One of the things I have disliked about Flex is the over-complication of some things. The majority of the time I think most developers are looking for a quick alert to the user (with a message and a button to dismiss the alert) and a question with two or three choices. Adding multiple buttons,

Re: [DISCUSS] Alerts and Dialogs in FlexJS

2013-06-10 Thread Christophe Herreman
Hi Peter, 2013/6/10 Peter Ent p...@adobe.com One of the things I have disliked about Flex is the over-complication of some things. The majority of the time I think most developers are looking for a quick alert to the user (with a message and a button to dismiss the alert) and a question with

Re: [DISCUSS] Alerts and Dialogs in FlexJS

2013-06-10 Thread Maxime Cowez
I'd like to reply to some questions asked in this thread, but we seem to have moved away from the original question too much. So I'll start a new one to do so. M On Mon, Jun 10, 2013 at 4:59 PM, Christophe Herreman christophe.herre...@gmail.com wrote: Hi Peter, 2013/6/10 Peter Ent

Re: [DISCUSS] Alerts and Dialogs in FlexJS

2013-06-09 Thread Maxime Cowez
Alex, the mxml for my test case looks like this with minimal attributes: fx:declarations rs:Alert id=alert title=myTitle text=myMessage close=handleAlertClose(event)/ /fx:declarations s:Button label=show alert click=alert.open()/ For a demo of more attributes, have a look at

Re: [DISCUSS] Alerts and Dialogs in FlexJS

2013-06-09 Thread Carlos Rovira
Hi Maxime, very cool alert spark implementation. I was navigating the source code and have mainly a question about buttons. The eligible buttons in your version are 3 (commit, discard and cancel). In mx alert we have different options (Ok, Cancel, Yes, No). I Think is the only point I miss. Have

Re: [DISCUSS] Alerts and Dialogs in FlexJS

2013-06-09 Thread Alex Harui
On 6/9/13 1:45 PM, Carlos Rovira carlos.rov...@codeoscopic.com wrote: Hi Maxime, very cool alert spark implementation. I was navigating the source code and have mainly a question about buttons. The eligible buttons in your version are 3 (commit, discard and cancel). In mx alert we have

Re: [DISCUSS] Alerts and Dialogs in FlexJS

2013-06-08 Thread Skogen, Espen
[mailto:p...@adobe.com] Sent: Friday, June 07, 2013 08:52 PM GMT Standard Time To: flex-...@incubator.apache.org flex-...@incubator.apache.org Subject: [DISCUSS] Alerts and Dialogs in FlexJS Hi, I'm currently working on the Alert dialog for FlexJS. Alex and I have been discussing options regarding

Re: [DISCUSS] Alerts and Dialogs in FlexJS

2013-06-08 Thread Carlos Rovira
2013/6/8 Alex Harui aha...@adobe.com Good point, we forgot about that. It might be possible to use includeIn to defer its instantiation or add some other attribute that works like that but isn't tied to states. So from your response seems you're thinking in a state implementation similar

Re: [DISCUSS] Alerts and Dialogs in FlexJS

2013-06-08 Thread Maxime Cowez
@Carlos: Interesting idea. I had already created a Flex 4 implementation of PopUp / Alert that can be used in a declarative way (see https://github.com/RIAstar/SkinnablePopUpFx). I'll see if I can tweak it to leverage your idea; don't think it should be too hard. Max On Sat, Jun 8, 2013 at 4:30

Re: [DISCUSS] Alerts and Dialogs in FlexJS

2013-06-08 Thread Maxime Cowez
Right, that turned out to be harder than I anticipated. To get this to work I had to do the following things: - redeclare all event metadata that is declared by the Alert component and its base classes (to be able to use mxml event handlers) - extend EvenDispatcher and relay all events dispatched

Re: [DISCUSS] Alerts and Dialogs in FlexJS

2013-06-08 Thread Alex Harui
Sounds interesting. If one of you can sketch out what the MXML would look like, it would help clarify what you're thinking. -Alex On 6/8/13 12:13 PM, Maxime Cowez maxime.co...@gmail.com wrote: @Carlos: Interesting idea. I had already created a Flex 4 implementation of PopUp / Alert that can be

Re: [DISCUSS] Alerts and Dialogs in FlexJS

2013-06-07 Thread Carlos Rovira
Hi Peter, how this will show up? calling foo.show()? I use to like this kind of UI Object declaration, but in this particular case a problem I'm seeing is that we will generate the Alert although it's not called by the user, isn't it? (calling Alert.show() in the old way was generating the

Re: [DISCUSS] Alerts and Dialogs in FlexJS

2013-06-07 Thread Alex Harui
On 6/7/13 3:00 PM, Carlos Rovira carlos.rov...@codeoscopic.com wrote: Hi Peter, how this will show up? calling foo.show()? I use to like this kind of UI Object declaration, but in this particular case a problem I'm seeing is that we will generate the Alert although it's not called by the