FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Lock dialog in window
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Lock dialog in window
Posted: Tue Sep 18, 2007 06: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

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Lock dialog in window
Posted: Tue Sep 18, 2007 07:45 PM
You could make a dialog without caption:

#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
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Lock dialog in window
Posted: Wed Sep 19, 2007 07: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

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Lock dialog in window
Posted: Wed Sep 19, 2007 10:19 AM

Ok, my mistake. Its working now.

Thanks,
Marc

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite

Continue the discussion