RE: GDI signature

2009-09-13 Thread Graham Brown
September 2009 22:45 To: GrahamB Subject: RE: GDI signature Hi Graham, I've not come across Activex controls for doing this so yes please. OK, here it is. The code runs on a normal PC (Windows XP/Vista/7), but you won't be able to draw with your mouse. There is also no error checking. For instance

RE: GDI signature

2009-09-08 Thread Christof Wollenhaupt
I have one of my famous dim distant recollections seeing some vfp8 code using GDI to do this. Is there any particular reason not to use the Tablet PC ActiveX controls for this? Somewhere I've a sample for using this control which I could send later today. -- Christof

RE: GDI signature

2009-09-08 Thread Christof Wollenhaupt
To answer the original question... (sorry for omitting that in my first reply). I think you are referring to VFP Paint from César Chalom (http://weblogs.foxite.com/vfpimaging/archive/2007/10/17/5120.aspx). -- Christof ___ Post Messages to:

RE: GDI signature

2009-09-08 Thread Graham Brown
September 2009 11:01 To: GrahamB Subject: RE: GDI signature I have one of my famous dim distant recollections seeing some vfp8 code using GDI to do this. Is there any particular reason not to use the Tablet PC ActiveX controls for this? Somewhere I've a sample for using this control which I

RE: GDI signature

2009-09-08 Thread Christof Wollenhaupt
Hi Graham, I've not come across Activex controls for doing this so yes please. OK, here it is. The code runs on a normal PC (Windows XP/Vista/7), but you won't be able to draw with your mouse. There is also no error checking. For instance, if you try to save the image before anything is drawn

Re: GDI

2009-04-23 Thread Cesar
Gdi+ and gdiPlus are the same thing. In fact, they refer to the file gdiplus.dll MS has created lots of versions for this file, and the most recent ones bring new functions. But this sometimes may bring some problems, because some programs may find and use an incorrect version of gdiplus.dll

RE: GDI+

2007-11-27 Thread Cesar
original --- De: [EMAIL PROTECTED] Para: [EMAIL PROTECTED] Cc: Data: Mon, 26 Nov 2007 19:25:35 +0100 Assunto: RE: GDI+ Hi Cesar, In my tests, using CEILING() the problem was fixed. What do you think Christof ??? Yes, for dimensions CEILING() seems to be a good choice

RE: GDI+

2007-11-27 Thread Christof Wollenhaupt
Hi Cesar, I've just noticed that we have the xfcSize.Ceiling method. So that's another 0.06% of GDIplusX that I now learned about. Only 1,500 methods to go. g -- Christof ___ Post Messages to: ProFox@leafe.com Subscription Maintenance:

RE: GDI+

2007-11-27 Thread Cesar
the System.Drawing, I always learn new ways to do things. -- Início da mensagem original --- De: [EMAIL PROTECTED] Para: [EMAIL PROTECTED] Cc: Data: Tue, 27 Nov 2007 15:03:09 +0100 Assunto: RE: GDI+ Hi Cesar, I've just noticed that we have the xfcSize.Ceiling method. So that's

re: GDI+

2007-11-27 Thread Joe Yoder
-0200 From: Cesar To: [EMAIL PROTECTED] cc: Subject: RE: GDI+ Hi Chris, Please run the sample below, and tell me how it goes. It runs without the GenericTypographic StringFormat. Instead of that I used CEILING() to round the measures obtained by Measure String. In the original case, when

re: GDI+

2007-11-27 Thread Cesar
you'll find some great things there. HTH Cesar -- Início da mensagem original --- De: [EMAIL PROTECTED] Para: [EMAIL PROTECTED] Cc: Data: Tue, 27 Nov 2007 12:07:29 -0500 Assunto: re: GDI+ I am new to GDI and thought I'd try the code. It dies on the first line

re: GDI+

2007-11-27 Thread Joe Yoder
: Subject: re: GDI+ Joe, In this discussion we're referring to the sample posted here: http://weblogs.foxite.com/cesarchalom/archive/2007/11/24/5428.aspx There's a remark on that article that says: Requires VFP9 and GdiPlusX to run. Please make sure that you have the latest version, because

RE: GDI+

2007-11-26 Thread Chris Davis
To: profox@leafe.com Subject: Re: GDI+ I`ve put a sample for you here: How to create text as image file with GdiPlusX http://weblogs.foxite.com/cesarchalom/archive/2007/11/24/5428.aspx Hope this helps Cesar - Original Message - From: Chris Davis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent

RE: GDI+

2007-11-26 Thread Cesar
to: AAA AAA AAA + CHR(0) Hope this helps Cesar -- Início da mensagem original --- De: [EMAIL PROTECTED] Para: [EMAIL PROTECTED] Cc: Data: Mon, 26 Nov 2007 13:43:13 - Assunto: RE: GDI+ Cesar, Thank you so much for this example, it's really great when someone does

RE: GDI+

2007-11-26 Thread Chris Davis
of the font on a textbox based on its contents. Cheers Chris. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cesar Sent: 26 November 2007 14:34 To: profox Subject: RE: GDI+ Hi Chris, Thnaks for the kind words. I'm aware of that. Unfortunately

RE: GDI+

2007-11-26 Thread Christof Wollenhaupt
Hi Chris, In your example if you changed the string to AAA AAA AAA the last A gets truncated in the image. You need to pass a GenericTypographic object. Change loStringFmt = .StringFormat.New() to loStringFmt = .StringFormat.GenericTypographic.Clone() -- Christof

RE: GDI+

2007-11-26 Thread Chris Davis
Cheers Christof This seems to do the trick! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christof Wollenhaupt Sent: 26 November 2007 15:05 To: profox@leafe.com Subject: RE: GDI+ Hi Chris, In your example if you changed the string to AAA AAA AAA

RE: GDI+

2007-11-26 Thread Cesar
have an idea of what is missing there ? -- Início da mensagem original --- De: [EMAIL PROTECTED] Para: [EMAIL PROTECTED] Cc: Data: Mon, 26 Nov 2007 16:04:34 +0100 Assunto: RE: GDI+ Hi Chris, In your example if you changed the string to AAA AAA AAA the last A gets

RE: GDI+

2007-11-26 Thread Christof Wollenhaupt
Hi Cesar, Even using the cloned Generic Typographic, together with Measure trailing spaces etc, I still get the missing pixel. One pixel sounds like PixelOffsetMode is kicking in. Try setting Graphics.PixelOffsetMode to 4. Also, as GDI+ allows floating point values instead of integers for

RE: GDI+

2007-11-26 Thread Cesar
Hey Christof ! ROUND() did the magic. Thanks a lot ! -- Início da mensagem original --- De: [EMAIL PROTECTED] Para: [EMAIL PROTECTED] Cc: Data: Mon, 26 Nov 2007 17:37:07 +0100 Assunto: RE: GDI+ Hi Cesar, Even using the cloned Generic Typographic, together

RE: GDI+

2007-11-26 Thread Chris Davis
To: profox Subject: RE: GDI+ Hey Christof ! ROUND() did the magic. Thanks a lot ! -- Início da mensagem original --- De: [EMAIL PROTECTED] Para: [EMAIL PROTECTED] Cc: Data: Mon, 26 Nov 2007 17:37:07 +0100 Assunto: RE: GDI+ Hi Cesar, Even using the cloned Generic

RE: GDI+

2007-11-26 Thread Cesar
Explorer.exe c:\Mytext.Png ENDWITH -- Início da mensagem original --- De: [EMAIL PROTECTED] Para: [EMAIL PROTECTED] Cc: Data: Mon, 26 Nov 2007 17:30:02 - Assunto: RE: GDI+ Cesar, Is this something I can fix my end, or should I be waiting for an update to the GdiPlusX

RE: GDI+

2007-11-26 Thread Christof Wollenhaupt
Hi Cesar, In my tests, using CEILING() the problem was fixed. What do you think Christof ??? Yes, for dimensions CEILING() seems to be a good choice. For positions I'd probably use ROUND(). Same when I need to position something inside a fixed boundary. -- Christof

RE: GDI+

2007-11-26 Thread Cesar
Thanks very much for the confirmations. One single pixel can make such a big difference sometimes ! -- Início da mensagem original --- De: [EMAIL PROTECTED] Para: [EMAIL PROTECTED] Cc: Data: Mon, 26 Nov 2007 19:25:35 +0100 Assunto: RE: GDI+ Hi Cesar, In my tests

Re: GDI+

2007-11-26 Thread 3932632104
Hello to everyone, I'm have experience in Windows programming, i usually use Visual Basic. I'm beginning to program in Visual FoxPro (9.0). As i'm not yet able to create (and then to use ) a graphical status bar in a top-level window, i ask if you could give me some ideas. Thank you Paolo

RE: GDI+

2007-11-26 Thread Rick Schummer
] On Behalf Of 3932632104 Sent: Monday, November 26, 2007 05:27 PM To: [EMAIL PROTECTED] Subject: Re: GDI+ Hello to everyone, I'm have experience in Windows programming, i usually use Visual Basic. I'm beginning to program in Visual FoxPro (9.0). As i'm not yet able to create (and then to use

Re: GDI+

2007-11-24 Thread Cesar
:59 AM Subject: Re: GDI+ Thanks Frederic, I am going to follow that article through later today. On 20/11/2007, Frédéric Steczycki [EMAIL PROTECTED] wrote: Okokok There's an article from foxtalk here as for a start: http://msdn2.microsoft.com/en-us/library/ms947605.aspx and a classes here

Re: GDI+

2007-11-21 Thread Chris Davis
Thanks Frederic, I am going to follow that article through later today. On 20/11/2007, Frédéric Steczycki [EMAIL PROTECTED] wrote: Okokok There's an article from foxtalk here as for a start: http://msdn2.microsoft.com/en-us/library/ms947605.aspx and a classes here :

RE: GDI+

2007-11-20 Thread Frédéric Steczycki
I think that the correct answer to this question is yes, it's possible. :o) Frédéric Steczycki -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Chris Davis Envoyé : 20 novembre 2007 15:22 À : [EMAIL PROTECTED] Objet : GDI+ Is it possible to

RE: GDI+

2007-11-20 Thread Chris Davis
stretch idea. Any input would be appreciated. Cheers Chris. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frédéric Steczycki Sent: 20 November 2007 15:07 To: profox@leafe.com Subject: RE: GDI+ I think that the correct answer to this question is yes, it's

RE: GDI+

2007-11-20 Thread Frédéric Steczycki
Okokok There's an article from foxtalk here as for a start: http://msdn2.microsoft.com/en-us/library/ms947605.aspx and a classes here : http://weblogs.foxite.com/cesarchalom/archive/2006/08/10/2194.aspx Frédéric Steczycki -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL

Re: gdi+

2006-08-18 Thread Andy Davies
oForm.saveasclass(YourImgFormClass,YourImgForm) If you know a better way of subclassing .scx's please share it. You mean besides CREATE CLASS myform as form OF form1.scx but doesn't that create a .prg? Andrew Davies  MBCS CITP   - AndyD    8-)#

Re: gdi+

2006-08-15 Thread Michael Hawksworth
I copied this off the page ::mutter:: It is a blog entry of Craig Boyd's at SPS. I suggest going to www.sweetpotatosoftware.com and searching his blog for 'skin'. He supplies some routines and examples of how to do implement a vfp skin. Good hunting. -- Michael Hawksworth Visual Fox

Re: gdi+

2006-08-15 Thread Andy Davies
I copied this off the page ::mutter:: site's back up now. Andrew Davies  MBCS CITP   - AndyD    8-)# ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or

RE: gdi+

2006-08-15 Thread Andy Davies
OK I got a 'proof of concept' form working without gdi+ - I used a bit of sleight of hand shown below: (apologies to those for whom it's old hat) * substitute your names for vars * Type the following three lines in command window with Ctl+Enter at end of each line PUBLIC oForm as form CREATE FORM

Re: gdi+

2006-08-14 Thread Michael Hawksworth
This may give you an idea... http://www.sweetpotatosoftware.com/SPSBlog/PermaLink,guid,9a91dea3-6413-42e9-aeff-f0097937474d.aspx -- Michael Hawksworth Visual Fox Solutions [EMAIL PROTECTED] www.foxpro.co.uk ___ Post Messages to: ProFox@leafe.com

Re: gdi+

2006-08-14 Thread Andy Davies
This may give you an idea... http://www.sweetpotatosoftware.com/SPSBlog/PermaLink,guid,9a91dea3-6413-42e9-aeff-f0097937474d.aspx Michael Hawksworth thanks for the link - but it's h1 Service Unavailable/h1 Andrew Davies  MBCS CITP   - AndyD    8-)#

RE: gdi+

2006-08-14 Thread Dave Crozier
Andy, Any reason you want to use GDI? I use TIFF or PNG images which are small and well defained in a picturebox held within a container and it works quite well. Either that or make the picture property of a form point to the image. But you can't resize the image in this case hence the

RE: gdi+

2006-08-14 Thread Andy Davies
Or am I missing something from your request here? Dave Crozier No, I had tried form.picture which was when I found out I couldn't re-size it. By 'picturebox' do you mean an image control? - I thought I'd tried that as well but I'll have another go. I was only trying gdi+ in desperation - it

RE: gdi+

2006-08-14 Thread Allen
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Davies Sent: 14 August 2006 14:38 To: [EMAIL PROTECTED] Subject: RE: gdi+ Or am I missing something from your request here? Dave Crozier No, I had tried form.picture which was when I found out I couldn't re-size

RE: gdi+

2006-08-14 Thread Andy Davies
Allen, Dave - thanks for the help lighbulb Help! - there's always a Gotcha! :- You must set the object's Picture property before setting Stretch; otherwise, the Stretch setting is disregarded. I think that might be it! Andrew Davies  MBCS CITP   - AndyD    8-)#

RE: gdi+

2006-08-14 Thread Dave Crozier
To: profox@leafe.com Subject: RE: gdi+ Allen, Dave - thanks for the help lighbulb Help! - there's always a Gotcha! :- You must set the object's Picture property before setting Stretch; otherwise, the Stretch setting is disregarded. I think that might be it! Andrew Davies  MBCS CITP   - AndyD