How to control the dialog box's size

I have a subform form for the users to select names (similar to the addressbook in Lotus notes when you schedule the meeting) called from the dialog box. How can I control the size of the subform?Below is the code that I have:

SendTo = ws.DialogBox (“FCRReportSendTo1”, True , True , False ,False , False ,False, “Select the receipents”, SendToDoc)

thanks,

Mike Woo

Subject: Did you look at HELP @DialogBox?

Subject: Did you look at HELP @DialogBox?

Hi Michael,

Below is the code I have.

SendTo = ws.DialogBox (“FCRReportSendTo1”, True , True , False ,False , False ,False, “Select the receipents”, SendToDoc)

I saw the description of the size of the dialog, but I don’t know the syntax. This is what I saw and something is similar to the one below. I didn’t see example of resizing the dialogbox.

Please let me know when you have a chance.

Thanks,

MW

  1. A form called “Profile” contains a button whose formula is

@DialogBox(“Profile Options”; [AUTOHORZFIT] : [AUTOVERTFIT] )

Both Profile and Profile Options have a field named “Comments.” When the user clicks the button, the document is displayed in a dialog box, using the Profile Options form. The dialog box is scaled to fit the layout region on Profile Options.

The user can interact with the dialog box, for example, by editing the Comments field.

The user clicks OK. The changes made to the Comments field are reflected in the document, if it is in Edit mode.

  1. This formula displays a form named “Help screen” for reading only.

@DialogBox(“Help screen”; [AUTOHORZFIT] : [AUTOVERTFIT] : [NOCANCEL] : [NONEWFIELDS] : [READONLY]; “Help”)

  1. This formula sizes the table in the form to the dialog box and does not display the OK button.

@DialogBox( “Table Test” ; [AUTOHORZFIT] : [AUTOVERTFIT] : [SIZETOTABLE] : [NOOKCANCEL])

  1. This formula displays the “info” form in a dialog box entitled, “Provide information,” that has no dialog box buttons. The only way the user can close this form to return to the current document is to click the Close icon in the upper right corner of the dialog box.

@DialogBox(“info”;[NOCANCEL]:[NOOKCANCEL];“Provide information”)

Subject: RE: Did you look at HELP @DialogBox?

autoHorzFitBoolean. Optional. Specify True to scale the dialog box horizontally to fit the first layout region or table on the form. Otherwise, the dialog box is not scaled horizontally.

autoVertFit

Boolean. Optional. Specify True to scale the dialog box vertically to fit the first layout layout region or table on the form. Otherwise, the dialog box is not scaled vertically.

Subject: RE: Did you look at HELP @DialogBox?

Hi Michael,

Thanks for the explanation. I tried to set the values, but it still doesn’t work. How can I modify the code below to have resize the dialog box.

SendTo = ws.DialogBox (“FCRReportSendTo1”, True , True , False ,False , False ,False, “Select the receipents”, SendToDoc)

Thanks,

MW

Subject: You’ve done all you can do!

Read this link.

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/aedfb2e66c460da585256eca00484697?OpenDocument&Highlight=0,dialogbox,size

Subject: Mike, you keep asking how to resize an open dialog box. Michael keeps telling you IT CAN’T BE DONE.

And it can’t. (Unless you’re will to create your own using java/awt or C++ or something.)

(And I meant to make this a response to the other child of this document. Rats!)

Subject: how to set size of dialog box?

Hi Michael,

So how do you set the size of the dialog box?

SendTo = ws.DialogBox (“FCRReportSendTo1”, True , True , False ,False , False ,False, “Select the receipents”, SendToDoc)

thanks,

Mike Woo

Subject: RE: how to set size of dialog box?

Create a table on the form the size you want the dialog box. Play with the table’s size until the dialog box is the size you want.

– Charles

Subject: RE: how to set size of dialog box?

Hi Charlie,

It doesn’t work, I’ve already tried.

thanks,

Mike Woo

Subject: RE: how to set size of dialog box?

In the sample code you provided you did not have the sizeToTable parameter set.

SendTo = ws.DialogBox (“FCRReportSendTo1”, True , True , False ,False , False ,False, “Select the receipents”, SendToDoc, TRUE)

– Charles (not Charlie)