Hello Marc
Your question
What i need to do : (we are in business of dresses, sweaters, ...)
I have a xbrowse with thousands of records that show a jpg.
The picture is show in the dialog with a oImage object, and changes when browsing
I need to make a small jpg file or save the colorcode with the color of the product.
So I need a kind of Pipe that I can move over the jpg and when I click,
the value should go into a field inside the browse.
I hope also that the field will color the background into the selected color.
Have you a working sample of something like that?
You can show the product directly in xbrowse and get the colorcode on right mouseclick on the product
You can save the color-value to a extra field
Be sure selecting the maincolor because You can get the values of other colours visible inside the product as well
You can add a extra column that shows a field with the selected color ( control the result of the color-selection )
The basic color
The white symbol
hDC := oBrw:GETDC()
oBrw:bRClicked := {| nRow, nCol | nColor := GETPIXEL( hDC, nCol, nRow ), ;
MsgAlert( "Color : " + LTRIM(STR(nColor)) + CRLF + ;
"Row : " + LTRIM(STR(nRow)) + CRLF + ;
"Col : " + LTRIM(STR(nCol)), "Position") }
don't forget
ReleaseDC(hDC) after oDlg:End()
regards
Uwe