Blitz (592/640)

From:Neil Bullock
Date:26 Sep 99 at 12:56:22
Subject:Re: GTGadget problems (plus new problem)

> Yes, please post a small example - maybe someone can spot the problem.

Well, last night, I decided I would recode the offending program from scratch,
and the correct font was used, and the gadget displayed, and does so in all of
my programs now. I haven't a clue what was wrong, or why it suddenly started
working, but it did, and I'm not complaining :)

Anyway, since the original message was about problems making a GUI font
sensitive, I have another question. Does someone have a simple equation to
work out how high a window should be? At the moment, I have something like
this:

GadgetHeight = FontHeight + 4
position = 2
GTButton 0,1,2,position,230,GadgetHeight,"Text",0 : position + (GadgetHeight *
1.5)
GTButton 0,2,2,position,230,GadgetHeight,"Text2",0 : position + (GadgetHeight
* 1.5)

But I want to be able to work out how big the window should be (in terms of
height).
At the moment, I'm thinking something like 'WHeight = GadgetHeight *
NumberOfGadgets) plus a bit more should do it, but it doesn't. Any ideas?

Neil

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