Thank you much.
I belatedly found what should have been enough to clue me in in chapter 10 of the ORCA/C manual but I still would have had trouble with it without your help.
On Saturday, November 26, 2022 at 12:02:55 AM UTC-5, Kelvin Sherlock wrote:
The rectangle needs to be broken up into 8 bytes (keeping in mind the
words are little endian). Assuming a rectangle of (20, 20, 180, 620),
convert it to hexadecimal (0x0014, 0x0014, 0x00b4, 0x026c), convert it
to bytes (0x14, 0x00, 0x14, 0x00, 0xb4, 0x00, 0x6c, 0x02), and embed it ("0\0x14\0x00\0x14\0x00\0xb4\0x00\0x6c\0x02" ... )
On 2022-11-25 18:27:35 +0000, Tom Thumb said:
"Toolbox Programming in C", Mike Westerfield, pg79 states:
"size This field is generally a single character controlling the size
of the alert window.
The character is a numeric digit, from 0 to 9. All but the first of
these digits corresponds to a specific size window, but the 0 character
is the first byte of a nine byte field. The other bytes define the size
of the window by listing the edges as two-byte integers, in this format:..."
I get rects and V1,H1,V2,H2 coordinates But not how to specify them in
a string.
My question: If I enter a 0 as the first character of the alert string
how do I then enter the four two-byte integers in the nine byte field?
I've tried several things and I'm thinking it's simple but I'm not
getting it. I know there are calls I can make providing templates but
I'm trying to get this resource example working specifying a custom
alert size.
/*- About Box --------------------------------------------------*/
resource rAlertString (1) {
"43/"
"Frame 1.0\n"
"by Mike Westerfield\n"
"\n"
"Contains libraries from ORCA C,\n"
"Copyright 1991, Byte Works Inc."
"/^#0\$00";
};
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)