Search found 41 matches: windowstate

Return to advanced search

Re: Small Question about Word and FWH

Dear Michel, > 1. How do I open my document minimized? odoc := oWord:Documents:Open( cFile ) odoc:WindowState := 1 // wdWindowStateMinimize > How do I minimize a document that already has been opened, without using oWord:Visible := .F. which minimizes all my opened ...
by Antonio Linares
Thu Jul 13, 2023 4:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Small Question about Word and FWH
Replies: 29
Views: 1150

Re: OLE question concerning WINDOWSTATE

For Excel, please use these constants:
Code: Select all  Expand view
xlMaximized -4137
xlMinimized -4140
xlNormal    -4143
by nageswaragunupudi
Tue Sep 19, 2017 7:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: OLE question concerning WINDOWSTATE
Replies: 1
Views: 506

OLE question concerning WINDOWSTATE

Hello, In my application I use an OLE instruction to define the way Word has to be shown I use : oWord:WindowState := 0/1/2 0 = normal window 1 = maximized window 2 = minimized window Normally this instructions also has to work for Excel or Outlook. So I use : oExcel:WindowState ...
by driessen
Tue Sep 19, 2017 12:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: OLE question concerning WINDOWSTATE
Replies: 1
Views: 506

EXCEL - Desalineado con la ventana.

... oExcel:DisplayAlerts := .F. oExcel:ActiveWorkBook:Protect('',.f.,.f.) //Para poder manupilar el estado de la venta del libro oExcel:WindowState := -4137 //Se quitan los botones de maximizar, minimizar y cerrar oExcel:Windows(1):WindowState := -4137 //Se maximiza Excel en mi ventana ...
by MGA
Mon Oct 03, 2016 1:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: EXCEL - Desalineado con la ventana.
Replies: 11
Views: 2646

Re: Colocar Excel/Word en Aplicacion

... oExcel:DisplayAlerts := .F. oExcel:ActiveWorkBook:Protect('',.f.,.f.) //Para poder manupilar el estado de la venta del libro oExcel:WindowState := -4137 //Se quitan los botones de maximizar, minimizar y cerrar oExcel:Windows(1):WindowState := -4137 //Se maximiza Excel en mi ventana ...
by MGA
Sun Aug 28, 2016 9:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Colocar Excel/Word en Aplicacion
Replies: 10
Views: 3154

Ayuda con archivo Word

... oWord:= TOleAuto():New("Word.Application") oWord:Documents:Open("c:\systema\Hola.doc") oWord:Visible := .f. oWord:Set( "WindowState", 1 ) // Maximizado oWord:quit() me sale error: Time from start: 0 hours 0 mins 0 secs Error occurred at: 04/22/14, 10:58:16 Error ...
by jbrita
Tue Apr 22, 2014 2:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con archivo Word
Replies: 2
Views: 419

Re: Saber Metodos de un CREATEOBJECT

... dispatch PROPERTYPUT void Width( [in] double ) STDCALL dispatch PROPERTYGET VARIANT_BOOL WindowsForPens() STDCALL dispatch PROPERTYGET USERDEFINED WindowState() STDCALL dispatch PROPERTYPUT void WindowState( [in] USERDEFINED ) STDCALL dispatch PROPERTYGET int UILanguage() STDCALL dispatch PROPERTYPUT ...
by Antonio Linares
Sun May 12, 2013 9:54 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Saber Metodos de un CREATEOBJECT
Replies: 62
Views: 32147

Re: Saber Metodos de un CREATEOBJECT

... [in] int ) STDCALL dispatch PROPERTYGET int Height() STDCALL dispatch PROPERTYPUT void Height( [in] int ) STDCALL dispatch PROPERTYGET USERDEFINED WindowState() STDCALL dispatch PROPERTYPUT void WindowState( [in] USERDEFINED ) STDCALL dispatch PROPERTYGET VARIANT_BOOL DisplayAutoCompleteTips() ...
by Antonio Linares
Sun May 12, 2013 9:52 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Saber Metodos de un CREATEOBJECT
Replies: 62
Views: 32147

Re: Word and Windows 7

... 2" + CRLF+ CRLF ) oText:Font:Size := 12 oText:Invoke( "TypeText", "Test 3" + CRLF+ CRLF ) oWord:Visible := .T. oWord:WindowState := 1 // Maximize return nil
by MarcoBoschi
Thu Jun 09, 2011 8:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Word and Windows 7
Replies: 8
Views: 1963

Word and Windows 7

... 2" + CRLF+ CRLF ) oText:Font:Size := 12 oText:Invoke( "TypeText", "Test 3" + CRLF+ CRLF ) oWord:Visible := .T. oWord:WindowState := 1 // Maximize return nil
by MarcoBoschi
Wed Jun 08, 2011 3:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Word and Windows 7
Replies: 8
Views: 1963

Re: Incrustar otra aplicación

... ' - Libro abierto: '+clibro ) oexcelsolver:ActiveWorkBook:Protect('',.f.,.f.) //Para poder manupilar el estado de la venta del libro oexcelsolver:WindowState(-4137) //Se quitan los botones de maximizar, minimizar y cerrar oexcelsolver:Windows(1):WindowState(-4137) //Se maximiza Excel en mi ventana ...
by Sebastián Almirón
Fri Mar 04, 2011 3:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Incrustar otra aplicación
Replies: 11
Views: 5188

Word with Harbour and xHArbour Solved

... 2" + CRLF+ CRLF ) oText:Font:Size := 12 oText:Invoke( "TypeText", "Test 3" + CRLF+ CRLF ) oWord:Visible := .T. oWord:WindowState := 1 // Maximize return nil Regards Maurizio
by Maurizio
Wed Feb 16, 2011 4:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Word with Harbour and xHArbour Solved
Replies: 3
Views: 867

Re: How to identify WindowState

try it please #define NOME_PROGRAMMA_TITLE "MAIN" FUNCTION Main() PUBLIC oApp RddSetDefault( "DBFCDX" ) SetHandleCount( 100 ) SET DATE FORMAT "dd-mm-yyyy" SET DELETED ON SET CENTURY ON SET EPOCH TO year( date() ) - 20 SET MULTIPLE OFF SetBalloon( .T. ) IF ISEXERUNNING( ...
by Silvio
Sat Feb 06, 2010 8:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to identify WindowState
Replies: 11
Views: 2582

Re: How to identify WindowState

Dear Mr.Patrizio, DEFINE WINDOW oWnd MDICHILD OF WndMain() NOMAXIMIZEoWnd:aMinMaxInfo  := {oWnd:nWidth,oWnd:nHeight,oWnd:nWidth,oWnd:nHeight,oWnd:nWidth,oWnd:nHeight,oWnd:nWidth,oWnd:nHeight}ACTIVATE WINDOW oWnd  The above code ie oWnd:aMinMaxInfo along with NOMAXIMIZE is...
by anserkk
Wed Feb 03, 2010 11:36 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to identify WindowState
Replies: 11
Views: 2582

Re: How to identify WindowState

According to me the disadvantage of using aMinMaxInfo is that it requires me to calculate the height and width in pixels. In future, every time I need to alter the window size, I will have to recalculate the height and width again. Whereas using the STYLE, I need not bother about it. I don't use re...
by Patrizio
Wed Feb 03, 2010 8:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to identify WindowState
Replies: 11
Views: 2582
Next

Return to advanced search