NetTalk Central

Author Topic: Displaying two buttons side-by-side  (Read 2937 times)

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Displaying two buttons side-by-side
« on: May 12, 2011, 06:11:12 AM »
I need to have two buttons next to each other on a tab of a form. Currently they show below each other because they are listed as fields on the tab. Is there a way to have them next to each other - other than maybe changing the CSS?

Thys

Rene Simons

  • Hero Member
  • *****
  • Posts: 649
    • View Profile
Re: Displaying two buttons side-by-side
« Reply #1 on: May 13, 2011, 12:16:32 PM »
Hi Thys,

Just uncheck the Last on line and the Last in cell boxes for THE left most button

René
Rene Simons
NT14.14

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: Displaying two buttons side-by-side
« Reply #2 on: May 16, 2011, 12:15:33 PM »
Thank you - it works. In fact, for text fields, when both "Last on line" and "Last in cell" are deselected for all text boxes, then they are also placed next to each other.

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Displaying two buttons side-by-side
« Reply #3 on: May 16, 2011, 02:33:09 PM »
Thys,

That work for all fields.  The span-by-column, last in cell and stuff like that, still confuse me. I have to try all the combinations each time until I figure it out, it works eventually but I have not seen a proper explanation of this yet.

Try having 7 buttons in a row and sometimes some of them are hidden, add an 8th field (from memory Display, nothing, ie '') with the last in line ticked on in that field only, the 7 buttons not ticked on.  That give you anything from 1-8 things in a row and it will drop to the next line after the dummy 'Break' thing, leaving out the buttons you don't want to show.

Anyway, hope it helps.

Cheers
Charl

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11194
    • View Profile
Re: Displaying two buttons side-by-side
« Reply #4 on: May 16, 2011, 11:55:15 PM »
Start by thinking of a form as 3 columns wide.
These are the "prompt", "value" and "comment" columns.

Some options on the Form Layout tab affect this basic layout for the whole form - for example
"suppress comments" reduces the form to being 2 columns wide,
"span columns" removes the columns completely (the prompt - value - comment then just going ext to each other in the same column)
"Vertical" places the "value" _under_ the "Prompt" (not to the right of it.)

Now within that basic layout you can also control stuff at the field level.
For example, one field can "Span Columns" - this is the default for a browse, but is also used for buttons etc.

The next option is "Last on Line".
If this is on (the default) then the next field is on the next line.
If it is off, then the next field appears to the right. So now the form has _6_ columns;
prompt - value - comment - prompt - value - comment
This carries on for more fields, you can have 9, or 12 or whatever columns.

Now you may not want to create lots more columns - you want 2 fields next to each other - but sharing the same "value cell". In other words, you want them next to each other, but not creating more columns on the form. This option is the "Last in Cell". If this is off then that field, and the next field are "squished together". This is mostly useful for fields that have no comments (or where the comment is set to ''). Buttons and so on.

Lastly, if you have a "row of buttons" - so the buttons all share the same cell, they have "span columns" on and so on, then you can tick the first button in the row as
"Start of button set" and the last button in the row as "End of button set" and the buttons will be joined together into a "button set".

Hope this is helpful.

cheers
Bruce


charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Displaying two buttons side-by-side
« Reply #5 on: May 17, 2011, 01:30:43 AM »
Very much.

Thanks
Charl