Re: trouble with txt.h
- From: druck <news@xxxxxxxxxxxxxxxx>
- Date: Fri, 08 Sep 2006 23:03:22 +0100
On 8 Sep 2006 Mr John FO Evans <mijas@xxxxxxxxxxxxxxxxx> wrote:
I am having no luck with txt.h from RISC_OSLIB and stubsg
The code is virtually identical to that used in another program
Does it work with either the 26bit or 32bit stubs? The StubsG library is
differnt again.
[Snip code]
This code fails to display anything when run through under Acorn/Castle
Debug. No txt window appears and the program hangs with "Input Focus Not
Found" at the first instance of the line
"txt_insertstring(...............)"
Are you saying it does run when not under DDT?
Query 1) Is the code valid?
Well looking at my !ComndCtrl app (from 1990) which uses the txt windows,
I've got all the same calls in roughly the same order.
Do I need the event handler?
To handle inoput, scrolling, mouse clicks and closing the window.
2) Would I need to exit from Acorn debug before a txt window is seen?
Its possible, DDT has a lot of problems, I've only every rarely used it
sucessfully. There is now an alternative multi-tasking desktop debugger
http://buyit.spellings.net/products.php?cat=4 which may work better.
3) Can I read from stdin in this way?
Definately not, thats for command line programs. Input from characters typed
in the txt window is delivered to you via the handler.
---druck
--
The ARM Club Free Software - http://www.armclub.org.uk/free/
The 32bit Conversions Page - http://www.quantumsoft.co.uk/druck/
.
- References:
- trouble with txt.h
- From: Mr John FO Evans
- trouble with txt.h
- Prev by Date: Re: Fonts with small caps in place of lower case
- Next by Date: Re: Rotating bits left in BASIC
- Previous by thread: trouble with txt.h
- Next by thread: Re: trouble with txt.h
- Index(es):
Relevant Pages
|