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
[14 Aug 2006] InKeyStr
- airsoftsoftwair
- Posts: 5830
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
[15 Aug 2006] Re: InKeyStr
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 15 Aug 2006 01:18:44 +0200
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.
No.Hello,
I am fiddling around with InKeyStr.
Can the output generated by that function suppressed anyhow?
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.Here Locate() outside the visible area does not work.
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.
InKeyStr() calls Print() for printing the characters. Print() then uses the font installed using SetFont().How is the fontface used with InKeyStr controlled?
[15 Aug 2006] Re: InKeyStr
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...InKeyStr() calls Print() for printing the characters. Print() then uses the font installed using SetFont().