frank holland
22nd March 2012, 16:24
Hi,

Does anyone know if you can set/influence the start position of a (graphical) session window in BaanIV?
For example, I would like a particular session to start in the upper-left corner of the screen.

Strangely enough, it seems like the box color settings in maintain forms have an influence on the start position. If I set the box color of a form to red, the session starts more towards the upper left corner of the client screen.

Are there any predefined variables to set the start position in a program script? The function move.window() unfortunately only works for the old ASCII-interface...

Would appreciate any help!

Cheers,
Frank

mark_h
22nd March 2012, 17:34
Can you try this:

function extern max_window()
{
long My.Win
My.Win = current.mwindow()
change.object(My.Win,DsNx,0,DsNy,0)
update.object(My.Win)
}

This seems to for one session I wrote always put it in the upper left corner. I can't remember where I got this on this board.

frank holland
22nd March 2012, 18:29
Hi Mark,

Your solution works perfectly!

Thanks a lot,
Frank

mark_h
22nd March 2012, 21:54
Don't thank me - I got it from someone else here on baanboard. :)