Menu

#7 Window Positions

open-fixed
nobody
None
5
2002-05-22
2002-05-05
No

I'm trying to get SwapDV to retain its last main
window position when starting. I've set the desired
settings in the swapdv.ini file, but the window always
seems to start in the same place. I did some looking
around in the SwapDV.java file and found the following
lines of code:

getValues(args);

if (posX > 100 && posY > 100) {
setLocation(posX, posY);
}
if (width > 100 && height > 100) {
setSize(width, height);
}

I belevie this is the issue:

getValues() reads the window position settings from
SwapDV.ini and sets posX, posY width and height based
on those values. However, the two conditionals
prevent any values less that 100 from being used. Why?

Thanks,
Randy.

Discussion

  • Jim Vaughan

    Jim Vaughan - 2002-05-07

    Logged In: YES
    user_id=503846

    I think those if statements were originally used to
    restrict the size of the window, and were also applied
    to the position. They'll be taken out in the next
    (imminent) release.

    Jim.

     
  • Jonathan Trevor

    Jonathan Trevor - 2002-05-22
    • status: open --> open-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB