home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cbmvax!cbmehq!cbmger!edohwg!heinz
- From: heinz@edohwg.UUCP (Heinz Wrobel)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Need help with GadTools stuff...
- Message-ID: <heinz.02lq@edohwg.UUCP>
- Date: 22 Jul 92 19:08:14 GMT
- References: <14g6bbINN81o@darkstar.UCSC.EDU>
- Organization: Edotronik GmbH
- Lines: 44
-
- In article <14g6bbINN81o@darkstar.UCSC.EDU> smythe@cats.ucsc.edu (Brian Matthew Aljian) writes:
- >
- >I'm having problems getting text to show up in Text-Entry and Text-Display
- >gadgets. Specifically, I'm having problems manipulating and setting the
- >pointers that point to the text I want to put in the gadgets. Note that
- >I'm using the GadToolsLibrary.
- >
- >I have in an include file:
- >
- >STRPTR Item1;
- >STRPTR Item2;
- >
- >struct TagItem Item1_Tags[] =
- >{
- > {GTST_String, &Item1},
- > {TAG_DONE, NULL},
- >};
- >
- >struct TagItem Item2_Tags[] =
- >{
- > {GTTX_Text, &Item2},
- > {TAG_DONE, NULL},
- >};
- >
- >Then in main() I have...
- >
- > Item1 = "sample1";
- > Item2 = "sample2";
-
- You need to leave out the "&" chars. You have to specify a pointer to the
- text you want to display, not a pointer to the pointer to the text.
-
- Hope that helps.
-
-
- > Brian M. Aljian
-
- --
- Heinz Wrobel, Edotronik GmbH (ECG018)
- FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
- Path: cbmehq!cbmger!edohwg!heinz@cbmvax.commodore.com
- "It's good to have a mouse, it's faster if you can do without one..."
- "He who doesn't develop with an A2024 doesn't know about font independent
- user interfaces..."
-