Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #229 > unrolled thread

Re: How to put a caret in a window

Started byChris Johnson <chrisjohnson+news@spamcop.net>
First post2011-04-30 13:52 +0100
Last post2011-05-02 08:49 +0200
Articles 2 — 2 participants

Back to article view | Back to comp.sys.acorn.programmer

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to put a caret in a window Chris Johnson <chrisjohnson+news@spamcop.net> - 2011-04-30 13:52 +0100
    Re: How to put a caret in a window Paul Sprangers <Paul@sprie.nl> - 2011-05-02 08:49 +0200

#229 — Re: How to put a caret in a window

FromChris Johnson <chrisjohnson+news@spamcop.net>
Date2011-04-30 13:52 +0100
SubjectRe: How to put a caret in a window
Message-ID<51cc0bd171chrisjohnson+news@spamcop.net>
Paul

Have you seen my !Text>Draw application? It places the caret into
strings of chars, the position being determined either by mouse click
or keypresses (arrow keys included). There is code for moving the
caret etc (the wimp EORs the caret on to the screen, so it has to be
unplotted before plotting in its new position). Font_ScanString is
used a number of times in the source.

  http://www.chrisjohnson.plus.com/software/index.html#td

You are welcome to see the source code for this - confirm a valid
email (privately to my spamcop posting address, which is valid) and I
will send you it.

The main downside is that, although having started out as Basic, it
is now in C, using oslib and the toolbox, and being my first
excursion into C, is certainly not the best example of programming
style.

Chris...

-- 
Chris Johnson

[toc] | [next] | [standalone]


#267

FromPaul Sprangers <Paul@sprie.nl>
Date2011-05-02 08:49 +0200
Message-ID<51ccf2415bPaul@sprie.nl>
In reply to#229
Dear Chris,

> Have you seen my !Text>Draw application?

I've downloaded it, and yes indeed, its source code would be really helpful
to me, if only I could read C. However, Martin Wuerthner has provided a
comprehensive tutorial for my limited use of Font_ScanString, as I just
discovered (see one of the next mails). I suspect that will be adequate.

Kind regards,
Paul Sprangers

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.acorn.programmer


csiph-web