Article View: borland.public.cppbuilder.nativeapi
Article #5699Draw WinControls on form
From: Thorsten Kettner
Date: Mon, 18 Jul 2005 16:27
Date: Mon, 18 Jul 2005 16:27
18 lines
1716 bytes
1716 bytes
Hi all, I want to write a small IDE, just like Delphi or BCB,
place components on a form and so on, you know. The problem is:
I don't want real components on my form with their OnClick,
OnChange and whatever events. I just want to draw them on the form's Canvas. First I tried to create them with new and BitBlt
them to my form, but it showed they need a Canvas. So I used a
second hidden form to hold them, but it showed: As form 2 is
hidden, the controls are hidden too and are not drawn at all.
If I open the second form, it works, but of course I don't want
to show it.
So: Is there an API function to draw a component, like
DrawControl("button", 10,10,100,20, "press here"); ?
Or must I create some special canvas resp. dc to do the trick?
What do you suggest?
Technical Details
Message-ID:
<42dbd87f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c52395efb5c800b0,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de> Sender: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de> Reply-To: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de> Subject: Draw WinControls on form Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 80.85.196.92 NNTP-Posting-Host: 207.105.83.66 Message-ID: <42dbd87f$1@newsgroups.borland.com> Date: 18 Jul 2005 09:27:43 -0700 X-Trace: newsgroups.borland.com 1121704063 207.105.83.66 (18 Jul 2005 09:27:43 -0700) Lines: 18 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail