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
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.
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
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
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
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
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
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 *
With reference to NETWORK_MESSAGE_HPP
Highlight Callsign In 13 quint32
* Id (unique key)utf8
* Callsign utf8
* Background Color QColor
* Foreground