BaanDeveloper
26th June 2007, 01:01
current.mwindow() returns the object ID of the main window, but how can I obtain the object ID of form.1?

george7a
26th June 2007, 11:26
Hi,

As I know the form it self is not an object! But in the main window there are some other objects. May I ask what are you trying to do?

- George

BaanDeveloper
26th June 2007, 17:21
I strongly suspect each form is its own child window of the main window. So they will have an object ID. How to get it is my question.

george7a
27th June 2007, 09:02
Hi,

If you want to change the size of the form, check this link:
http://www.baanboard.com/baanboard/showpost.php?p=98147&postcount=2

I hope it helps,

- George

BaanDeveloper
28th June 2007, 02:50
Hello - thank you for the reply - but the function current.mwindow() returns the object ID of the main window only. And when this is passed to the change.object() function only the outer window is affected. This is why I need a way to get the the oject ID of the individual forms, which are most likely child windows. That is the key. If I could get those object ID's (for Form-1, Form-2, etc...) then I could use the same change.object() function to change the size. Still looking for ideas on this.

george7a
28th June 2007, 09:34
Did you try this function? I have used it before and it does resize the form.

As I told you, there is nothing called "Form object". There are tabs, gwindows and other stuff that can be subobjects to main window. Check this link for the list of obects:
http://www.baanboard.com/programmers_manual_baanerp_help_functions_user_interface_objects_objects_and_subobjects

I hope it helps,

- George

BaanDeveloper
29th June 2007, 01:56
George, thanks again for your reply. In you reply, you say there are tab, gwindows ....". As you suggested, I looked as the list of objects from the link you supplied me. I see a gwindow in the list and I am very familiar with it. But I do not see the "tab" that you mentioned? Is this only a partial list? Can you elaborate more on the "tab" object. Thanks.

george7a
29th June 2007, 08:58
Sure,

It is called DsCtabFrame (http://www.baanboard.com/programmers_manual_baanerp_help_functions_user_interface_objects_dsctabframe). It was mentioned in that list.

I hope it helps,

- George