About Store Forum Documentation Contact



Post Reply 
How to forbid to move a window a mouse?
Author Message
Babulesnik Offline
Member

Post: #1
How to forbid to move a window a mouse?
How to forbid to move a window a mouse?
03-11-2011 09:40 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #2
RE: How to forbid to move a window a mouse?
You can set its flag with WIN_FLAG enum.

enum WIN_FLAG // Window Flags
{
WIN_MOVABLE =0x01, // movable
WIN_RESIZABLE =0x02, // resizable
WIN_IMMEDIATE_ACT =0x04, // immediately activate when mouse enters window area
WIN_IMMEDIATE_DEACT=0x08, // immediately deactivate when mouse leaves window area

WIN_IMMEDIATE=WIN_IMMEDIATE_ACT|WIN_IMMEDIATE_DEACT, // immediately activate and deactivate when mouse enters or leaves window area
};

window.flag(~WIN_MOVABLE);

There is always evil somewhere, you just have to look for it properly.
03-11-2011 09:54 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #3
RE: How to forbid to move a window a mouse?
(03-11-2011 09:54 PM)Dynad Wrote:  You can set its flag with WIN_FLAG enum.

enum WIN_FLAG // Window Flags
{
WIN_MOVABLE =0x01, // movable
WIN_RESIZABLE =0x02, // resizable
WIN_IMMEDIATE_ACT =0x04, // immediately activate when mouse enters window area
WIN_IMMEDIATE_DEACT=0x08, // immediately deactivate when mouse leaves window area

WIN_IMMEDIATE=WIN_IMMEDIATE_ACT|WIN_IMMEDIATE_DEACT, // immediately activate and deactivate when mouse enters or leaves window area
};

window.flag(~WIN_MOVABLE);

Thank you very much!!!
03-11-2011 10:23 PM
Find all posts by this user Quote this message in a reply
Post Reply