Search found 18 matches: owndparent

Return to advanced search

Re: Handle para query - Freeze de pantalla

... window/dialog and without this setting they are all centered in the desktop window. MsgRun() also behaves the same way. If CenterMsgs() is set and oWndParent is not specified, then MsgRun() is centered in the active window/dialog. This is accomplished by this code: IF oWndParent == NIL .and. CenterMsgs( ...
by nageswaragunupudi
Wed Sep 22, 2021 11:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Handle para query - Freeze de pantalla
Replies: 8
Views: 1263

Re: Handle para query - Freeze de pantalla

Estimado, alguien sabe para que sirve la funcion SetAsMsgBox() la cual aparece en MsgRun    IF oWndParent == NIL .and. CenterMsgs( "?" )        lCenterMsg := TRUE        SetAsMsgBox()     ENDIF  Me parece que la variable oWndParent nunca es usada, ...
by carlos vargas
Tue Sep 21, 2021 8:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Handle para query - Freeze de pantalla
Replies: 8
Views: 1263

Re: galería de imágenes

... DEFINE DIALOG ... also from METHOD Activate() CLASS TAlbum change ACTIVATE WINDOW into ACTIVATE DIALOG Class TWindow implements Method Center( oWndParent ) so that message can be sent to any object whose class is or inherits from TWindow
by Antonio Linares
Fri Jan 15, 2021 5:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: galería de imágenes
Replies: 52
Views: 16696

Re: galería de imágenes

... I stop the focus on the talbum window ? 2.- How can I center the talbum window over the parent window ? When I use dialogs I can do odlg:center(owndparent) but with another windows I don't know how tod do it. I think these questions are FWH 101 but my programming skills are a bit rusty. Regards, ...
by José Luis Sánchez
Fri Jan 15, 2021 5:04 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: galería de imágenes
Replies: 52
Views: 16696

Re: New FTDN February 2020 (FWH 20.02)

... de las constantes disponibles en https://docs.microsoft.com/en-us/window ... nd-strings * Mejora en la función MsgRun( cCaption, cTitle, bAction, oWndParent, aColor ) - Nuevo: Quinto parámetro opcional aColor. Matriz de dos colores, color de texto y fondo. - Si se especifica oWndParent, el cuadro ...
by Antonio Linares
Fri Feb 28, 2020 7:55 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN February 2020 (FWH 20.02)
Replies: 1
Views: 4614

New FTDN February 2020 (FWH 20.02)

... in https://docs.microsoft.com/en-us/windows/win32/intl/language-identifier-constants-and-strings * Enhancement MsgRun( cCaption, cTitle, bAction, oWndParent, aColor ) - New: 5th optional parameter aColor. Array of 2 colors, Text and back colors - If oWndParent is speicified, the msg da=ialog is ...
by Antonio Linares
Wed Feb 26, 2020 10:24 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN February 2020 (FWH 20.02)
Replies: 1
Views: 4614

Re: Positioning a dialog box

Michel,

You can try this way:

oDlg:Center( oWndParent )

And it will be centered in its parent area
by Antonio Linares
Thu Mar 22, 2018 7:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Positioning a dialog box
Replies: 2
Views: 443

Re: MsgRun()-Question

I think this is a better code:

ACTIVATE DIALOG oDlg ON PAINT oDlg:SayText( oDlg:cMsg ) ;
ON INIT oDlg:Center( oWndParent )

sometimes GetActiveWindow() may return a window that does not belong to our app
by Antonio Linares
Mon May 08, 2017 5:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: MsgRun()-Question
Replies: 15
Views: 2860

Re: MsgRun()-Question

Günther, We could add a new parameter to MsgRun() function MsgRun( cCaption, cTitle, bAction, oWndParent ) and then in its code add this:     IF cTitle == NIL          DEFINE DIALOG oDlg OF oWndParent ;          ...
by Antonio Linares
Sat May 06, 2017 11:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: MsgRun()-Question
Replies: 15
Views: 2860

Problema con ADJUST en los controles en un diálogo

... Solucioné el problema del error modificando el método checkDots de la clase tControl cambiando las líneas DEFINE WINDOW oDot1 OF oWndParent; STYLE nOr( WS_CHILD, WS_CLIPSIBLINGS ); FROM 0, 0 TO 2, 2 PIXEL ; COLOR "N/N" ; CURSOR oSizeNWSE por @0,0 say oDot1 prompt "" of oWndParent ...
by quique
Mon Jun 16, 2008 7:39 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problema con ADJUST en los controles en un diálogo
Replies: 0
Views: 442

Uwe,

Have you tried with oDlg:Center( [oWndParent] ) ?

where oWndParent is an optional parameter
by Antonio Linares
Tue Jun 03, 2008 11:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to show a defined Dialog-Pos in relation to Window ?
Replies: 2
Views: 650

Hazlo así:

oWnd:Center( oWndParent )
by Antonio Linares
Tue Oct 23, 2007 9:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: window:center() doesn´t work right
Replies: 27
Views: 3846

... tried to combine ScreenToClient() and ClientToScreen() ? Based on the (right) used hWnd, you may get the correct coordinates. > 3. Count with oWndParent:aWnd if there are MDICHILD's open (Can we add the window manually to oWndParent:oWndClient:aWnd?) > Yes, you can manually add to :aWnd ...
by Antonio Linares
Sat Sep 29, 2007 8:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to set a MENU in MDI Child window?
Replies: 21
Views: 4078

... ( That's OK with 'SetParent()' ) 2. Save MDICHILD's position together with its Height and Width ( This is what does not work ) 3. Count with oWndParent:aWnd if there are MDICHILD's open ( Can we add the window manually to oWndParent:oWndClient:aWnd? ) Patrick PS. I'm thinking.. Would it not ...
by Patrick Mast
Sat Sep 29, 2007 7:15 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to set a MENU in MDI Child window?
Replies: 21
Views: 4078

... menu? We can't as it is a Windows built-in class, and it manages the menu automatically > It looks like SetParent() also does not add the oWndParent:oWndClient:aWnd. Or do I need to add it manually to it? > yes, add it manually Ok, so only option is to enhance working with SetParent() ...
by Patrick Mast
Fri Sep 28, 2007 8:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to set a MENU in MDI Child window?
Replies: 21
Views: 4078
Next

Return to advanced search