Search found 49 matches: awnd

Return to advanced search

Re: Saber si ventana MDI esta abierta

... // Esta funcion selecionada una ventana MDI si ya esta abierta. LOCAL i:=0, lSuccess:=.f. cTitle:=upper(cTitle) FOR i=1 TO LEN(oWndP:oWndClient:aWnd) IF UPPER( oWndP:oWndClient:aWnd[i]:cCaption )=cTitle oWndP:oWndClient:aWnd[i]:SetFocus() lSuccess:=.t. ENDIF NEXT RETURN lSuccess Return NIL
by JESUS MARIN
Wed Oct 16, 2019 9:51 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Saber si ventana MDI esta abierta - ( SOLUCIONADO )
Replies: 9
Views: 1711

Re: how to list opened dialogs and switch each ohter

The easiest way is to add the dialog to an array when activating (use on init clause) and delete from the array when closing (use valid clause).

Other way is
aWnd := GetAllWin()
Check if each oWnd in aWnd is a valid object and if it is a dialog and add it to aDialog array
by nageswaragunupudi
Thu Mar 28, 2019 8:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: how to list opened dialogs and switch each ohter
Replies: 2
Views: 593

EXCEL - Desalineado con la ventana.

... vscroll title cTitulo s_oWndExcel:bKeyDown := {| nKey | IIf(nKey==VK_ESCAPE,s_oWndExcel:end(),; IIf(nKey==VK_F6 .and. len(M->oWnd:oWndClient:aWnd) > 1, M->oWnd:NextWindow(),))} activate window s_oWndExcel maximized ON Init(OnInitExcel(@oExcel)); Valid(ValidExcel( oExcel )) return /*********************************************/ ...
by MGA
Mon Oct 03, 2016 1:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: EXCEL - Desalineado con la ventana.
Replies: 11
Views: 2677

Re: Colocar Excel/Word en Aplicacion

... vscroll title cTitulo s_oWndExcel:bKeyDown := {| nKey | IIf(nKey==VK_ESCAPE,s_oWndExcel:end(),; IIf(nKey==VK_F6 .and. len(M->oWnd:oWndClient:aWnd) > 1, M->oWnd:NextWindow(),))} activate window s_oWndExcel maximized ON Init(OnInitExcel(@oExcel)); Valid(ValidExcel( oExcel )) return /*********************************************/ ...
by MGA
Sun Aug 28, 2016 9:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Colocar Excel/Word en Aplicacion
Replies: 10
Views: 3165

Re: La nueva apariencia de EasyReport

Cuando carga el programa , ningún control tiene foco , una vez selecionado uno , ya queda con foco . No va ninguna de los dos . aWnd[ nArea ]:bLClicked = {|nRow,nCol,nFlags| DeactivateItem(), ; StartSelection( nRow, nCol, aWnd[ nArea ] ), ; nAktArea := aWnd[ nArea ]:nArea,; DeactivateItem(), ...
by mastintin
Wed Oct 08, 2014 10:13 am
 
Forum: EasyReport, EasyDialog y EasyPreview
Topic: La nueva apariencia de EasyReport
Replies: 226
Views: 157978

Re: La rueda del ratón debe mover todo el reporte arriba y abajo

... lUp := .F. DEFAULT lDown := .F. DEFAULT lPageUp := .F. DEFAULT lPageDown := .F. DEFAULT lPos := .F. pausa(1) UnSelectAll() FOR i := 1 TO 100 IF aWnd[i] <> NIL aFirstWndCoors := GetCoors( aWnd[i]:hWnd ) EXIT ENDIF NEXT .... cuando realizo el primer scroll pasa la pausa sin cambiar nada ...
by mastintin
Sun Aug 17, 2014 11:17 am
 
Forum: EasyReport, EasyDialog y EasyPreview
Topic: La rueda del ratón debe mover todo el reporte arriba y abajo
Replies: 27
Views: 16387

Re: El ratón al moverse deja "rastro" en las reglas

He modificado el código que acababa de subir, me había liado con los aRulers :-)

En realidad pintamos directamente sobre las ventanas MDIChild que estan en aWnd

Poco a poco enteréndonos de en donde está cada cosa :-)
by Antonio Linares
Sat Aug 16, 2014 12:36 pm
 
Forum: EasyReport, EasyDialog y EasyPreview
Topic: El ratón al moverse deja "rastro" en las reglas
Replies: 34
Views: 12927

