home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!cis.ohio-state.edu!csugrad.cs.vt.edu!pmiller
- From: pmiller@csugrad.cs.vt.edu (Paul Miller)
- Subject: Standard Gadgets with GadTools question...
- Message-ID: <714009204.AA28064@csugrad.cs.vt.edu>
- Sender: daemon@cis.ohio-state.edu
- Organization: The Ohio State University Department of Computer and Information Science
- Date: Sun, 16 Aug 1992 23:53:21 GMT
- Lines: 35
-
- > Subject: gadtools.library
- > From: barry.fruitman@canrem.com (barry fruitman)
- > Date: 16 Aug 92 18:26:36 GMT
- > Organization: Canada Remote Systems
- >
- > This is a multi-faceted question to all you gadtools programmers.
- >
- > I'd like to create a window using both 3D-looking button gadgets and
- > non-3D buttons, but gadtools only seems able to create 3D buttons.
- > So my question is, is there a way to make 2D-looking buttons with
- > gadtools?
-
- Sure. Use normal CreateGadget() calls for your 3D buttons, and use
- the GENERIC_KIND gadget type to get a pointer to a standard Gadget
- structure which you can fill out yourself (note that some GadTools
- tags will work with these, where appropriate, such as GA_Disabled,
- and I believe the Gadget Text field will initialize the IntuiText
- GadgetText for you too).
-
- Your standard GT_GetIMsg() event loop will work for all, and the
- CreateGadget() call will do all the gadget linking for you.
-
- > Barry Fruitman
- > --
- > Canada Remote Systems - Toronto, Ontario/Detroit, MI
- > World's Largest PCBOARD System - 416-629-7000/629-7044
-
- --
- ****************************************************************************
- * Paul Miller |Nobody cares about my opinion anyway*
- * Certified Amiga Developer | *
- * INTERNET: pmiller@csugrad.cs.vt.edu | - Have a JOLT and a smile! - *
- * ------------------------------------------------------------------------ *
- * "What IS it, man?" "Happy Happy, Joy Joy" *
- ****************************************************************************
-