[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Borders are wrapping
From: |
Cobus Conradie |
Subject: |
Borders are wrapping |
Date: |
Wed, 08 Jan 2003 10:30:18 +0200 |
I have a problem with the borders that are wrapping to the next line. I am
using CDK-5.2 on RedHat 8. In the konsole there is some known bugs but on a
terminal or xterm the borders wrap with a label and some times give "core
dumped. Your fault (signal 11)" .
int CDKScreen::InitKleinBoodskap(char *mesg[], int aantal_lyne, int wag_tyd)
/******************************************************************/
{ /* Declare variables. */
CDKLABEL *boodskap = (CDKLABEL *)NULL;
/* Draw the CDK screen. */
refreshscr();
/* Declare the labels. */
boodskap = newCDKLabel (cdkscreen, CENTER, CENTER, mesg, aantal_lyne,
TRUE, TRUE);
/* Is the label NULL? */
if (boodskap == (CDKLABEL *)NULL)
{
/* Clean up the memory. */
destroyCDKScreen (cdkscreen);
/* End curses... */
endCDK();
/* Spit out a message. */
printf ("Oops. Can't seem to create the label. Is the window too
small?\n");
exit (1);
}
/* Draw the CDK screen. */
refreshscr();
if(wag_tyd)
sleep(10);
else
waitCDKLabel (boodskap, (char)NULL);
/* Clean up. */
destroyCDKLabel (boodskap);
return 1;
}
This is a pice of the code. The rest of the file is attached.
Can someone help??
Met vriendelike groete
With kind regards
Cobus Conradie
Snr. Programmeerder
Elektroniese Dienste
PU vir CHO
Tel: (018) 299 4115
Sel: (083) 415 4164
Faks: (018) 299 4118
E-pos: address@hidden
"One who loves discipline, loves knowledge."
Hierdie boodskap (en aanhangsels) is onderhewig aan beperkings en 'n
vrywaringsklousule. Volledige besonderhede beskikbaar by
http://www.puk.ac.za/itb/e-pos/disclaimer.html , of by address@hidden
This message (and attachments) is subject to restrictions and a disclaimer.
Please refer to http://www.puk.ac.za/itb/e-pos/disclaimer.html for full
details, or at address@hidden
cdkscreen.h
Description: Binary data
cdkscreen.C
Description: Binary data
- Borders are wrapping,
Cobus Conradie <=