About the Test Files

CrossHairs

CrossHairs fakes a crosshairs cursor. Useful to line up text when comparing two documents, or to align objects on screen.

Left-clicking at some position, will leave a small window with the current x and y pixel positions displayed. Left-clicking again will turn it off, allowing you to position it elsewhere, for example. A right-click exits the program.

Requires the Qptr toolkit! or, suitably modified, any toolkit with keywords equivalent to SCR_XLIM, SCR_YLIM and RPTR. Also the TK2 keyword FOPEN is used, but may be modified to an OPEN construct.

This program must be compiled, or be run as an Sbasic job. Best used from a hotkey eg (alt+ctrl+x):

ERT HOT_RES1("«", "win1_util_scr_CrossHairs", "X")

MkConfig

If you want to add a single config level one configuration item in your compiled program, using this little number may be the way to do it.

Simply LRUN it and follow the prompts to create a file containing two lines to include in your S*basic program. When you compile your program these lines become the configuration block. Dead easy!

There are some constraints though. If you run up against them RTFB! In other words, further instructions are to be found in the code itself.

DeHex

Relevance: SBASIC/Qliberator

SBASIC users have the benefit of being able to enter literal integers as binary or hex numbers. It increases readability, and is sometimes simpler and more logical to use than decimal. What a shame then to have to remove it all again when you want to compile your program. Qliberator knows nothing of hex or bin literals!

Merge this program at the end of your code (the line numbers start at 32000) and type dehex. DLINE the routine away again, QSAVE your program and it should compile.

What does Teddy say?

QL Logo

Whew! Did you see that penguin chasing that flying window?!

When I realised the benefits of owning a QL it really blew my socks off!

My very own QL? Oh thank you grandad!

Ha ha! You call THAT a computer? You always WERE a funny old fart, grandad!

Ouch! So that's where I put the soldering iron!


Top of Page

Per, January 2015
mail me