CENTERED dialogs

CENTERED dialogs

Postby TimStone » Mon Nov 02, 2015 11:31 pm

Consider this

DEFINE WINDOW oWnd
...
ACTIVATE WINDOW oWnd


DEFINE DIALOG oDlg OF oWnd
...
ACTIVATE DIALOG oDlg CENTERED


DEFINE DIALOG oDlgA OF oDlg
...
ACTIVATE DIALOG oDlgA CENTERED

Should oDlg open centered on oWnd, and oDlgA open centered on oDlg ?

If I open the window, then move it to the side of the display, when oDlg is opened, it is centered on the main display. If I move it over to center it on oWnd, then open oDlgA, it is centered on the screen.

Since OF makes each a subscreen of the previous dialog, I would think CENTERED would make it relative to the previous screen, but it doesn't work that way.

What do you think ?
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2909
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: CENTERED dialogs

Postby cnavarro » Mon Nov 02, 2015 11:38 pm

Try

ACTIVATE DIALOG .... CENTERED IN PARENT
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: CENTERED dialogs

Postby TimStone » Tue Nov 03, 2015 12:22 am

Thanks ... that works.

It's just not in the documentation, even online.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2909
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: CENTERED dialogs

Postby Antonio Linares » Tue Nov 03, 2015 9:17 am

Tim,

You are right, my apologies.

Anyhow it is inside dialog.ch:

Code: Select all  Expand view
#xcommand ACTIVATE DIALOG <oDlg> ;
             [ <center: CENTER, CENTERED> [ <inwnd: IN PARENT> ] ] ;
             [ <NonModal: NOWAIT, NOMODAL> ] ;
             [ WHEN <uWhen> ] ;
             [ VALID <uValid> ] ;
             [ ON [ LEFT ] CLICK <uClick> ] ;
             [ ON INIT <uInit> ] ;
             [ ON MOVE <uMoved> ] ;
             [ ON PAINT <uPaint> ] ;
             [ ON RIGHT CLICK <uRClicked> ] ;
         [ <Resize16: RESIZE16> ] ;
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41408
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: CENTERED dialogs

Postby TimStone » Tue Nov 03, 2015 5:18 pm

I know people don't like to write documentation if they are programmers. I hear that no one reads them, etc. I started a manual 33 years ago when I started creating a major application, and for the past few weeks I've once again been updating it to make it solid for my clients. It is a lot of work, and yet, for those of us who are happy to research answers rather than always asking questions, it is very helpful.

The online manual is pretty good, so it would be nice if the major changes in FWH could be added to that documentation.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2909
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: CENTERED dialogs

Postby Antonio Linares » Tue Nov 03, 2015 9:40 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41408
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: CENTERED dialogs

Postby TimStone » Tue Nov 03, 2015 10:00 pm

And that is exactly where I looked before asking the question. I think I need a glass of wine and an easy chair.

Of course I would have to remember just where they are before I could use them .... getting too old !
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2909
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: CENTERED dialogs

Postby Antonio Linares » Tue Nov 03, 2015 10:27 pm

Tim,

I also forgot that it was updated :-)

Time runs for all of us :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41408
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: CENTERED dialogs

Postby hua » Wed Nov 04, 2015 2:03 am

Neither of you guys missed anything. I updated the wiki after I read this thread yesterday :D
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1050
Joined: Fri Oct 28, 2005 2:27 am

Re: CENTERED dialogs

Postby Antonio Linares » Wed Nov 04, 2015 7:58 am

Hua,

Many thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41408
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: CENTERED dialogs

Postby TimStone » Wed Nov 04, 2015 4:18 pm

Thanks for explaining. As the years go by, it gets harder to be on top of everything, but I do try.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2909
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 41 guests