[wsjt-devel] Specifying an RGB qColor for Highlight Callsign UDP function

2019-04-05 Thread Ed Stokes
Thanks to Maurizio R on the Xojo Forum and everyone here who has been so patient and helpful! "Qt serialize colors as I posted in my previous message. Alpha, Red, Green and Blue are 16 bits values not 8 bit values emitted as a 16 bits values. For example a full red color has the red part emitte

Re: [wsjt-devel] Specifying an RGB qColor for Highlight Callsign UDP function

2019-04-05 Thread Derek Turner via wsjt-devel
It's  the alpha.  Sent from Yahoo Mail on Android On Fri, 5 Apr 2019 at 20:03, Ed Stokes wrote: Bill, Mike, Derek or any other kind soul: Still having trouble…. This causes the given call sign to disappear.  I was expecting the call sign to be highlighted in blue on a red background.

Re: [wsjt-devel] Specifying an RGB qColor for Highlight Callsign UDP function

2019-04-05 Thread Bill Somerville
On 05/04/2019 19:58, Ed Stokes wrote: // background color Dim c As Color = &cff ' Defaults to Alpha value 0 outputStream.WriteUInt8 (1) ' RGB spec outputStream.WriteUInt16 (c.Alpha) outputStream.WriteUInt16 (c.Red) outputStream.WriteUint16 (c.Green) outputStream.WriteUInt16 (c.Blue) outputStr

Re: [wsjt-devel] Specifying an RGB qColor for Highlight Callsign UDP function

2019-04-05 Thread Ed Stokes
Bill, Mike, Derek or any other kind soul: Still having trouble…. This causes the given call sign to disappear. I was expecting the call sign to be highlighted in blue on a red background. Instead there is a blank space where the call sign should be. What am I doing wrong? 73, Ed W1KOK Me

Re: [wsjt-devel] Specifying an RGB qColor for Highlight Callsign UDP function

2019-04-04 Thread Bill Somerville
On 04/04/2019 12:11, Bill Somerville wrote: ' The Xojo Color type stores 8-bit per channel colour values ' so we can start with one of them and extend to the 16-bit ' per channel Qt's deep colour QColor type uses ' ' Let's start with a light green Color variable Dim c As Color = &c007f00 ' Defau

Re: [wsjt-devel] Specifying an RGB qColor for Highlight Callsign UDP function

2019-04-04 Thread Bill Somerville
On 04/04/2019 04:41, Ed Stokes wrote: With reference to NETWORK_MESSAGE_HPP Highlight Callsign In   13 quint32  *                         Id (unique key)  utf8  *                         Callsign utf8  *                         Background Color QColor  *                         Foreground Color

Re: [wsjt-devel] Specifying an RGB qColor for Highlight Callsign UDP function

2019-04-03 Thread Derek Turner via wsjt-devel
It's a bit more complicated than that. You have to specify a QColor format first. and the colour components are doubled up. This gives me red background with white foreground :-     byte[] byteBackgroundQColor = new[] { 1, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0 }; // format =1 then Red AA RR GG BB

Re: [wsjt-devel] Specifying an RGB qColor for Highlight Callsign UDP function

2019-04-03 Thread Black Michael via wsjt-devel
Looks like four 16-bit integers  r,g,b,alpha de Mike W9MDB On Wednesday, April 3, 2019, 10:45:49 PM CDT, Ed Stokes wrote: With reference to NETWORK_MESSAGE_HPP Highlight Callsign In   13                     quint32 *                         Id (unique key)        utf8 *              

[wsjt-devel] Specifying an RGB qColor for Highlight Callsign UDP function

2019-04-03 Thread Ed Stokes
With reference to NETWORK_MESSAGE_HPP Highlight Callsign In 13 quint32 * Id (unique key)utf8 * Callsign utf8 * Background Color QColor * Foreground