Blitz (19/459)

From:David McMinn
Date:6 Jan 2000 at 13:35:25
Subject:Re: God damn F#@king Gad tools

Hi Matt

> 1. How do you make gadtools use display default screen font? i.e. that
> selected in the font prefs.

If you are opening on an already opened screen, i.e. Workbench, using
WBToScreen 0 or something, do this:

*scr.Screen = Peek.l(Addr Screen(0))
LoadFont 0,Peek$(*scr\Font\ta_Name),*scr\Font\ta_YSize
Use IntuiFont 0
; define gadtools gadgets here

If you want to know the screen default font for opening your own
screen, then you can either temporarily grab the WB screen to find
out or there is commands in one of the BSS libraries to do this.

> 2. I'm wanting to use a GTSlider. In the manual, it says something
> like "Similar to GTScroller, except two scroll arrows are attached to
> the right hand side". I don't see those arrows! How do I get them? Is
> there a tag or a flag to make them appear on the right hand side?

I think you need to do something like GTArrows x first, where x is
the size of the arrow gadgets.

> 3. How do you calculate the height of a window title bar?

WBToScreen 0
*scr.Screen = Peek.l(Addr Screen(0))
topbor.w = *scr\WBorTop + *scr\Font\ta_YSize + 1

> 4. How do you display the selected item in GTListViews? I.e. so that
> it remains selected.

Stick in a GTTags #GTLV_ShowSelected,0 before you define your
GTListView.

> I think that most of my problems are due to the fact that I don't
> know or
> fully understand the GTTag system. Is there any documentation on
> these
> GTTags/Flags etc.

The actual tags and flags are described in the Autodocs. Get the
developer CD.



|) /\ \/ ][ |) |\/| � |\/| ][ |\| |\| | dave@satanicdreams.com
http://members.xoom.com/David_McMinn | ICQ=16827694
Am I getting smart with you? How would you know?

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie