Workflow Soluiton

 View Only

How to move and size your windows in workflow 7...

  • 1.  How to move and size your windows in workflow 7...

    Posted Mar 23, 2010 06:01 PM
    Here is a little tidbit on how to position and resize your window exactly the way you want every time. it took me a while to figure out so I thought I share it... also please delete this entry if it has already been mentioned in the forums (I searched but didn't see anything), thx. Okay, so first open up your formbuilder component and right click in an empty spot to select "edit form". When the Edit Value popup window appears, select the second tab Behavior, then under "Body Custom Events" click on Add; in the next popup, select onactivate form the Event dropdown list and add the following Java code: moveTo(0,0); resizeTo(640,400) Back out all the way by clicking the OK buttons and you are done. The above line will move the window to Top Left corner (0,0) every time, but you may enter any other values you need/want. It will resize the window to (640, 400) size. Additionally you may use the following format (which I prefer) so don’t have to do any calculations… moveTo(0,0); resizeTo(640+100,400+300) My form size is 640x400 and I added a little extra to it, 100 in X direction and 300 in Y direction to compensate for all the toolbars, a user may have opened in their browser. Hope this helps out everyone, good luck… Tahir