Nemi
Nemi

Reputation: 1032

How to detect corner or edge which started resizing from AIR NativeWindowBoundsEvent?

If you do a manual start of resizing with startResize(EdgeOrCornerString) you have to set EdgeOrCornerString. But how to detect which one Edge Or Corner has been clicked from inside (NativeWindowBoundsEvent) resizing handler? event.type gives only 'resizing', there is no edge or corner specified. Is it possible and if yes, how?

EDIT: I want to do custom resizing of NativeWindow, and need to know from which corner or edge user has started resizing operation.

Upvotes: 0

Views: 283

Answers (1)

Eric
Eric

Reputation: 10658

Just check your mouse position and compare it to you NativeWindow width and height

Upvotes: 1

Related Questions