Re: Por qué no se pintan bien los bitmaps ?

... IIF( oGenVar:aAreaHide[nArea], nRulerTop, GetPixel( nHeight ) + nAreaZugabe ), .T. ) C:\Git\easyreport_n1\source\ereport.prg(3084): aWnd[i]:Move( aWnd[i]:nTop + GetPixel( nHeight - nOldHeight ), ; C:\Git\easyreport_n1\source\ereport.prg(3089): nTotalHeight += GetPixel( nHeight - ...
by cnavarro
Thu Aug 14, 2014 6:23 pm
 
Forum: EasyReport, EasyDialog y EasyPreview
Topic: Por qué no se pintan bien los bitmaps ?
Replies: 9
Views: 1622

Re: "Snap" for Clipper

...                WINDOW.PRG      169   189!  195! 1175  2550  2556  2558  2559  2700  2708                   2709  3798  3800  3834  4111  4114 AWND                    WINDOW.PRG     2854  2855  2856  4051  4086  4097 BCLRGRAD                WINDOW.PRG      442 BCOMMNOTIFY            WINDOW.PRG ...
by Antonio Linares
Sat Oct 26, 2013 9:44 am
 
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 6715

Re: Error con un programa de fivewin en una maquina virtual

...  , "TECLA2" => nil       , "ACCION" => { || ::oWnd:tile() }         , "WHEN" => { || len( ::oWnd:oWndClient:aWnd ) > 0 } }, ;             { "DESCRIP" => hIdioma:mnuVentHoriz  , "TIPO" => "1", "FLAGS1" => ...
by quique
Fri Apr 12, 2013 6:15 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error con un programa de fivewin en una maquina virtual
Replies: 47
Views: 8841

Mdichild frivolos - SOLUCIONADO

... 15 veces una ventana MdiChild. Para evitar eso, en FW2.0 utilicé el siguiente código que ahora no funciona en Fwh: if ASCAN( oWndMain:oWndClient:aWnd, {|x| x:cargo == "ZONAS"} ) == 0 DEFINE WINDOW oWndZona MDICHILD FROM 0,0 TO MAXROW(), MAXCOL() OF oWndMain ; TITLE "MAESTRO DE ...
by Armando Picon
Tue Aug 03, 2010 12:15 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Mdichild frivolos - SOLUCIONADO
Replies: 17
Views: 6942

Re: Problemas con TRichEdit

... static function RefreshBar() local oBar := oWndMain:oBar:aControls if Len( oWndMain:oWndClient:aWnd ) == 1 AEval( oBar, { |x,y| If( y == 1, x:Enable(), x:Disable() ) }, 1, 7 ) AEval( oBar, { |x| x:Refresh() }, 1, 7 ) endif return .t. //----------------------------------------------------------------------------// ...
by triumvirato
Fri Dec 11, 2009 7:17 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas con TRichEdit
Replies: 13
Views: 4797

Problemas con TRichEdit

... C:\Users\David\DOCUME~2\MISPRO~1\Gesco\Gesco.prg => MAIN(37) Si lo hacemos con ventanas MDI: (comentando la línea WHEN Len( oWndMain:oWndClient:aWnd ) == 0 ; en testrtf.prg) Application =========== Path and name: C:\FWH\samples\testrtf.exe (32 bits) Size: 1,482,240 bytes Time from start: 0 hours ...
by triumvirato
Thu Dec 10, 2009 11:43 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas con TRichEdit
Replies: 13
Views: 4797

Re: Ventanas abiertas

Jairo,

En oWnd:oWndClient:aWnd tienes un array con las ventanas MDICHILD solamente :-)
by Antonio Linares
Tue Jun 23, 2009 11:38 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ventanas abiertas
Replies: 3
Views: 560

Re: como refrescar xbrowse en entorno mdi?

... local i:=0, lSuccess:=.f., cTitle:= upper( cTit ) for i=1 to len(oWnd:oWndClient:aWnd) if upper( oWnd:oWndClient:aWnd[i]:cCaption )=cTitle lSuccess:=.t. endif next return lSuccess
by gabo
Sun Mar 22, 2009 9:01 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: como refrescar xbrowse en entorno mdi? (SOLUCIONADO)
Replies: 4
Views: 465
Next

Return to advanced search