FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour CENTERED dialogs
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

CENTERED dialogs

Posted: 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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM

Re: CENTERED dialogs

Posted: 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
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Re: CENTERED dialogs

Posted: 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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: CENTERED dialogs

Posted: Tue Nov 03, 2015 09:17 AM
Tim,

You are right, my apologies.

Anyhow it is inside dialog.ch:

Code (fw): Select all Collapse
#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
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Re: CENTERED dialogs

Posted: Tue Nov 03, 2015 05: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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: CENTERED dialogs

Posted: Tue Nov 03, 2015 09:40 PM
Tim,

It seems as it was already documented:

http://wiki.fivetechsoft.com/doku.php?id=fivewin_commands_dialogs
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Re: CENTERED dialogs

Posted: 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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: CENTERED dialogs

Posted: 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
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM

Re: CENTERED dialogs

Posted: Wed Nov 04, 2015 02: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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: CENTERED dialogs

Posted: Wed Nov 04, 2015 07:58 AM

Hua,

Many thanks! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Re: CENTERED dialogs

Posted: Wed Nov 04, 2015 04: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

Continue the discussion