Thank you, thank you, thank you....:o) This is exactly what I was looking for. Works just fine :o)
Edit:
Well - works allmost fine. Unfortunately my canvas is larger than the active window (for scrolling purposes), which this function does'nt take into account. But I can probably work around it by placing a panel or canvas in the right size underneath it and use that to test on.
Lazze
Edit:
Well - works allmost fine. Unfortunately my canvas is larger than the active window (for scrolling purposes), which this function does'nt take into account. But I can probably work around it by placing a panel or canvas in the right size underneath it and use that to test on.
Lazze