... EXIT(oWnd,cPath,pPRG_ABRV) ON INIT OpenMast() On Resize SetLogo( oLogo,oWnd )
RETURN (NIL)
Function SetLogo( oLogo,oWnd )
Local nX,nY
oWnd:CoorsUpdate()
oWnd:oWndClient:CoorsUpdate()
oLogo:CoorsUpdate()
oLogo:Hide()
nX := oWnd:oWndClient:nWidth() - oLogo:nWidth()
nY := oWnd:oWndClient ...
Search found 51 matches: coorsupdate
Searched query: coorsupdate
- Fri May 10, 2024 7:38 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Transparent Png on MDI Parent
- Replies: 11
- Views: 1484
- Sat Jan 06, 2024 8:42 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Create a Panel width a text
- Replies: 29
- Views: 6330
Re: Create a Panel width a text
... nBodyHeight and call oTaskBarPanel:UpdateRegion()
tried but it not refresh
if I collapse then it refresh
oPanel2:nBodyHeight:= aDim[ 2 ] + 50
oPanel2:CoorsUpdate()
oPanel2:UpdateRegion()
oPanel2:refresh()
result
https://i.postimg.cc/pTty7B3M/n.png
also the text is not good i.e. is broken
tried but it not refresh
if I collapse then it refresh
oPanel2:nBodyHeight:= aDim[ 2 ] + 50
oPanel2:CoorsUpdate()
oPanel2:UpdateRegion()
oPanel2:refresh()
result
https://i.postimg.cc/pTty7B3M/n.png
also the text is not good i.e. is broken
- Mon Nov 14, 2022 5:23 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Position of Window CENTER ?
- Replies: 10
- Views: 939
Re: Position of Window CENTER ?
hi Antonio,
oParent:CoorsUpdate()
thx,
i have try it but it does not work :(
still get 0,0
what i´m doing wrong
#include "FiveWin.ch"
PROCEDURE MAIN
LOCAL oWnd, oText_1, oBtn, cFilter := "*.*" + SPACE( 10 )
LOCAL cLog := cFileSetExt( ExeName(), "LOG" )
FErase(cLog)
DEFINE WINDOW oWnd FROM ...
oParent:CoorsUpdate()
thx,
i have try it but it does not work :(
still get 0,0
what i´m doing wrong
#include "FiveWin.ch"
PROCEDURE MAIN
LOCAL oWnd, oText_1, oBtn, cFilter := "*.*" + SPACE( 10 )
LOCAL cLog := cFileSetExt( ExeName(), "LOG" )
FErase(cLog)
DEFINE WINDOW oWnd FROM ...
- Sun Nov 13, 2022 8:10 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Position of Window CENTER ?
- Replies: 10
- Views: 939
Re: Position of Window CENTER ?
Dear Jimmy,
Before calling you code please do:
oParent:CoorsUpdate()
Before calling you code please do:
oParent:CoorsUpdate()
- Wed Jul 27, 2022 9:42 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: about RESIZE
- Replies: 7
- Views: 711
about RESIZE
... oWnd:nTop nLeft := oWnd:nLeft nBottom := oWnd:nBottom nRight := oWnd:nRight
give me {0,0,600,800 }
but i have use CENTER
when using
oWnd:CoorsUpdate()
before i got "real" Coordinate
Request : when MENU is "activate" is it possible to "include" :CoorsUpdate()
---
so i still search ...
give me {0,0,600,800 }
but i have use CENTER
when using
oWnd:CoorsUpdate()
before i got "real" Coordinate
Request : when MENU is "activate" is it possible to "include" :CoorsUpdate()
---
so i still search ...
- Wed Oct 06, 2021 2:57 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Size of the window
- Replies: 4
- Views: 812
Re: Size of the window
... To get the coordinates of the window you will have to add the width or height of any objects attached to the window client oClient.
oWnd:coorsUpdate()
nTop:= oWnd:nTop
nTop:= nTop + if(oWnd:oTop!=nil,oWnd:oTop:nHeight,0)
// Note that oMenu doesn't have an attribute nHeight. It is fixed at 20 ...
oWnd:coorsUpdate()
nTop:= oWnd:nTop
nTop:= nTop + if(oWnd:oTop!=nil,oWnd:oTop:nHeight,0)
// Note that oMenu doesn't have an attribute nHeight. It is fixed at 20 ...
- Sat Jan 02, 2021 11:27 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Logo on MDI window.
- Replies: 5
- Views: 1468
Logo on MDI window.
... program just before the Activate Window:
@ 0,0 Bitmap oLogo File Mcs_AppPath() + "Images\EocwdLogo.bmp" of oWnd:oWndClient PIXEL NOBORDER
oWnd:CoorsUpdate()
oWnd:bPainted := {|| SetLogo( oLogo,oWnd )}
Here is the function that runs during the paint event.
Function SetLogo( oLogo,oWnd )
Local nX ...
@ 0,0 Bitmap oLogo File Mcs_AppPath() + "Images\EocwdLogo.bmp" of oWnd:oWndClient PIXEL NOBORDER
oWnd:CoorsUpdate()
oWnd:bPainted := {|| SetLogo( oLogo,oWnd )}
Here is the function that runs during the paint event.
Function SetLogo( oLogo,oWnd )
Local nX ...
- Tue Mar 19, 2019 5:45 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse - inline editing
- Replies: 9
- Views: 1510
Re: xbrowse - inline editing
Otto wrote:Dear Mr. Rao,
thank you.
I mean why is ? oDlgParent:nTop if I send the DIALOG oDlg to the function always 0.
Best regards
Otto
First call oDlgParent:CoorsUpdate()
and then check nTop, nLeft, nBottom, nRight
- Thu Nov 02, 2017 12:34 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: crop an Image
- Replies: 28
- Views: 5351
Re: crop an Image
I tried with :
:ScrollAdjust()
:Refresh( .t. )
:CoorsUpdate()
but not run ok
:ScrollAdjust()
:Refresh( .t. )
:CoorsUpdate()
but not run ok
- Fri Apr 01, 2016 9:36 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Window Coordinates
- Replies: 0
- Views: 340
Window Coordinates
... the coordinates of "Define Window", and "oWnd:Move".
I am trying to set the windows to the same position after saving the coordinates as:
oWnd:CoorsUpdate()
hIni:nLeft := ROUND(oWnd:nLEFT / WIN_CHARPIX_W,0)
hIni:nWidth := ROUND((oWnd:nRIGHT - oWnd:nLEFT) / WIN_CHARPIX_W,0)
hIni:nTop := ROUND ...
I am trying to set the windows to the same position after saving the coordinates as:
oWnd:CoorsUpdate()
hIni:nLeft := ROUND(oWnd:nLEFT / WIN_CHARPIX_W,0)
hIni:nWidth := ROUND((oWnd:nRIGHT - oWnd:nLEFT) / WIN_CHARPIX_W,0)
hIni:nTop := ROUND ...
- Sun Feb 01, 2015 6:15 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Antonio: Modifying CLASS TRBtn (Bug?)
- Replies: 12
- Views: 3099
Re: Antonio: Modifying CLASS TRBtn (Bug?)
::CoorsUpdate() was missing
Without it, it fails
Without it, it fails
- Sat Dec 06, 2014 3:54 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Save dialog coordinates then redisplay same place
- Replies: 26
- Views: 6182
Re: Save dialog coordinates then redisplay same place
Ok I found SetCoors(), and CoorsUpdate() which contains the Function GetCoors() in it. SetCoors() is a method of the TWindow class. Thank you, I will give them a shot.
James I also discovered this, below is the code to the Method "SetCoors" in the TWindow class:
METHOD SetCoors( oRect ) CLASS ...
James I also discovered this, below is the code to the Method "SetCoors" in the TWindow class:
METHOD SetCoors( oRect ) CLASS ...
- Tue Dec 02, 2014 3:43 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Save dialog coordinates then redisplay same place
- Replies: 26
- Views: 6182
Save dialog coordinates then redisplay same place
I am moving a resource dialog off to the right screen of my two monitors.
My application is running on the left monitor.
I call oDlg:coorsupdate()
Save Top, Left, Right, Bottom to my ini file.
But I haven't figure out how to successfully display the dialog in the same place.
I use
Activate Dialog ...
My application is running on the left monitor.
I call oDlg:coorsupdate()
Save Top, Left, Right, Bottom to my ini file.
But I haven't figure out how to successfully display the dialog in the same place.
I use
Activate Dialog ...
- Fri Nov 14, 2014 5:15 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Guardando la posición de un dialogo
- Replies: 9
- Views: 1363
Re: Guardando la posición de un dialogo
Horacio,
Prueba a llamar a oDlg:CoorsUpdate() antes de tomar los valores de nBottom y nRight
Prueba a llamar a oDlg:CoorsUpdate() antes de tomar los valores de nBottom y nRight
- Fri Feb 14, 2014 6:17 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Tree. Intercambio de posiciones
- Replies: 5
- Views: 747
Re: Tree. Intercambio de posiciones
... IF !::lFocus
RETU NIL
ENDIF
IF oObj == NIL
oObj := ::oControlItem:oObj
ENDIF
IF ValType( oObj ) <> 'O'
RETU NIL
ENDIF
oObj:CoorsUpdate()
SetWindowPos( oObj:hWnd, HWND_TOP ,;
oObj:nTop, oObj:nLeft ,;
oObj:nWidth, oObj:nHeight )
if ::lactive
oitemact := ::oControlItem ...
RETU NIL
ENDIF
IF oObj == NIL
oObj := ::oControlItem:oObj
ENDIF
IF ValType( oObj ) <> 'O'
RETU NIL
ENDIF
oObj:CoorsUpdate()
SetWindowPos( oObj:hWnd, HWND_TOP ,;
oObj:nTop, oObj:nLeft ,;
oObj:nWidth, oObj:nHeight )
if ::lactive
oitemact := ::oControlItem ...