🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #11

Re: InputBox causes EInvalidOperation ('Canvas does not allow drawing')

#11
From: Peter Below (TeamB)
Date: Fri, 22 Aug 2003 07:48
18 lines
2075 bytes
In article <3f453d13@newsgroups.borland.com>, Valentin Tihomirov wrote:
> Surprise. I'm using Dialogs.InputBox not from MainVCLThread + Delphi 5. How
> do my thread gets string input from user?

It is rather unusual to interact with the user from a secondary thread. If you real 
need that you have to create an input dialog using the Windows API only. This would 
either use a predefined dialog box template (a DIALOG resource) and the DialogBoxParam 
API function or build a dialog template in memory and use DialogBoxIndirectParam.
For both you need a dialog function, of course.


--
Peter Below (TeamB)  
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
Technical Details
Message-ID: <VA.0000a2e0.00723654@nomail.please>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f453d13@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,e746b51071bcf74e
X-Google-Attributes: gidf94dd,public
X-Google-Thread: 109d30,e746b51071bcf74e
X-Google-Attributes: gid109d30,public
X-Google-ArrivalTime: 2003-08-22 01:08:02 PST
Date: Fri, 22 Aug 2003 09:48:20 +0200
Newsgroups: borland.public.delphi.nativeapi,borland.public.delphi.language.objectpascal
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va
Organization: TeamB
Message-ID: <VA.0000a2e0.00723654@nomail.please>
Subject: Re: InputBox causes EInvalidOperation ('Canvas does not allow drawing')
From: "Peter Below (TeamB)" <100113.1101@compuXXserve.com>
Reply-To: 100113.1101@compuXXserve.com
References: <3f453d13@newsgroups.borland.com>
NNTP-Posting-Host: 62.226.187.157
X-Trace: newsgroups.borland.com 1061538180 62.226.187.157 (22 Aug 2003 00:43:00 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail