Adobe Dreamweaver Forums



Last 10 THreads :         Load dynamic text into an embeded swf (Last Post : mikeyjray - Replies : 4 - Views : 9 )           »          Log email text (Last Post : Torgom - Replies : 0 - Views : 1 )           »          Properties > Flex Build Path (Last Post : kevxross - Replies : 0 - Views : 1 )           »          Can Anyone Help With Sub Menus (Last Post : Murray *ACE* - Replies : 8 - Views : 9 )           »          transferring DW license from crashed computer (Last Post : Sonjay - Replies : 1 - Views : 7 )           »          DIV in Table not working. (Last Post : Murray *ACE* - Replies : 13 - Views : 14 )           »          Variable for Loader Content (Last Post : Sea Crystal - Replies : 0 - Views : 1 )           »          left join won't work in query of query? (Last Post : Dan Bracuk - Replies : 5 - Views : 6 )           »          fireworks exports hundreds of files (Last Post : Rob Miller - Replies : 0 - Views : 1 )           »          Fireworks Color Selection Bug (Last Post : Linda Rathgeber - Replies : 3 - Views : 4 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-25-2008, 08:53 AM
aruvasavi
 
Posts: n/a
Diggs:
Default Form component

Hi

I have problem in aligning form input and label!!
How can I align them side by side!!! all form component inputs are aligning
one below the other?
How can I do it??

Thanks in advance
Aruna



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-25-2008, 10:23 AM
gallaharsha
 
Posts: n/a
Diggs:
Default Re: Form component

I think the direction field for the formitem is set to vertical.
In the formItem set direction to horizontal and this will solve your problem...

Reply With Quote
  #3 (permalink)  
Old 11-27-2008, 10:44 AM
aruvasavi
 
Posts: n/a
Diggs:
Default Re: Form component

Hi

I tried I dint get it!!
If I give direction also its aligning one below the other
If possible send me code of that!!

Thanks
Aruna
Reply With Quote


  #4 (permalink)  
Old 11-28-2008, 04:54 AM
gallaharsha
 
Posts: n/a
Diggs:
Default Re: Form component

Hello,
do you have any style sheets attached to your mxml file..
may be some of the declarations in your css file are troubling you..
check it out..
Reply With Quote
  #5 (permalink)  
Old 11-28-2008, 05:05 AM
gallaharsha
 
Posts: n/a
Diggs:
Default Re: Form component

When you create a form,
Drag the form on to the editor window.
then drag a label into the form which gives you 2 labels,
delete the right most one and you will be left with one.
If you see the code you can see formitem created
Now drag a textinput into the label you already dragged, when u drag it u get
a blue indicator line to position your textinput. Dont position it when
indicator line is above or below the label you have added. Position it when you
get blue indicator line in line with the already added label.
And for your information here the code of a simple form:


<mx:Form x="10" y="10" id="register_form" width="388.8" height="232.25"
autoLayout="false">
<mx:FormItem label="Data Provider Name">
<mx:TextInput id="reg_name" width="200" toolTip="data provider (user
defined) name" height="24"/>
</mx:FormItem>
<mx:FormItem label="Object Name" textAlign="left" height="42">
<mx:TextArea id="reg_objName" width="200" toolTip="data provider object
name" height="42" backgroundColor="#FFFFFF" wordWrap="true"/>
</mx:FormItem>
<mx:RadioButtonGroup id="reg_attr_meth"/>
<mx:FormItem label="Attribute List">
<mx:TextInput id="tbxRegisterAttributeList" width="200"
click="enableAttributeList()" toolTip="comma separated data provider attribute
list"/>
</mx:FormItem>
<mx:FormItem label="Method Name">
<mx:TextInput id="tbxRegisterMethodName" enabled="false" width="200"
click="enableMethodName()" toolTip="data provider method name"/>
</mx:FormItem>
<mx:FormItem label="Refresh Rate" width="285" direction="horizontal">
<mx:NumericStepper id="reg_refRate" minimum="1" maximum="100"
toolTip="refresh rate in minutes"/>
<mx:Label text="Minutes" />
</mx:FormItem>
<mx:FormItem horizontalAlign="left" >
<mx:Button label="Register" click="register()" toolTip="register data
provider with prefetch service"/>
</mx:FormItem>

</mx:Form>



Reply With Quote
  #6 (permalink)  
Old 12-01-2008, 10:14 AM
aruvasavi
 
Posts: n/a
Diggs:
Default Re: Form component

Hello Harsha

Actually I wanted like as below...

Login Name: Text Input Password: Text Input

I want Login Name and Password in the same line...Both should be side by
side..

Hope u got my question!!

Thanks
Aruna

Reply With Quote


  #7 (permalink)  
Old 12-01-2008, 11:15 AM
gallaharsha
 
Posts: n/a
Diggs:
Default Re: Form component

Hello,
i didn't get u well in my previous reply.
I think you cant do that in a form but there is a way to tacklet it. Try this
out...
Do not give the form tags and u can use the fields from the id's give to the
text input fields
In case you have an issue reply back


<mx:FormItem label="UserName">
<mx:TextInput width="222" id="username" text="localhost"
toolTip="username"/>
</mx:FormItem>
<mx:FormItem label="Password">
<mx:TextInput width="222" id="port" text="50000" toolTip="password"/>
</mx:FormItem>
<mx:Button label="Submit" click="startfunction()" toolTip="submit"/>

Reply With Quote
  #8 (permalink)  
Old 12-08-2008, 06:24 AM
aruvasavi
 
Posts: n/a
Diggs:
Default Re: Form component

Hello Harsha

Actually I am using like this only without form tags...But I thought we have
to use form tags form form items so I raised a question in forum...
Thanks for the information...

Thanks and Regards
Aruna

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 11:20 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk