conan@ccwf.cc.utexas.edu (Robert Faulkner) (05/29/91)
Help, I am currently using Gadtools and BOOPSI to get a string
object placed on a window on the workbench screen. I have no
problems getting the gadget to open up under BOOPSI or Gadtools.
However, when using GadTools is there a way to open a STRING_KIND
Gadget with a GA_RelWidth setting. This way the Width of the
Gadget could remain relative to the width of the Window. So far,
I have been unsucessful.
ex.
gad = CreateGadget(STRING_KIND,gad,&ng,
GA_RelWidth, -20,
TAG_DONE);
or something to this effect, that would allow the gadget to set
up its flags and width field. Should I just use the pointer to the
gadget and modify the fields myself?
I tried using BOOPSI to get the "strgclass" object set,
so that I could use this as a string gadget in place of the GadTools
gadget ( I really need RELWIDTH). I was able to open the NewObject
fine but when I tried to create an Image Structure for the Gadget
(i.e. Border such as supported by the GadTools STRING_KIND gadget)
I got a wierd looking box that in no way was the size of my gadget.
What I would like is examples of STRING_KIND and "strgclass" Gadtools
and BOOPSI gadgets, so that I may figure out what I am doing wrong.
Thanks,
--
Robert Faulkner conan@ccwf.cc.utexas.edu
/// Recursion: Thinking
\\\/// University of Texas about
\\// Amiga Computers Thinking