[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cdkentry questions
From: |
Peter Jay Salzman |
Subject: |
Re: cdkentry questions |
Date: |
Wed, 6 Feb 2002 14:16:28 -0800 |
User-agent: |
Mutt/1.3.25i |
begin Thomas Dickey <address@hidden>
> On Tue, Feb 05, 2002 at 09:13:54PM -0800, Peter Jay Salzman wrote:
> > today is the first day of my life that i played around with cdk. looks
> > great, but i have question. how the heck does one get two cdkentry
> > boxes on the screen at once? i mean something like:
> >
> > CDKENTRY *Entry[2];
> > Entry[0] = newCDKEntry(cdkscreen, CENTER, CENTER, Title[0], "", A_NORMAL,
> > '_',
> > vMIXED, 40, 0, 256, TRUE, FALSE);
> > Entry[1] = newCDKEntry(cdkscreen, 0, 0, Title[1], "", A_NORMAL, '_',
> > vMIXED, 40, 0, 256, TRUE, FALSE);
>
> there are a couple of sample programs in cdk that make more than one entry.
> (I don't recall offhand if they're instantiated at the same time - perhaps
> that's a limitation - but that's where I'd look first).
ok, i managed to print two entries on the same screen. thank heavens.
that restriction would've been enough to kill cdk's usefulness.
a couple of questions about the library:
1. is there documentation anywhere (other than source code examples)?
2. in entry_ex.c, there's a function:
int XXXCB (EObjectType cdktype, void *object, void *clientData, chtype key)
{
return 1;
}
what purpose does this function serve? i can't figure this out from
looking at the source code.
3. we declare a variable of type CDKENTRY with a call like:
directory1 = newCDKEntry (cdkscreen, 0, 0, title1, label1, A_NORMAL,
'.', vMIXED, 40, 0, 256, TRUE, FALSE);
then the source code calls:
bindCDKObject (vENTRY, directory1, '?', XXXCB, NULL);
what does this 2nd function do? it looks like we've already declared
directory1 to be of type CDKENTRY and assigned it to a CDKEntry
object using newCDKEntry. what does bindCDKObject do?
thanks for the help! it's challanging learning all this from source.
the source takes me so far, but i need a little help to get up to snuff.
pete
--
Enron..safe legal abortion..civil liberties..cancelling ICBM treaties..
What's worse? Screwing an intern or screwing an entire country?
PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D