HBQuerier
unread,Jun 11, 2025, 3:37:28 PMJun 11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Harbour Users
Hi,
Thought I'd give this a try, one more time. I tried asking this in the harbour github last year, but received a non-answer.
Is anyone familiar with the CA-Tools implementation in Harbour? If you compile ctwtest.prg, it results in the attached CTWTEST_CATools_Screen_Capture.jpg.
The windows have colors because SetColor() is used each time they are created with WOpen(). But note in ctwfunc.c, that the harbour extension of CA-Tools provides optional color attributes for Wopen()
HB_FUNC( WOPEN )
{
int iColor;
/* 6th (color) and 7th (lVisible) parameters are Harbour extensions */
iColor = hb_ctColorParam( 6, -1 ); /* Harbour extension */ /* HB_EXTENSION */
hb_retni( hb_ctwCreateWindow( hb_parni( 1 ), hb_parni( 2 ),
hb_parni( 3 ), hb_parni( 4 ),
hb_parl( 5 ), iColor,
hb_parldef( 7, HB_TRUE ) ) ); /* HB_EXTENSION */
}
I have 2 questions:
1) Why are the windows filled with equal signs "="? Why aren't they filled with spaces?
2) Are the color extensions in WOpen() supposed to work? I've tried them over & over in different ways for almost a year, but so far the only way to set colors in the window, is external to WOpen().
CTWTEST_CATools_Screen_Capture.jpg