Lock dialog in window

Lock dialog in window

Postby Marc Vanzegbroeck » Tue Sep 18, 2007 6:53 pm

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

Re: Lock dialog in window

Postby Enrico Maria Giordano » Tue Sep 18, 2007 7:45 pm

You could make a dialog without caption:

Code: Select all  Expand view  RUN
#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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Marc Vanzegbroeck » Wed Sep 19, 2007 7:35 am

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: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Postby Marc Vanzegbroeck » Wed Sep 19, 2007 10:19 am

Ok, my mistake. Its working now.

Thanks,
Marc
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 34 guests