ShowInFormDialog

Hi at all,

i believe to have founded a bug, in ShowInFormDialog, about the resize,
on the windows version only, i put the first flag to false, but the form can be resizable.

can you verify that , thank you very much. :(

Hi Mauri,

Servoy Developer
Version R2 2.2-build 328
Java version 1.5.0_02-b09 (Windows XP)

AND

Servoy Developer
Version R2 2.2-build 328
Java version 1.4.2-50 (Mac OS X)

Working as expected for me using the following:

application.showFormInDialog(forms.formname,-1,-1,-1,-1, 'Hello Harry', false, false);

Am unable to resize the form in dialogue using the above !

Anything further that you can tell us about the content of the method which you are using which may shed some light ?

Cheers
Harry

Hello harry,

thanks for your example, i tried it and it’s ok,
my version was this below, and don’t work :

application.showFormInDialog(forms.ScontoSubTotale, ‘ScontoSubTotale’, false , false, false);

I will use your example , of course. :wink:

Bye

Noticed before that to be able to use the last few parameters that you need to set (dummy) values for all params inbetween, allthough based on the samplecode it looks like you don’t have to.

Paul

Whenever you’re specifying parameters - they MUST be in order. So to set the resize - you have to set the 8th parameter (otherwise how do we “know” what you’re trying to set).

Hope this helps.

Offcourse in order, but some params can be specified as optional.

And a function can be written that, for example, param 1,2 and 3 are mandatory, the group of 4,5,6 are optional and the group of 7 and 8 are optional.

If the tooltip is specified properly, brackets “” around (a group of ) params, means you can leave out the entire group and it still owrks.

For the showFormIndialog, this doesn’t seem to be the case. I think I also noticed this somethere else, but cannot remember where.

So, my point is, sometimes you can leave out certain params, the tooltip should indicate that with brackets, but for some Servoy functions, the brackets are placed wrongly.

The coder of the fucntion should place the brackets correctly in the tooltip. Offcourse, he/she needs to think if params in the middle can be left out (if the params are all of the same type, there’s no way for the system to determine which param is being specified)

Paul