Solved

display hbox in center of datagrid

Posted on 2011-09-06
7
207 Views
Last Modified: 2012-05-12
Hi guys

I have a editable datagrid with one editable column. On KEY_UP event on that editable column i am displaying a HBox. I want to display the HBox on the center of the screen(on top of datgrid). any idea how i can do that?

Is there an attribute on HBox i can use?

thanks
0
Comment
Question by:royjayd
  • 4
  • 3
7 Comments
 
LVL 29

Expert Comment

by:dgofman
ID: 36492443
How about if you will use

PopupManager API's

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/managers/PopUpManager.html

PopUpManager.createPopUp(), and PopUpManager.centerPopUp() methods


0
 
LVL 29

Expert Comment

by:dgofman
ID: 36492448
0
 

Author Comment

by:royjayd
ID: 36492975
Ok .Also can I put x and y coordinates in popupmanager . If I want to put the popup at x=10 y=10
is it possible?
Thanks
0
Why are Office 365 signatures so complicated?

Trying to setup transport rules for Office 365 email signatures and can’t quite figure it out? Having to test the signature over and over? Make things simple by using Exclaimer Cloud - Signatures for Office 365.

 
LVL 29

Expert Comment

by:dgofman
ID: 36492981
wait , you asking how to put on the center if you want to control yourself do not use centerPopUp API.
Just sen manually x and y
0
 

Author Comment

by:royjayd
ID: 36496260
can you show me an example with setting X and Y for popupmanager?

when i try like this it works
PopUpManager.centerPopUp(dataGrid);  

i want to set x and y coordinates to popupmanager.

thanks
0
 
LVL 29

Accepted Solution

by:
dgofman earned 500 total points
ID: 36499499
Did you try to write a code before asking me?

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/mx"
			   width="100%" height="100%" creationComplete="onComplete()">
		<fx:Script>
			<![CDATA[
                import mx.containers.Panel;
                import mx.managers.PopUpManager;
			    

                protected function onComplete():void
                {
                    var panel:Panel = PopUpManager.createPopUp(this, Panel) as Panel;
                    panel.width = 500;
                    panel.height = 400;
                    panel.x = (width - panel.width) / 2;
                    panel.y = (height - panel.height) / 2;
                }

			]]>
		</fx:Script>
</s:Application>

Open in new window

0
 

Author Comment

by:royjayd
ID: 36601937
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Flex organization chart 5 604
Inserting well over 100,000 records into SQLite... 10 2,170
Refresh Image 2 30 941
AS3 Image Edit Package 3 553
First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
An analysis of the phishing scam that has been affecting Google users, along with steps to take for protection, as well as what to do if you receive one of the emails.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now