Babulesnik
Member
|
How to forbid to move a window a mouse?
How to forbid to move a window a mouse?
|
|
03-11-2011 09:40 PM |
|
Dynad
Member
|
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 |
|
Babulesnik
Member
|
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 |
|