In my flex 4 project I am using some Spark TextInput components. It doesn't show copy and paste in the right click menu by default. The user needs to copy some text and paste into it. How can we enable this?
I found this information useful:
http://forums.adobe.com/message/3612279
Basically, make sure that if you are using TextInput components inside a Panel or TitleWindow, make sure you set mouseEnabled="true". Both PanelSkin and TitleWindowSkin have mouseEnabled="false".
I found that just setting mouseEnabled="true" on my TitleWindow solved the problem.
I think, thats the answer of aour question.
http://blog.flexexamples.com/2008/01/30/copying-text-to-the-operating-system-clipboard-in-flex/
If you are creating a new ContextMenu to add custom items to it and your not seeing the copy paste options, make sure that clipboardMenu=true on your ContextMenu object.
Related
I am just getting my head around AEM version 6.2 and struggling to create a component that I can drag onto my page. I copied an existing 'working' component and changed the name in the CRXDE page. The result is the new component is visible in the left components panel but when I want to drag it nothing happens? How can I create/copy an component that is draggable?
For a component to be droppable inside a parsys, it needs to be added using design mode...
Go to design mode
Configure that parsys
Select the component which you want to drop inside parsys
Go back to edit mode. It should now be droppable.
I suggest you to add some text in the component jsp. Make sure cache is deleted. Also try to cq:include the component in your page component.If you are unable to do so will mean there is something wrong with the component development.
In Flex Application how to add Remove tag ?
Another Ex: StackoverFlow Tags Section.. when type Fx then hit Space some image will be adding..
Just i want some suggestion....
use a library "flex-autocomplete" which is much useful for tag. you can change a skin of tag because you have full source code of it. you can take a demo of this library from here
http://flex-autocomplete.com/demo/#
you can download Source code of this library from here
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1721530
May this will help you..!
I think you can use a dataGroup for this purpose, add an itemRenderer in dataGroup.
and as JK Patel said add a textInput which have auto-complete functionality, add a BorderContainer for border styling around textInput. Bind a list of tags in datagroup.
here some help regarding dataGroup.
(http://help.adobe.com/en_US/flex/using/WS64909091-7042-4fb8-A243-8FD4E2990264.html)
search by yourself for more help...
here an other example.
(http://www.hufkens.net/2009/06/flex-4-datagroup-and-itemrenderers/)
Have a look in to this Auto complete component which looks same as what u want. Change the style to facebook in the drop down list
DEMO
Facebook like AutoComplete text input demo
SOURCE
Source
Developer site Hillel Coren AutoComplete
How do you force Combobox dropdowns to stay open even when other Alert boxes appear. Looking at what to subclass from mx.Combobox, there doesn't seem to be much that i can do to short of implementing an entire combobox from scratch.Thx
For that you need to create a custom ComboBox which if created in following Link. and might be this link will going to be useful to you.
Please visit this LINK
when user clicks on Add button, then a pop up button will be opened with certain form elements (like textinput, date field, text area).. When i used 'TAB' inside this form,it is not working. I found in couple of Questions / forums that we need to create an instance of FocusManager and then bring/activate focus for the pop up. But still i didn't see the tab working inside the form. In order to tab order working inside a pop up, what steps we need to follow.
I tried using focusmanager and property like tabfocusenabled, tabenabled and also added taborder inside each form element. But no luck.
Iam using Flash Builder 4.5 and using spark components for development.
Is there any workaround for this problem?
Thanks in Advance,
Regards
Srinivasan
Thanks for all your responses.
Finally the issue has been solved by one of my colleague. Problem is , the form has been loaded inside Horizontal accordion (flexlib HACCORDION). So inorder to draw focus inside the accordion to child elements, we need to add 'hasFocusableChildren="true"' for the HAccordion (horizontal accordion component). Adding this property solves the tab order problem.
I have also pasted the code below:
I have a tab and want another tab with click of button.
Another tab has VBox (Contains charts,grid etc).
It gives an error while adding code addChild(), removeChild() on button click.
The error is of null object reference.
Please suggest me.
Thanks
You're probably trying to access children of a tab that has not been initialized yet. The simplest solution is to change the creationPolicy property of your TabNavigator to "all".
You can see an explanation of creationPolicy in the Adobe documentation.
If this is not the solution, you're probably going to have to post more specific code.