randhir Posted August 12, 2011 Posted August 12, 2011 how can we resize the button in the same layout through the script
Vaughan Posted August 12, 2011 Posted August 12, 2011 Buttons cannot be resized by script. What are you trying to do?
fmbug Posted August 12, 2011 Posted August 12, 2011 No it is not possible to resize the button on a layout. It is possible by using WebViewer tool, using html & js.
comment Posted August 12, 2011 Posted August 12, 2011 It is possible by using WebViewer tool, using html & js. And what exactly will the button do?
fmbug Posted August 20, 2011 Posted August 20, 2011 Button is showing the status of the inventory. According to stage, the buttons will resize itself. Suppose it is having two stage, 'Incomplete and Complete'. Then we will have two buttons named Complete and Incomplete. if the user will click in Complete the stage will be changed to Complete, and its size will be changed and When user click on Incomplete the stage will be changed to Incomplete and its size will be changed.
comment Posted August 20, 2011 Posted August 20, 2011 Button is showing the status of the inventory. According to stage, the buttons will resize itself. Suppose it is having two stage, 'Incomplete and Complete'. Then we will have two buttons named Complete and Incomplete. if the user will click in Complete the stage will be changed to Complete, and its size will be changed and When user click on Incomplete the stage will be changed to Incomplete and its size will be changed. Is this a question or an answer?
Matthew F Posted August 20, 2011 Posted August 20, 2011 Have the script change to a second layout that is identical to the first except that it has a larger button.
fmbug Posted August 23, 2011 Posted August 23, 2011 This is the situation. not an answer. Please discuss it briefly, whether it is possible or not. Please let me know.
comment Posted August 23, 2011 Posted August 23, 2011 It's not possible to resize a button. It is possible to show another button, either on another layout or in a different tab panel. It is also possible to resize/change the text of the button, using conditional formatting. It's not possible to use a HTML button to modify a Filemaker field or variable - at least not without a plugin.
doughemi Posted August 23, 2011 Posted August 23, 2011 Create graphics of the different sized buttons you want and place them in a global repeating container field. On your layout create a different container field. In your script, Set Field(DisplayContainerField; getRepetition(RepeatingContainerField;<n>)). <n> should be the repetition number of the graphic to display.
comment Posted August 23, 2011 Posted August 23, 2011 Create graphics of the different sized buttons Note that this will not resize the button - i.e. the clickable area.
Ted S Posted August 24, 2011 Posted August 24, 2011 Reading this thread I'm reminded of this quote from Albert Einstein: Make everything as simple as possible, but not simpler. In the past I have occasionally used some pretty wild workarounds to accomplish some "nice to have" feature and almost without exception I have come to regret the needless complexity that I built into the system. My suggestion is that if you are going to use some unintuitive methods to accomplish something, make sure you are accomplishing something that is truly necessary. Get some bang for your buck. And for goodness sake, document what you did liberally so that two years later you can figure out what's going on without spending a day just trying to understand what you did.
Recommended Posts
This topic is 4859 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now