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
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
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:
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
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
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
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
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:
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
-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
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
:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
] 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
: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
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 :
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
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
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
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-)#
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
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
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
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
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-)#
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
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
-
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
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-)#
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
42 matches
Mail list logo