Search found 35 matches: clienttoscreen

Return to advanced search

Re: strange move Folder - Dialog

... just curiosity, final code? You can show? If you can't, no problem. Programmer's curiosity only. Regards, saludos. local aPt := { 111,200 } aPt := ClientToScreen( oWndMain:hWnd, aPt ) oFolder:bAction := { || IF(oFolder:nOption=3 .or. oFolder:nOption=6 ,; (oDlg:nHeight:=400,oDlg:Move( aPt[ 1 ] , ...
by Silvio.Falconi
Tue Nov 23, 2021 1:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: strange move Folder - Dialog
Replies: 5
Views: 515

Re: strange move Folder - Dialog

...  oFontDialog:End()   oFontBold:End()RETURN NIL// fin / end  resolved ( thanks to Rao) with only local aPt := { 111,200 } aPt := ClientToScreen( oWndMain:hWnd, aPt ) oFolder:bAction := { || IF(oFolder:nOption=3 .or. oFolder:nOption=6 ,; (oDlg:nHeight:=400,oDlg:Move( aPt[ 1 ] , ...
by Silvio.Falconi
Tue Nov 23, 2021 8:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: strange move Folder - Dialog
Replies: 5
Views: 515

Re: Question to coordinates.

Try with ClientToScreen Function
by cnavarro
Thu Mar 28, 2019 10:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question to coordinates.
Replies: 6
Views: 932

Re: Layer a Dialog with a bitmap

I edited the sample.
Added 6 lines after ClientToScreen
Please implement this and try
by nageswaragunupudi
Tue Jul 10, 2018 8:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Layer a Dialog with a bitmap
Replies: 9
Views: 1795

Re: Layer a Dialog with a bitmap

Rao,
I have problem if I use many btnbmp

this command aPt := ClientToScreen( oBtn:oWnd:hWnd, { nRow, nCol } )

not give the right points where move the dialog of messages
by Silvio.Falconi
Tue Jul 10, 2018 8:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Layer a Dialog with a bitmap
Replies: 9
Views: 1795

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: 6333

Re: Canal5 Calendar

good this : local a, aPos --- a := ::oTooltip:GetSize() aPos = { nRow, nCol } aPos := ClientToScreen( ::hWnd, aPos ) if aPos[2]+a[1] > GetSysMetrics(1) aPos[2] := GetSysMetrics(0) - a[1] - 20 endif ::oToolTip:cHeader := nil//"Calendar" ::oToolTip:cBody ...
by Silvio.Falconi
Tue Feb 14, 2017 2:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Canal5 Calendar
Replies: 15
Views: 5697

Re: Canal5 Calendar

... := cPrompt aAux := ::MaxLen( cPrompt ) nMaxLen := aAux[1] nLines := aAux[2] nWidth := nMaxLen + 4 nHeight := ( nLines * ::nHRow ) + 2 endif ClientToScreen( oWnd:hWnd, aPoint ) // CRASHES HERE BECAUSE oWn:hWnd is nil and apoint is empty. if aPoint[ 1 ] == nRow aPoint := ClientToScreen( oWnd:hWnd, ...
by Randal
Tue Feb 14, 2017 12:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Canal5 Calendar
Replies: 15
Views: 5697

Re: Colocar un Dialogo debajo de una casilla en Xbrowse

... := ::nDisplayCol - 2  Ahora tendrias que pasar esas coordenadas a valores de la pantalla completa: local aPoint := { nRow, nCol } aPoint = ClientToScreen( oBrowse:hWnd, aPoint ) Y desde la claúsula ON INIT de tu diálogo, posicionarlo en esas coordenadas:      ACTIVATE DIALOG ...
by Antonio Linares
Sun Oct 18, 2015 6:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Colocar un Dialogo debajo de una casilla en Xbrowse
Replies: 2
Views: 578

Re: (APORTE) PickColor con Fuentes para sus Sistemas

... devuelve el hwnd correspondiente a unas coordenadas. Primero captura las coordenadas con GetCursorPos(), las cambias a coordenadas de pantalla con ClientToScreen(), se las pasas a WindowFromPoint() y después averiguas el color con GetPixel(). En teoría debería funcionar. Con probar... Un saludo.
by antolin
Mon Jul 27, 2015 8:02 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: (APORTE) PickColor con Fuentes para sus Sistemas
Replies: 15
Views: 3665

Re: "Snap" for Clipper

...   2074  2074  2518  3260  3278  3437  3712  3856  3858  3931                   3933 CLIENTEDGE()           (function  in ?)    WINDOW.PRG      880 CLIENTTOSCREEN()       (function  in ?)    WINDOW.PRG     3540 CLOCALS                WINDOW.PRG     1587  1590  1593 CLOSEWINDOW()          (function ...
by Antonio Linares
Sat Oct 26, 2013 9:44 am
 
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 6699

Re: XBROWSE determine FOOTER coordinates

You are right. It is oCol:nDisplayCol not nDisplayPos. Sorry for my mistake,

These coordinates are relative to oBrw:hWnd. You need to derive coordinates relative to the screen for use to create a dialog. You may consider using the function ClientToScreen(...).
by nageswaragunupudi
Sat Aug 17, 2013 10:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE determine FOOTER coordinates
Replies: 9
Views: 2199

Re: TestTitl.prg Sample MDI

... ; NOSYSMENU ; NOICONIZE ; NOCAPTION 2. capture the Brush-area from the Mainwindow. STATIC FUNCTION CHILDPAINT( hDC, oWnd ) local aPoint aPoint := ClientToScreen( WndMain():hWnd, { 0, 0 } ) aPoint := ScreenToClient( oWnd:hWnd, aPoint ) SetBrushOrgEx( hDC, aPoint[ 2 ], aPoint[ 1 ] + WndMain():oBar:nHeight ...
by ukoenig
Mon Feb 27, 2012 6:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TestTitl.prg Sample MDI
Replies: 20
Views: 11745

Re: Coordenadas/Posicion en pixeles de un renglon de xBrowse?

... the rectangle { nTop, nLeft, nBottom, nRight ) After deciding the x and y then the point needs to converted to screen coordinates: aPoint := ClientToScreen( oBrw:hWnd, { y, x } ) if aPoint[ 1 ] > 32768 aPoint[ 1 ] -= 65535 endif if aPoint[ 2 ] > 32768 aPoint[ 2 ] -= 65535 endif Then ...
by nageswaragunupudi
Thu May 26, 2011 1:50 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Coord/Posicion en pixeles de un renglon de xBrowse? (Ok)
Replies: 9
Views: 1591

Re: A transparent MDI-child to show Backgrd. of MDI-frame ?

... NIL //-------- NO BACKGROUND displayed from MDI-frame !!! ---------- STATIC FUNCTION CHILDPAINT( hDC, oWnd7, oWndBtn ) LOCAL aPoint aPoint := ClientToScreen( oWnd7:hWnd, { 0, 0 } ) // WndMain() aPoint := ScreenToClient( oWndBtn:hWnd, aPoint ) SetBrushOrgEx( hDC, aPoint[ 2 ] - 1, aPoint[ 1 ...
by ukoenig
Wed Feb 16, 2011 4:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A transparent MDI-child to show Backgrd. of MDI-frame ?
Replies: 9
Views: 4264
Next

Return to advanced search