Alaska Software Inc. - opposite of AutomationTranslateColor()
Username: Password:
AuthorTopic: opposite of AutomationTranslateColor()
AUGE_OHRopposite of AutomationTranslateColor()
on Thu, 08 Sep 2011 05:51:36 +0200
hi,

with AutomationTranslateColor() i can get a COLORREF
using for activeX or DLL call, but it if got a COLORREF


 ot4xb Syntax

nHexColor := @User32:GetSysColor( COLOR_HIGHLIGHT )
-> something like 0x00bbggrr

will give me COLORREF of Item(s) selected in a control.
(ok i can get it with XBPSYSCLR_HILITEBACKGROUND too ...)

how to "translate" it into Xbase++ ?

greetings ba Ohr
Jimmy
Martin AltmannRe: opposite of AutomationTranslateColor()
on Thu, 08 Sep 2011 07:42:36 +0200
Jimmy,
have a look into the helpfile - AutomationTranslateColor() can be used both 
ways and can convert a COM/ActiveX colourvalue into a Xbase++ colourvalue 
and vice versa.

Regards,
Martin

______________________________

Deutschsprachiges Xbase-Forum:
http://www.xbaseforum.de/
Deutschsprachige Xbase-Entwickler e. V.:
http://www.xbaseentwickler.de/
______________________________
"AUGE_OHR"  schrieb im Newsbeitrag 
news:7324d7b1$7f3a50af$18431@news.alaska-software.com...

hi,

with AutomationTranslateColor() i can get a COLORREF
using for activeX or DLL call, but it if got a COLORREF


 ot4xb Syntax

nHexColor := @User32:GetSysColor( COLOR_HIGHLIGHT )
-> something like 0x00bbggrr

will give me COLORREF of Item(s) selected in a control.
(ok i can get it with XBPSYSCLR_HILITEBACKGROUND too ...)

how to "translate" it into Xbase++ ?

greetings ba Ohr
Jimmy
AUGE_OHRRe: opposite of AutomationTranslateColor()
on Thu, 08 Sep 2011 20:42:07 +0200
hi,

ok i will try it, thx

 greetings ba Ohr
Jimmy
AUGE_OHRRe: opposite of AutomationTranslateColor()
on Thu, 15 Sep 2011 23:39:43 +0200
hi,

using Xbase++ Color for a activX it must be 
AutomationTranslateColor(nColor,.F.)
to get a activX Color into Xbase++ it must be 
AutomationTranslateColor(nColor,.T.)

 greetings by Ohr
Jimmy