Dialog No Move

Dialog No Move

Postby lailton.webmaster » Mon Sep 22, 2008 2: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
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: Dialog No Move

Postby Enrico Maria Giordano » Mon Sep 22, 2008 7:02 am

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

hu,

Postby lailton.webmaster » Mon Sep 22, 2008 8:56 am

i try more move normal.

i wanna that not move
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: hu,

Postby Enrico Maria Giordano » Mon Sep 22, 2008 9: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
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

x

Postby lailton.webmaster » Mon Sep 22, 2008 9: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 }:?
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: x

Postby Enrico Maria Giordano » Mon Sep 22, 2008 10:02 am

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

hum

Postby lailton.webmaster » Mon Sep 22, 2008 10:03 am

humm..

here to me move.
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: hum

Postby Enrico Maria Giordano » Mon Sep 22, 2008 10:28 am

Do you want my EXE to test it there?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

hm

Postby lailton.webmaster » Mon Sep 22, 2008 11:13 am

ya send me link

thanks so much.
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm


hum

Postby lailton.webmaster » 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...
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Postby gkuhnert » 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
User avatar
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands

LoL

Postby lailton.webmaster » Mon Sep 22, 2008 12:42 pm

LoL right thanks so much
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 54 guests