Page 1 of 1

Lock dialog in window

Posted: Tue Sep 18, 2007 6:53 pm
by Marc Vanzegbroeck
Hi,

Now I'm opening a main window. Then a small dialog with project's is displayed. After selecting a project, a dialog that is resized to the full screen is opened. Now it's posible to move the dialog. I was wondering if there is a possibility that the dialog is 'locked' in the window, so the customer can't move the dialog.

Thanks,
Marc

Re: Lock dialog in window

Posted: Tue Sep 18, 2007 7:45 pm
by Enrico Maria Giordano
You could make a dialog without caption:

Code: Select all

#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 NIL
EMG

Posted: Wed Sep 19, 2007 7:35 am
by Marc Vanzegbroeck
Enrico,

It work if you I creating it from source, but if I create it from resource I always get the title-bar.

Marc

Posted: Wed Sep 19, 2007 10:19 am
by Marc Vanzegbroeck
Ok, my mistake. Its working now.

Thanks,
Marc