VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 1[2]345678910 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 06:43:11 11/19/03 Wed
Author: Michel
Subject: Re: Thumbnail captions
In reply to: Monte Etherton 's message, "Thumbnail captions" on 09:43:45 11/17/03 Mon


Hi Monte,

You will need to write directly on the image. Here is an example of writing text over an image. This is what the evaluation version of Envision does in TDibGraphic.Draw.

ACanvas.Font.Size := 10;
ACanvas.Font.Name := 'Arial';
ACanvas.Font.Style := [fsBold];
ACanvas.Font.Color := clLime;
SetBkMode(ACanvas.Handle, Windows.TRANSPARENT);

ACanvas.TextOut(4, 2, 'Envision Image Library Demo');

ACanvas.Font.Color := clGray;
ACanvas.Font.Size := 9;
ACanvas.TextOut(4, 20, 'www.intervalsoftware.com');

SetBkMode(ACanvas.Handle, Windows.OPAQUE);

ACanvas is the Canvas property of a TDibGraphic.

Best regards,

Michel

>Using the TThumbNailForm code as a template I am
>building a TDrawgrid into an app for viewing
>thumbnails.
>
>Instead of having a FileListBox, I want the thumbnails
>to have text captions.
>
>Can anyone advise me on how this is accomplished?
>
>Thank you in advance,
>
>Monte Etherton

[ Next Thread | Previous Thread | Next Message | Previous Message ]

[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.