home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!olivea!hal.com!darkstar.UCSC.EDU!cats.ucsc.edu!smythe
- From: smythe@cats.ucsc.edu (Brian Matthew Aljian)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Need help with GadTools stuff...
- Message-ID: <14g6bbINN81o@darkstar.UCSC.EDU>
- Date: 21 Jul 92 05:12:11 GMT
- Organization: University of California; Santa Cruz
- Lines: 38
- NNTP-Posting-Host: am.ucsc.edu
-
-
- 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";
-
- When I run my program I get garbage in the two fields. I know I'm not doing
- my pointers correctly, but I've tried everything I can think of to remedy
- this problem. Can someone please help me?
-
- Thanks *VERY* much in advance for any help! I've been stuck on this for many
- days now. :-(
-
- --
- Brian M. Aljian
- smythe@stallion.santa-cruz.ca.us
-