[14 Aug 2006] InKeyStr

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
GMKai
Posts: 158
Joined: Mon Feb 15, 2010 10:58 am

[14 Aug 2006] InKeyStr

Post 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
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[15 Aug 2006] Re: InKeyStr

Post 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().
GMKai
Posts: 158
Joined: Mon Feb 15, 2010 10:58 am

[15 Aug 2006] Re: InKeyStr

Post 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
InKeyStr() calls Print() for printing the characters. Print() then uses the font installed using SetFont().
so white font on white backdrop should do the trick...
Locked