12 Replies Latest reply on Sep 24, 2015 8:25 AM by richardsrussell

    Required "Dialogue Box" Extends to show Full Text


      Dear All,


      Simply I add one Button, if clicked that button It requried to display some more dialogues!


      But what the issue here, It will display only default size! Only developer knows that we can extend that dialogue box.


      Default Dialogue Box:-



      But Required Dialogue Box(after extended manually) :-



      So how to set the size or Can we make it auto-enlarge? Is there any easy way to make it ?


      Thanks in advance,


        • 1. Re: Required "Dialogue Box" Extends to show Full Text

          There is no native way to enlarge the size of the dialog to fit the contents.


          You can either use a modal window with a layout and buttons in place of a dialog, or use a plugin like troi dialog that supports it.

          • 2. Re: Required "Dialogue Box" Extends to show Full Text

            I want avoid plug-ins type!!


            Because This solution is distributed to large no. of users around the city who may then use it on several computers.


            I don't want to be the responsible for installing those plug-ins in each of these cases!


            Anyway, thanks for the suggestion, mikebeargie

            • 3. Re: Required "Dialogue Box" Extends to show Full Text

              plugins can be installed, updated, and checked via script on login, so there is no reason to be so plugin-phobic. Plugins are powerful and allow you to do great things as a developer.


              That said I DID state the option of making a modal window that serves as a "large" dialog box, I'd suggest you look into that.

              • 4. Re: Required "Dialogue Box" Extends to show Full Text

                Mike - This seems like a very easy issue for Filemaker to fix and I've not run into this sort of issue in other development systems.  Just wondering why something like this isn't addressed by making the dialog resize to fit the text?  I know every time a client sees this and I have to explain that they need to resize, they always ask why it doesn't resize automatically.  I have no answer.

                • 5. Re: Required "Dialogue Box" Extends to show Full Text

                  The dialog text is done via the calculation engine. What would happen if someone dropped 12 pages of content in there? What happens in iOS? WebDirect? There are other considerations that I'm sure FileMaker is making when they do or don't do something so I try not to finger point if there are solutions around it.


                  If I have a message that's going to be longer than one or two sentences (such as an EULA or log file), I use my own utility modal window. This is just a single modal window, with a layout that has a scrolling global text field, and buttons with merge variables. I can then use this window and layout anywhere in my system, set the global text with any length of message I want, and even control the text and actions of the buttons. In my opinion, this is BETTER than a custom dialog.

                  • 6. Re: Required "Dialogue Box" Extends to show Full Text

                    The FileMaker Custom Dialog Function is unusable. It sucks big time, and that since v1. Use a plug-in, it's not that hard.

                    • 7. Re: Required "Dialogue Box" Extends to show Full Text

                      It's perfectly fine for a LOT of uses, like a login dialog, password masked entry, or even quick notes about scripts being done for debugging.


                      Tossing in casual insults isn't productive.

                      • 8. Re: Required "Dialogue Box" Extends to show Full Text

                        Once the plug-in is installed, I can use it all the time.

                        Tossing in casual "insults" gives air to my grief...

                        • 9. Re: Required "Dialogue Box" Extends to show Full Text

                          In the past I have used a series of dialog boxes to display a longer message. Pretty much just a script calling one after another with each of them displaying only as much text as would show without expanding the box. I would add a NEXT button to indicate that there is more to read.


                          Nowadays I go with the modal window as Mike described or with a popover if that is appropriate for the situation.

                          • 10. Re: Required "Dialogue Box" Extends to show Full Text

                            Maybe the control does not work exactly the way you want but their are other ways to provide a custom dialog experience.

                            Please remember this is not a chat room but a place for people to go for help

                            • 11. Re: Required "Dialogue Box" Extends to show Full Text

                              First of all, one should always check the buttons and make sure they are all needed and worded properly.

                              In your case, the presence of 2 buttons only confuses the user.


                              This being said, and the modal window alternative also being said, you can set up a popover appearing for example at the top of your interface, under an "i" symbol. This popover only contains a merge field (a $$global) and an ok button (which only does the "close popover" script step). You will be dimensioning it big enough from the start.


                              The popover itself (not its popover button) is named "LastInfo".


                              When you have a message to display, you set the $$global and you do a go to object("LastInfo").


                              Pack it elegantly in a DisplayInfo [info] script that does


                              SetVariable($$Global; Get(ScriptParameter)

                              GoTo Object("LastInfo")


                              and call it with DisplayInfo [info], parameter: whatever text you want.



                              Should people press on the "i" button on their own initiative, they will see the last info they had. (Which might be handy, too).

                              • 12. Re: Required "Dialogue Box" Extends to show Full Text

                                I too have used the technique of multiple dialog boxes, with n–1 of them having a "Next" button and the nth one having an "OK" button. IMHO, this is a kind of kludgy workaround to accommodate an inherent limitation of native FileMaker Pro. Like Suresh, I'd rather have a custom dialog that expands automatically to display the desired text. Mike Beargie's concern that this might run on to multiple pages is something that FileMaker already knows how to handle, as when a layout is too big to fit on the available screen: Use scroll bars.


                                However, I agree that this is a subject best addressed under "Feature Requests". I cut Suresh some slack for not having done so, because he was obviously wondering if it was some feature he was missing in the program or, if not, what a reasonable workaround might be.