CDK/ncurses interaction
"Brad Hines" <[email protected]> Fri, 23 Jul 2021 13:37:50 -0700
| Newsgroups | gmane.comp.lib.ncurses.general |
|---|---|
| Organization | Planet A Energy |
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
------=_NextPart_000_08B0_01D77FC7.EF0942E0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hello, this question is more about CDK than ncurses; I have inferred from my
investigations that this is the best place to post such questions. If I am
wrong, a redirect is welcome.
I have used ncurses lightly in the past, am now venturing into CDK. I am
experiencing some behaviors that I can't find documentation on, am hoping
someone can help.
PROBLEM SUMMARY
I am trying to write an application with multiple CdkScreens, like the
example cdkscreen_ex.c.
But when I update a label that is off-screen, using setCDKLabelMessage(), it
draws it immediately, on the current screen.
A LITTLE MORE DETAIL
In my application, I am trying to maintain multiple screens that I just flip
between, as in the cdkscreen_ex.c example.
But the labels are drawing immediately when I update them. For example, if
I add this line just after line 99 of the example, both the screen 2 and
screen 4 messages appear on screen as part of the screen 2 display.
setCDKLabelMessage(label4, (CDK_CSTRING2)title4Mesg, 4);
How can I update off-screen objects without having them immediately draw on
the current screen?
Thanks,
Brad
------=_NextPart_000_08B0_01D77FC7.EF0942E0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 12 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>Hello, =
this question is more about CDK than ncurses; I have inferred from my =
investigations that this is the best place to post such questions. =
If I am wrong, a redirect is welcome.<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>I have used =
ncurses lightly in the past, am now venturing into CDK. I am =
experiencing some behaviors that I can’t find documentation on, am =
hoping someone can help.<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>PROBLEM =
SUMMARY<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal>I am trying to write an application with multiple =
CdkScreens, like the example cdkscreen_ex.c.<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>But when I =
update a label that is off-screen, using setCDKLabelMessage(), it draws =
it immediately, on the current screen.<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>A LITTLE =
MORE DETAIL<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal>In my application, I am trying to maintain multiple =
screens that I just flip between, as in the cdkscreen_ex.c =
example.<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal>But the labels are drawing immediately when I update =
them. For example, if I add this line just after line 99 of the =
example, both the screen 2 and screen 4 messages appear on screen as =
part of the screen 2 display.<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal> =
setCDKLabelMessage(label4, (CDK_CSTRING2)title4Mesg, =
4);<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal>How can I update off-screen objects without having =
them immediately draw on the current screen?<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal>Thanks,<br>Brad<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p></div></body></html>
------=_NextPart_000_08B0_01D77FC7.EF0942E0--