Page 1 of 1
[14 Aug 2006] InKeyStr
Posted: Sat Jun 13, 2020 5:31 pm
by GMKai
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 14 Aug 2006 16:23:21 +0200
Hello,
I am fiddling around with InKeyStr.
Can the output generated by that function suppressed anyhow?
Here
Locate() outside the visible area does not work.
How is the fontface used with InKeyStr controlled?
Greetings GMKai
[15 Aug 2006] Re: InKeyStr
Posted: Sat Jun 13, 2020 5:31 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 15 Aug 2006 01:18:44 +0200
Hello,
I am fiddling around with InKeyStr.
Can the output generated by that function suppressed anyhow?
No.
Here
Locate() outside the visible area does not work.
The x coordinate passed to
Locate() is checked against the left/right margin boundaries. The y coordinate is not checked. You could pass a negative value here to suppress output, e.g.
Locate(0, -150)
This, however, is a hack and there's no guarantee that it'll still work with the next version. I do not even know if it works with 2.0 but from what I see in the sources, it should be possible to use a negative y so that the
Print() commands that are invoked by
InKeyStr() are invisible.
How is the fontface used with InKeyStr controlled?
InKeyStr() calls
Print() for printing the characters.
Print() then uses the font installed using
SetFont().
[15 Aug 2006] Re: InKeyStr
Posted: Sat Jun 13, 2020 5:31 pm
by GMKai
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 15 Aug 2006 08:15:40 +0200
so white font on white backdrop should do the trick...