ACTIVATE DIALOG oDlg AS MDICHILD

ACTIVATE DIALOG oDlg AS MDICHILD

Postby Silvio.Falconi » Tue May 03, 2022 11:29 am

How I can maximized the dialog ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7072
Joined: Thu Oct 18, 2012 7:17 pm

Re: ACTIVATE DIALOG oDlg AS MDICHILD

Postby horacio » Tue May 03, 2022 3:22 pm

On Init( oDlg : Maximize() )

Saludos
horacio
 
Posts: 1363
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina

Re: ACTIVATE DIALOG oDlg AS MDICHILD

Postby Silvio.Falconi » Wed May 04, 2022 11:35 am

horacio wrote:On Init( oDlg : Maximize() )

Saludos



ok but there is some error because when I maximize the dialog it is over the width of the main window look this

Image

Code: Select all  Expand view  RUN
#include "fivewin.ch"

    #define AS_MDICHILD  1
    #define AS_DIALOG    2


    //----------------------------------------------------------------------------//

    function Main()

       local oWnd, oBar, oMenu

       SetGetColorFocus()

       DEFINE WINDOW oWnd MDI TITLE "test"  VSCROLL HSCROLL
       DEFINE BUTTONBAR oBar OF oWnd SIZE 100,32 2007

       DEFINE BUTTON OF oBar PROMPT "test" CENTER ACTION test()

       ACTIVATE WINDOW oWnd

    return nil

    //----------------------------------------------------------------------------//

    static function test()

       local oDlg, oBar, oFont
       DEFINE FONT oFont NAME "Segoe UI" SIZE 0,-14
       DEFINE DIALOG oDlg  FONT oFont TITLE "Test Mdi" BRUSH oBrush

       ACTIVATE DIALOG oDlg AS MDICHILD ;
             ON INIT ( oDlg :Maximize())
    return oDlg

 
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7072
Joined: Thu Oct 18, 2012 7:17 pm

Re: ACTIVATE DIALOG oDlg AS MDICHILD

Postby karinha » Sun May 08, 2022 11:48 am

Code: Select all  Expand view  RUN

#Include "FiveWin.ch"

#Define AS_MDICHILD  1
#Define AS_DIALOG    2

STATIC oWnd

FUNCTION Main()

   LOCAL oBar, oMenu

   SkinButtons()
   SetGetColorFocus()

   DEFINE WINDOW oWnd MDI TITLE "test"  VSCROLL HSCROLL

   DEFINE BUTTONBAR oBar OF oWnd SIZE 100, 32 2007

   DEFINE BUTTON OF oBar PROMPT "test" CENTER ACTION test()

   ACTIVATE WINDOW oWnd CENTERED

RETURN NIL

STATIC FUNCTION test()

   LOCAL oDlg, oBar, oFont, oBrush

   DEFINE BRUSH oBrush FILE "..\bitmaps\sea.bmp" RESIZE
   DEFINE FONT oFont NAME "Segoe UI" SIZE 0, - 14

   DEFINE DIALOG oDlg  FONT oFont TITLE "Test Mdi" BRUSH oBrush

   ACTIVATE DIALOG oDlg CENTERED AS MDICHILD ON INIT( oDlg:Maximize() )

   oBrush:End()
   oFont:End()

RETURN NIL

// FIN / END - kapiabafwh@gmail.com
 


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7834
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: ACTIVATE DIALOG oDlg AS MDICHILD

Postby Silvio.Falconi » Sun May 08, 2022 7:14 pm

karinha wrote:
Code: Select all  Expand view  RUN

#Include "FiveWin.ch"

#Define AS_MDICHILD  1
#Define AS_DIALOG    2

STATIC oWnd

FUNCTION Main()

   LOCAL oBar, oMenu

   SkinButtons()
   SetGetColorFocus()

   DEFINE WINDOW oWnd MDI TITLE "test"  VSCROLL HSCROLL

   DEFINE BUTTONBAR oBar OF oWnd SIZE 100, 32 2007

   DEFINE BUTTON OF oBar PROMPT "test" CENTER ACTION test()

   ACTIVATE WINDOW oWnd CENTERED

RETURN NIL

STATIC FUNCTION test()

   LOCAL oDlg, oBar, oFont, oBrush

   DEFINE BRUSH oBrush FILE "..\bitmaps\sea.bmp" RESIZE
   DEFINE FONT oFont NAME "Segoe UI" SIZE 0, - 14

   DEFINE DIALOG oDlg  FONT oFont TITLE "Test Mdi" BRUSH oBrush

   ACTIVATE DIALOG oDlg CENTERED AS MDICHILD ON INIT( oDlg:Maximize() )

   oBrush:End()
   oFont:End()

RETURN NIL

// FIN / END - kapiabafwh@gmail.com
 


Regards, saludos.


pls
viewtopic.php?f=3&t=41750&start=0
I tried odlg:maximize() but not run ok
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7072
Joined: Thu Oct 18, 2012 7:17 pm

Re: ACTIVATE DIALOG oDlg AS MDICHILD

Postby nageswaragunupudi » Wed Jun 22, 2022 2:57 am

oDlg:bMdiSetup := { |oMdiChild| oMdiChild:Maximize() }
ACTIVATE DIALOG AS MDICHILD
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 42 guests

cron