Lock dialog in window

Post Reply
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Lock dialog in window

Post 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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Lock dialog in window

Post 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
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Post 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
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Post by Marc Vanzegbroeck »

Ok, my mistake. Its working now.

Thanks,
Marc
Post Reply