FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Dialog No Move
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Dialog No Move
Posted: Mon Sep 22, 2008 02:49 AM

Holla, me gostaria de saber se tien alguna forma de fazer para que el dialog no mova.

Hi, i wanna make something to no permit that a dialog or window
move, while user move dialog or window return false.

someone know ?
thanks

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Dialog No Move
Posted: Mon Sep 22, 2008 07:02 AM
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    DEFINE DIALOG oDlg;
           STYLE DS_MODALFRAME | WS_POPUP

    @ 2, 2 BUTTON "&Close";
           ACTION oDlg:End()

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


EMG
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
hu,
Posted: Mon Sep 22, 2008 08:56 AM

i try more move normal.

i wanna that not move

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hu,
Posted: Mon Sep 22, 2008 09:57 AM
lailton.webmaster wrote:i try more move normal.

i wanna that not move


I don't understand what you are trying to say. Do you mean that the dialog of my sample can be moved? It should not.

EMG
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
x
Posted: Mon Sep 22, 2008 09:59 AM

I want that deny move dialog, no premission to move, always the same location if i input to stay in center no move to up do down to left or to right
stay only center !

understand }:?

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: x
Posted: Mon Sep 22, 2008 10:02 AM

The dialog of my sample can't be move. Otherwise, I don't understand.

EMG

Posts: 603
Joined: Sun May 04, 2008 08:44 PM
hum
Posted: Mon Sep 22, 2008 10:03 AM

humm..

here to me move.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hum
Posted: Mon Sep 22, 2008 10:28 AM

Do you want my EXE to test it there?

EMG

Posts: 603
Joined: Sun May 04, 2008 08:44 PM
hm
Posted: Mon Sep 22, 2008 11:13 AM

ya send me link

thanks so much.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
hum
Posted: Mon Sep 22, 2008 12:12 PM

right, more i need that show caption
i need something that while onmove is in use return false
because i use my lib with it and my lib show caption...

Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
Dialog No Move
Posted: Mon Sep 22, 2008 12:31 PM

You could try to save the position of the dialog and then add
oDlg:bMoved := ... (Codeblock to move dialog to previous position)

Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
LoL
Posted: Mon Sep 22, 2008 12:42 PM

LoL right thanks so much

Continue the discussion