Search found 32 matches: getwndrect

Return to advanced search

Re: call DLL under FiveWin

hi Antonio,
Antonio Linares wrote:In FWH you have function GetWndRect( hWnd ) --> aRect :-)
Yes ... just a Sample for Xbase++ and HMG Syntax

i want to use "as much old Code" as possible so i like to know how under FiveWin, thx
by Jimmy
Mon Aug 01, 2022 11:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: call DLL under FiveWin
Replies: 7
Views: 672

Re: call DLL under FiveWin

Dear Jimmy,

In FWH you have function GetWndRect( hWnd ) --> aRect :-)
by Antonio Linares
Mon Aug 01, 2022 11:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: call DLL under FiveWin
Replies: 7
Views: 672

Re: How to read position and size of a dialog box

... nRight := oRect:nRight // restore the dialog to a saved position oDlg:Move( nTop, nLeft, nRight - nLeft, nBottom - nTop ) Window : aRect := GetWndRect( oWnd:hWnd ) nTop := aRect[ 1 ] nLeft := aRect[ 2 ] nBottom := aRect[ 3 ] nRight := aRect[ 4 ] nHeight := aRect[ 3 ] - aRect[ 1 ] + 1 nWidth ...
by ukoenig
Sat Oct 19, 2019 3:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to read position and size of a dialog box (solved)
Replies: 5
Views: 942

Re: How to read position and size of a dialog box

From a post of Uwe :

aRect := GetWndRect(oWnd)
oBar := TExplorerBar():New( 0, aRect4 - 300, aRect4 + 720, aRect3 - 75, oWnd )

Mayby also on oDlg
by Marc Venken
Sat Oct 19, 2019 12:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to read position and size of a dialog box (solved)
Replies: 5
Views: 942

Re: Ayuda DLL

Antonio buenos dias, gracias por la ayuda Agrego la VM.LIB (xharbour), y me manda estos errorres :( :( Proyecto: Kept5, Entorno: BorlandDLL: [1]:Harbour.Exe Source\Tseguro.prg /m /n /es2 /ki /iP:\32bits\xharbour\include;P:\32bits\FWH\INCLUDE /i /oObj\Tseguro.c xHarbour Compiler build 1.2.1 (SimpLex)...
by ricardog
Thu Aug 31, 2017 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 6286

Re: Device context to file

hDeskTop:=GetWindowDc(FindWindow(...)) siz:=GetWndRect(hDeskTop) hDC := CreateCompatibleDC( hDeskTop ) hBmp := CreateCompatibleBitMap( hDC, siz[4]-siz[2], siz[3]-siz[1]) hOldBmp:=SelectObject(hDc, hBmp) BitBlt(hDc, 0, 0, siz[4]-siz[2], siz[3]-siz[1], ...
by Natter
Tue Apr 05, 2016 1:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Device context to file
Replies: 4
Views: 848

Re: Save dialog coordinates then redisplay same place

... you are using two different monitors you may have different resolutions to deal with. You can get the current dialog coordinates (in pixels) using getWndRect(oDlg:hWnd). Then you should be able to use oDlg:move() to restore its location (because Move() uses pixels). This should work for a single ...
by James Bott
Wed Dec 03, 2014 8:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save dialog coordinates then redisplay same place
Replies: 26
Views: 5212

Re: dialog:move( ntop,nleft,nwidth,nheight)

Thank Antonio and CharlesKwon! GetWndRect(odlg:hwnd) can be used to save the postion, while saving odlg:ntop,odlg:nleft,.. no use. ACTIVATE DIALOG oDlg on INIT (odlg:move(ntop1,nleft1,nright1-nleft1+1,nbottom1-ntop1+1),.t.) VALID (arect:=GetWndRect(odlg:hwnd),; ...
by ShumingWang
Mon Nov 03, 2014 2:06 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: dialog:move( ntop,nleft,nwidth,nheight)
Replies: 9
Views: 1428

Re: How to save and restore windows position and size?

Hi,

You can use function

aKoordinat := GetWndRect(oDlg:hWnd)

Best regards,
by avista
Fri Aug 29, 2014 8:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to save and restore windows position and size?
Replies: 2
Views: 489

Re: Resource Dialogs change with PC's

... aRect[1]*rsl1, aRect[2]*rsl0,(aRect[4] - aRect[2])*rsl0, (aRect[3] - aRect[1])*rsl1, .t. ) // ntop,nleft,nbottom,nright end case next // aRect = GetWndRect( ::hWnd ) ::Move( ntop,nleft,::nWidth*rsl0, ::nHeight*rsl1, .T. ) if ::lCentered WndCenter( ::hWnd ) else if Empty( ::cResName ) ::Move( ...
by ShumingWang
Wed Apr 30, 2014 3:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Resource Dialogs change with PC's
Replies: 6
Views: 1451

Re: "Snap" for Clipper

...            (function  in ?)    WINDOW.PRG     2610  3798 GETWNDDEFAULT()        (function  in WINDOW.PRG)    WINDOW.PRG     3224! 3425  3426 GETWNDRECT()           (function  in ?)    WINDOW.PRG     1707 GLOBALFREE()           (function  in ?)    WINDOW.PRG     2017 GLOBALGETATOMNAME()   ...
by Antonio Linares
Sat Oct 26, 2013 9:44 am
 
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 6540

Re: XBROWSE determine FOOTER coordinates

...    ACTIVATE DIALOG oDlgENDIFRETURN ALLTRIM( cCitaj )  Probably need some combination with oBrw:oCol:DataRect() or GetClientRect() or GetWndRect() ... or some other solution Or Can i use something like this ? DEFINE DIALOG oDlg OF oCol:oFooter .... ???? I will be verry grateful for ...
by avista
Fri Aug 16, 2013 11:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE determine FOOTER coordinates
Replies: 9
Views: 2194

Re: TCalendar

REDEFINE GET DATE1 ID 102 OF odlg; ACTION cal( DATE1, self ) FUNCTION cal( date1, oGet ) LOCAL odlg, oCal, aRect LOCAL lOk := .f. aRect := getWndRect( oGet:hWnd ) DEFINE DIALOG odlg FROM 0,0 TO 145,265 PIXEL STYLE nor( WS_POPUP,WS_VISIBLE,WS_BORDER) //150, 174 @-10,-10 CALENDAR oCal VAR date1 ...
by ShumingWang
Mon Sep 17, 2012 5:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TCalendar
Replies: 8
Views: 2269

Re: Save and Restore Dialog Position

... on init restauraposicao(odlg) valid gravaposicao(odlg) Function GravaPosicao(oTemDlg) LOCAL aRect, nNome LOCAL nDlg_Largura, nDlg_Altura aRect := GetWndRect( oTemDlg:hWnd ) nNome := oTemDlg:cResName WritePProString( nNome , "Topo" , alltrim(str(aRect[1])) , Curdrive()+":\"+Curdir()+"\VDialog-"+nNomeComputador+".ini") ...
by ronaldo
Fri Oct 28, 2011 7:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save and Restore Dialog Position
Replies: 6
Views: 1741

Re: Window question

GetWndRect( oWnd:hWnd ) --> gives the correct coordinates at any time.
We may use this one function instead of using combination of many methods/functions.

Alternatively, we can use oWnd:GetRect() -> oRect ( TRect object )
by nageswaragunupudi
Wed Jun 08, 2011 7:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Window question
Replies: 8
Views: 1783
Next

Return to advanced search