Check box "box" alignment

1,725 views
Skip to first unread message

Worst, Debbie

unread,
Feb 14, 2011, 1:22:37 PM2/14/11
to live...@googlegroups.com
I know I've read somewhere in this group that in the paragraph properties for the checkbox object you can change where the "checkbox" actually resides, left, center, right but I can't find anything.  Anyone remember?
 
Deborah A. Worst, AINS, AIC
Office Solutions Team
 
"Life is half spent before we know what it is."
 
George Herbert
 
 

********************************************************************** The content of this e-mail message and any attachments are confidential and may be legally privileged, intended solely for the addressee. If you are not the intended recipient, be advised that any use, dissemination, distribution, or copying of this e-mail is strictly prohibited. If you receive this message in error, please notify the sender immediately by reply email and destroy the message and its attachments. **********************************************************************

Aditya Shah

unread,
Feb 14, 2011, 1:32:30 PM2/14/11
to live...@googlegroups.com
I think you are referring to the position property in the layout palette of the field?

Aditya

--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.

Hemant

unread,
Feb 14, 2011, 1:34:50 PM2/14/11
to live...@googlegroups.com
Hi

I think the attached screenshot might help you in Check box Alignment.

Regards,
Hemant Garg
Checkbox.jpg

Worst, Debbie

unread,
Feb 14, 2011, 1:38:34 PM2/14/11
to live...@googlegroups.com
Those properties change the caption but not the "checkbox".  I thought there was a way to change the "checkbox" alignment.

Deborah A. Worst, AINS, AIC
Office Solutions Team
513-345-6462

"Life is half spent before we know what it is."

George Herbert

 


From: live...@googlegroups.com [mailto:live...@googlegroups.com] On Behalf Of Hemant
Sent: Monday, February 14, 2011 1:35 PM
To: live...@googlegroups.com
Subject: Re: Check box "box" alignment

--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.

Duane Nickull

unread,
Feb 14, 2011, 1:57:43 PM2/14/11
to live...@googlegroups.com
On your earlier question, set up a boolean variable and set it to false.  Then either add code to each checkbox for the Change event to set the boolean to "true" and check the boolean on the Submit Buttin Click event.  

A better way would be to make the submit button disabled and only enable it when one of the check boxes is checked.   Best practice here would be to provide clear instructions to the end user as it may confuse them.

Optionally, you could simply iterate through each checkbox on the form and seek true values but my gut instinct is that would be more resource intensive.

Duane nickull

********
22nd Century (my band) - http://22ndcenturyofficial.com/
Twitter - @duanechaos
********


Davidson, Jerry

unread,
Feb 14, 2011, 2:08:32 PM2/14/11
to live...@googlegroups.com

Look at the photo again.  At the top right you can see the alignment is for the caption.  You can click the arrow to change it to the control or for both.  You obviously want the control.

 

Just my $.02.

Worst, Debbie

unread,
Feb 14, 2011, 2:11:47 PM2/14/11
to live...@googlegroups.com
The ability to switch from the caption to the value is "grayed" out with a checkbox.  A dropdown box or textfield have that option, but not the checkbox.
 

Deborah A. Worst, AINS, AIC
Office Solutions Team
513-345-6462

"Life is half spent before we know what it is."

George Herbert

 


From: live...@googlegroups.com [mailto:live...@googlegroups.com] On Behalf Of Davidson, Jerry
Sent: Monday, February 14, 2011 2:09 PM

Jono Moore

unread,
Feb 14, 2011, 2:22:11 PM2/14/11
to live...@googlegroups.com
On Monday, February 14, 2011 10:22:37 AM UTC-8, Worsty wrote:
I know I've read somewhere in this group that in the paragraph properties for the checkbox object you can change where the "checkbox" actually resides, left, center, right but I can't find anything.  Anyone remember?

I think I know what you're after, you want to do something like "hang" the checkbox at the top of a few lines of text in the caption? It floats in the centre by default.

You have to muck around in the XML source but it's pretty easy - and once it's done save the checkbox in your object library.

So, select your checkbox and click on the XML Source tab. You'll be placed in the XML source at the first line of your field definition. A few lines down, just after the </ui> tag you should see <para vAlign="middle"/> - you want the first instance of para, the second instance in inside the <caption> tag and only affects the caption.

Now you can edit that line to make your checkbox do what you want. In the example below I've bolded the line and set the checkbox to float top and center. One note - setting vAlign="top" will cause the vAlign setting (and the entire <para> tag) to vanish when you go back into the XML source unless you've also set the horizontal to something. So if all you do is a vAlign="top", if you go back in to edit it again the entire <para> tag will be gone, you can add it back in again if you need or drag a new button off the object palette.

In the example below, after exiting the XML source and going back in all you'd see is hAlign="center" in the <para> tag.

<field name="CheckBox3" y="69.85mm" x="104.775mm" w="41.275mm" h="15.875mm">
   <ui>
      <checkButton>
         <border>
            <?templateDesigner StyleID apcb2?>
            <edge stroke="lowered"/>
            <fill/>
         </border>
      </checkButton>
   </ui>
   <font typeface="Myriad Pro"/>
   <margin leftInset="1mm" rightInset="1mm"/>
   <para vAlign="top" hAlign="center"/>
   <value>
      <integer>0</integer>
   </value>
   <caption placement="right" reserve="25.3599mm">
      <para vAlign="middle"/>
      <font typeface="Myriad Pro"/>
      <value>
         <text>Check Box</text>
      </value>
   </caption>
   <items>
      <integer>1</integer>
      <integer>0</integer>
      <integer>2</integer>
   </items>
</field>

Worst, Debbie

unread,
Feb 14, 2011, 2:24:48 PM2/14/11
to live...@googlegroups.com
Thanks!  I don't know why they don't make the value of a checkbox editable just like the text box object.
 

Deborah A. Worst, AINS, AIC
Office Solutions Team
513-345-6462

"Life is half spent before we know what it is."

George Herbert

 


From: live...@googlegroups.com [mailto:live...@googlegroups.com] On Behalf Of Jono Moore
Sent: Monday, February 14, 2011 2:22 PM

To: live...@googlegroups.com
Subject: Re: Check box "box" alignment
--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.

Jono Moore

unread,
Feb 14, 2011, 2:29:31 PM2/14/11
to live...@googlegroups.com
On Monday, February 14, 2011 11:24:48 AM UTC-8, Worsty wrote:
Thanks!  I don't know why they don't make the value of a checkbox editable just like the text box object.

It would be nice!

You also need to edit the XML if you want to change the colour of the check in the checkbox. 

abhishek kolluru

unread,
Feb 17, 2011, 10:28:14 AM2/17/11
to live...@googlegroups.com
Hi Debbie,
 
THere is a <para> tag in the xml source of the check box , where you can play around with its alignment.
 
for egs : 

<

para vAlign="middle"/>     you can change the vAlign propeties.

Regards,

Abhishek

 


Worst, Debbie

unread,
Feb 17, 2011, 10:31:03 AM2/17/11
to live...@googlegroups.com
Thanks so much!  I'll try that.
 

Deborah A. Worst, AINS, AIC
Office Solutions Team
513-345-6462

"Life is half spent before we know what it is."

George Herbert

 


From: live...@googlegroups.com [mailto:live...@googlegroups.com] On Behalf Of abhishek kolluru
Sent: Thursday, February 17, 2011 10:28 AM

To: live...@googlegroups.com
Subject: Re: Check box "box" alignment
Reply all
Reply to author
Forward
0 new messages