Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get a 'picture' of my form
Message
 
To
06/06/2001 17:18:39
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00515485
Message ID:
00516252
Views:
11
>>>I'm writing a user's guide for a form I've created and I'd like to use the graphical representation of the form in the Word document I'm creating.
>>>
>>>How?
>>
>>Try my Obj2Bmp program from the downloads section. Not only will it allow you to get the form, but any object on it.
>
>Thanks. I tried it, but the bmp image of my form is all black (and also does not have the same height to width ratio as the form). Just at the right edge of the black bmp image (using PAINT) I see a sliver of the form (maybe 2-4 pixels in width).
>
>Only other clue I have is that my main form fires up another form using createobject in its INIT.
>
>(One thing I have already tried is insuring that there is no myform.bmp form already residing in the folder where your app wants to create it.)
>
>....This response is mainly provided FYI, just in case you are interested in pursuing this privately to help you diagnose a possible problem with your app (not pointing any fingers....could easily be my screwup).
>
>I just have one figure to do, and the Print Screen solution has met my requirements. If I were doing a manual, I might want to figure out what's going wrong here, but for the time being, the quick'n dirty is gonna do it for me.
>
David,

I've never had a report of anything similar to this. I can tell what I recall that the known issues are, but, frankly, neither seems to apply.

Issue 1 is the colors for 16 and 256 colors. Unfortunately, I was never able to successfully retrieve the current default color palette. I was, therefore, forced into using the default palettes. If the system is using 256 colors and they are not the default, some differences between what's displayed and what the application produces will result. The result, however, should not be all black.

24 bit color is a different issue. This should be all black only if the form being captured is beyond the co-ordinates of the screen (ie: at position -1000, -1000). The same applies to 16 and 256 colors, BTW. With 24 bit color there is no palette involved.

Issue 2 is with maximized windows. Unfortunately, again, I was never able to correctly identify the exact co-ordinates needed to properly produce a maximzied window. The results, however, are always pretty close. There tends to be a black stripe one or two pixels wide running down the right side of the bitmap.

I will, however, take a SWAG at this. Do the two forms have the same caption? If so, this could lead the system to retrieve the wrong window handle. This would account for the mis-positioning. While the system has the capacity to change the caption of forms with duplicate captions, I don't believe I tested it under these conditions, so this is something I'll do when I update the application to deal with VFP 7.0. However, if you click the Refresh button after launching the form, the system will re-caption the second instance of a form and above.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform