NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: spot1701 on April 06, 2011, 05:54:27 AM

Title: Button sets do not maintain their "set-ness"
Post by: spot1701 on April 06, 2011, 05:54:27 AM

5.20 - Cosmetic Issue

I have a row of buttons defined as a "set", i.e. on the first and last buttons have rounded corners. e.g.

(http://dl.dropbox.com/u/5089496/PublicImages/Nettalk/button-set-1.PNG)

The "Search for Part" button is setup to reset the values of the other buttons in the "set":

(http://dl.dropbox.com/u/5089496/PublicImages/Nettalk/button-set-3.PNG)

So what happens is: when I press the Search For Part button the other buttons lose their "set-ness" and they all get rounded corners.

(http://dl.dropbox.com/u/5089496/PublicImages/Nettalk/button-set-2.PNG)


Title: Re: Button sets do not maintain their "set-ness"
Post by: Bruce on April 06, 2011, 05:57:40 AM
Hi Bryan,

I'm not sure how you created the set, so it's hard to comment on what you might have done wrong - but my first guess would be that you've used a conditional somewhere that's based on a variable not a session value.

In my testing here it wasn't all that easy to create a button set at all - for a set of custom buttons on a form, so I've added a new feature in 5.21 (building now) which allows you to create custom button sets.

cheers
Bruce

Title: Re: Button sets do not maintain their "set-ness"
Post by: spot1701 on April 06, 2011, 06:04:13 AM
Nothing "custom" going on.

First button is the set like this:

(http://dl.dropbox.com/u/5089496/PublicImages/Nettalk/button-set-4.PNG)

(http://dl.dropbox.com/u/5089496/PublicImages/Nettalk/button-set-5.PNG)

The second button is the same, except "Start Button Set" isn't ticked.

And the last button in the row is setup as follows:

(http://dl.dropbox.com/u/5089496/PublicImages/Nettalk/button-set-6.PNG)
Title: Re: Button sets do not maintain their "set-ness"
Post by: Bruce on April 06, 2011, 07:38:08 AM
ahh - very good - I must have sneaked that into the 5.20 release.

add the following to the DIV Css Class on the button tab;
' nt-margin-right-0'
note the leading space.

I'm pretty sure this _is_ new to 5.21 - but it won't hurt if you put it in now.
It gets rid of the little gap between the buttons - scoots them up together so to speak.

One tip though - you don't want to be hiding, or un-including either the start or end button in the set. It's not smart enough for that yet.

Other than that I don't see a problem - so I'd need to see the site online, or an example duplicating the effect to be sure of the issue.

cheers
Bruce