... 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 ...
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 MAINLOCAL oWnd, oText_1, oBtn, cFilter := "*.*" + SPACE( 10 )LOCAL ...
... nLeft := oWnd:nLeft nBottom := oWnd:nBottom nRight := oWnd:nRight give me {0,0,600,800 } :shock: 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() ...
... itself. 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 ...
... 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 ...
... 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(oWnd:nTOP/WIN_CHARPIX_H,0) ...
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" ...
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 ...