How to hinder that a Window/Dialog can be moved?
How to hinder that a Window/Dialog can be moved?
STYLE DS_MODALFRAME | WS_POPUP | WS_DLGFRAME | WS_SYSMENU DEFINE DIALOG oDlg RESOURCE "PESQUISA" BRUSH oBrush;
STYLE DS_MODALFRAME | WS_POPUP | WS_DLGFRAME | WS_SYSMENUIf your dialog is from resources then you have to set that styles in the RC or RES file.
EMG
Enrico,
I use the Pelles you know to say me that property would have that to activate or to disactivate?
Already I tried modifying in RC, but it does not function!
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
DEFINE DIALOG oDlg;
STYLE DS_MODALFRAME | WS_POPUP | WS_DLGFRAME | WS_SYSMENU
@ 2, 2 BUTTON "&Close";
ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
CENTER
RETURN NILYou have reason, its example you function, but use resources and in this case nothing made!
What necessary he is to prevent that the users moves a DialogBox defined from resources. How to make this?
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
DEFINE DIALOG oDlg;
RESOURCE "TEST"
REDEFINE BUTTON;
ID 201 OF oDlg;
ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
CENTER
RETURN NILTEST DIALOG 107, 58, 153, 154
STYLE DS_MODALFRAME | WS_POPUP | WS_DLGFRAME | WS_SYSMENU
FONT 8, "MS Sans Serif"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
{
PUSHBUTTON "&Close", 201, 54, 105, 50, 14
}Enrico,
Thanks.