Search found 42 matches: getrect

Return to advanced search

Re: How make it?

... // -------------- FUNCTION MYDLG( oDlg, oBtn, oFont ) LOCAL oDlg1, oBtn2, oSlider1, nSlidPos1 := 1, oSlider2, nSlidPos2 := 2 LOCAL oRect1 := oDlg:GetRect() LOCAL nTop1 := oRect1:nTop LOCAL nLeft1 := oRect1:nLeft LOCAL nTop2 := oBtn:nTop() + oBtn:nHeight() + 25 // 25 = dlg-title LOCAL nLeft2 := ...
by ukoenig
Mon Nov 11, 2019 7:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How make it?
Replies: 6
Views: 1202

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

... the position and the size of a dilalog box in my application? To get the dialog position from screen-top and left and the dialogsize oRect := oDlg:GetRect() nTop := oRect:nTop nLeft := oRect:nLeft nWidth := oDlg:nWidth nHeight := oDlg:nHeight // ---------------- Resizing a dialog You need as well ...
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: 947

How to get the coordinates of a child window?

Hi, understanding that the method ::GetRect() always returns an oRect with the coordinates on the main window. But how to get the coordinates of a child window (TMdiChild) relative to the parent window (TMdiFrame) when the user moved/sized ...
by frose
Mon Feb 04, 2019 12:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to get the coordinates of a child window?
Replies: 5
Views: 800

Re: Antonio: Differences between BORLAND and VCC

In fact, ::nWidth()/::nHight()/::nWidth/::nHight/::GetRect() differs on both compilers and should not used to calculations for controls!?
by byte-one
Mon May 28, 2018 8:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Antonio: Differences between BORLAND and VCC
Replies: 32
Views: 6401

Re: buttons and datepick on xbrowse

... procedure RetornaRowColDoObj(oObj, nRow, nCol) /* */ local aPos, nLen if HB_IsObject(oObj) aPos := oObj:GetRect() if ValType(nRow) == 'N' nRow += aPos:nTop nCol += aPos:nLeft endif if (nLen := (GetSysMetrics(1)-(nRow+254))) < 0 nRow += nLen endif if ...
by MGA
Wed May 09, 2018 10:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: buttons and datepick on xbrowse
Replies: 14
Views: 3261

Re: buttons and datepick on xbrowse

... procedure RetornaRowColDoObj(oObj, nRow, nCol) /* */ local aPos, nLen if HB_IsObject(oObj) aPos := oObj:GetRect() if ValType(nRow) == 'N' nRow += aPos:nTop nCol += aPos:nLeft endif if (nLen := (GetSysMetrics(1)-(nRow+254))) < 0 nRow += nLen endif if ...
by MGA
Wed May 09, 2018 1:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: buttons and datepick on xbrowse
Replies: 14
Views: 3261

Re: GetRect() difference

very good
by Antonio Linares
Fri Aug 19, 2016 4:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetRect() difference
Replies: 7
Views: 1172

Re: GetRect() difference

Problem solved. :D :D
Now I use nPos:nTop and nPos:nLeft, and it's working in the old FW and the new one.
I found that when using the array nPos, position 5 is nil in the old version, and not in the new version.
In the new version nPos[4] is equal to nPos[5] of the old version, and so on...
by Marc Vanzegbroeck
Fri Aug 19, 2016 1:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetRect() difference
Replies: 7
Views: 1172

Re: GetRect() difference

... that I also use it in my programs, to know the location of the mail window, when closing the program. I saved nPos[2] and nPos[3] of oMenuWnd:GetRect() to know the location, but now it is not OK anymore. How can I get the location of the window, so I can restore it again while opening it?
by Marc Vanzegbroeck
Fri Aug 19, 2016 12:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetRect() difference
Replies: 7
Views: 1172

Re: GetRect() difference

Thank you Antonio,

I was using this code since FW1.95, and never changed it because it was working fine :)

oDlg:Center() and oDlg:SetSize( nWidth, nHeight ) is working fine with FWH64 16.04 Rev Build3 :wink:
by Marc Vanzegbroeck
Fri Jul 15, 2016 7:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetRect() difference
Replies: 7
Views: 1172

Re: GetRect() difference

Marc,

You can center a dialog (or any window or control) doing:

oDlg:Center()

to change the size fo a dialog (or any window or control) you can do:

oDlg:SetSize( nWidth, nHeight )
by Antonio Linares
Fri Jul 15, 2016 6:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetRect() difference
Replies: 7
Views: 1172

Re: GetRect() difference

...  vwbreedte = min(vwbreedte,oMenuWnd:nWidth-60)    ........   oDlg:nWidth  = vWBreedte + 68   oDlg:move(oMenuWnd:nTop+4+24+oMenuWnd:GetRect()[2],(oMenuWnd:nWidth/2)-((vWBreedte+68)/2)+oMenuWnd:GetRect()[3])   ........RETURN  ...
by Marc Vanzegbroeck
Wed Jul 13, 2016 8:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetRect() difference
Replies: 7
Views: 1172

Re: GetRect() difference

Marc,

Could you post an example of how you are using it ? thanks
by Antonio Linares
Wed Jul 13, 2016 6:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetRect() difference
Replies: 7
Views: 1172

GetRect() difference

Hi,

In my program with FWH32 7.10, oWnd:GetRect()[3] returns -8
in the new program with FWH64 16.04 Revd Build3 it is returning 1048.

Is there a difference between the version 7.10 & 16.04 or is there a difference between the 32bit and the 64bit version?
What is the correct one?
by Marc Vanzegbroeck
Wed Jul 13, 2016 10:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetRect() difference
Replies: 7
Views: 1172

Re: TImage zoom

... ) CENTER define button prompt "- zoom" of oBar action( oImg:nZoom--, oImg:refresh() ) CENTER OR : local oImage, oBrush, aRect := oDlg:GetRect() DEFINE IMAGE oImage FILENAME "..\bitmaps\pngs\chart.png" oBrush := TBrush():new( ,,,, ResizeBmp( oImage:hBitmap, aRect[4], aRect[3], ...
by ukoenig
Wed Apr 06, 2016 8:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TImage zoom
Replies: 14
Views: 2590
Next

Return to advanced search