home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!vtserf!csugrad!jaker
- From: jaker@csugrad.cs.vt.edu (Jake Rose)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Help a 1.3 programmer get started on 2.0
- Message-ID: <BzBG56.9o8@csugrad.cs.vt.edu>
- Date: 15 Dec 92 19:43:54 GMT
- References: <BzB6Ds.K6n@usenet.ucs.indiana.edu>
- Organization: Virginia Tech Computer Science Dept, Blacksburg, VA
- Lines: 32
-
- shulick@navajo.ucs.indiana.edu (Sam Hulick) writes:
-
- >I'm still writing apps that work on OS 1.3. :) I don't know where to
- >start learning OS 2.0 specific code. For instance, how does one make
- >the gadgets w/ key shortcuts? I see them all the time.. i.e. a gadget
- >'Help' with the 'H' underlined. And how do you make cycling gadgets?
- >etc. etc. I need a book that explains what functions to use, how to do
- >it, etc. I have the 'Includes And Autodocs' with all the functions..
- >but I have no clue which functions to use to make these things. Any
- >help would be great.. thanks.
-
- These are built with GadTools. GadTools only displays the underscore on
- the gadget though - you must handle the VanillaKey event for the letters
- yourself. You can specify any character to be the underscore character
- using the GT_Underscore tag and the character you want to use to indicate
- that the next character in the gadget's string should be underscored:
-
- CreateGadgetA(..., GT_Underscore, '*', ..., TAG_DONE);
-
- With the ng_GadgetText field of the NewGadget structure set to
- "Wow, What a *Gadget!", would underline the character 'G' when displaying
- the GadgetText.
-
- > // Amiga 3000 ___ \ Sam Hulick: shulick@indiana.edu (NeXTmail OK!)
- > // 68030 25 MHz /__/\ \ My opinions wear combat boots. Or whatever.
- >\\// OS 2.04 \__\/ / "Walk! Not bloody likely. I am going in a
- > \/ / taxi." --George Bernard Shaw
- --
-
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- Jake Rose :: MS Windows: faster than a dead sea turtle crawling up
- jaker@csugrad.cs.vt.edu :: the beach with a boxcar on its back, but only just.
-