- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's slick. I've tried out the Dialog Test example and I like it. That's half of my problem - I'm also trying to create the bit map in memory and then display it. I'm new to this, I'm mostly a scientific programmer. Do you have any examples of programs that do what I'm trying to do?
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, DialogTest sample does that as well, using DLG_DRAWITEM callback, so you can draw on the static control's surface in run-time (the image in the sample is very simple, I admit).
On the XFT page of my home page you can find XFTGDI module and XDblBuffer sample. They demonstrate how to create an off-screen image and "copy it" onto the window DC. XDblBuffer does that for the main window, but you can combine the technique with DLG_DRAWITEM callback (DLG_DRAWITEM is actually sent when an owner-drawn control receives a WM_PAINT, so the principle is the same). XFTLite sample application also shows how you can render the image on the printer or save it into a .bmp or .wmf file.
(P.S. I forgot to mention on the page that you have to make sure that
!DEC$DEFINE XLITE is the first line in XFTGDI.f90 if you want to use it in your projects)
Jugoslav

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page