[DUG] Test (nt)

2011-08-23 Thread Conor Boyd

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] ChCh Update

2011-03-06 Thread Conor Boyd
I have. ;-)


Thanks Malcolm, appreciate your thinking of me.

 

We’re in Huntsbury (or Muntsbury as it’s now called), and while we’re maybe not 
as bad as Mt Pleasant and further round, we’re on the rock too and much worse 
hit this time than last time.  Roger Sutton of Orion lives nearby and somebody 
yesterday told me most of his area (Glenelg Spur, Rapaki) is a total write-off.

 

I’ve moved the family out to Castle Hill, kids going from a badly damaged 
school in St. Martins of 470 to the local school in Springfield a 1/10th the 
size of that one, so that’ll be an experience for them.  We only got power on 
mid-last week, and water yesterday, our house has moved 20mm on it’s 
foundations/piles, the chimney has fallen into the dining room, and the kitchen 
ceiling is collapsing.  But still, as Peter’s email said, there are a lot of 
people a lot worse off than most of us.

 

Thoughts with them, especially with these last 2 colder nights.

 

Only back to work today, and have had no TV and precious little interweb access 
for the last 2 weeks, so I have a bit of catching up to do.


Take care, all.

 

Cheers,

 

Conor

 

From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On 
Behalf Of Malcolm Groves
Sent: Tuesday, 1 March 2011 10:59 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] ChCh Update

 

Thanks Gary,

 

Has anyone heard from Conor Boyd?

Cheers

Malcolm

 


On 01/03/2011, at 8:28 AM, Gary T. Benner g...@benner.co.nz wrote:

HI all, 

Just a quick note to pass on a message from Peter Hyde - somehow his 
email to the List got clobbered ...


CONFIDENTIALITY NOTICE: This email message is for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. Any 
unauthorized review, use, disclosure or distribution is prohibited. If you are 
not the intended recipient, please contact the sender by reply email and 
destroy all copies of the original message.   ­­  

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Delphi Starter Edition

2011-01-31 Thread Conor Boyd
Follow the link through to the online shop, and you'll see it's US$199
for a new user or US$149 for an upgrade from previous versions of
Delphi.

http://store.embarcadero.com/DRHM/store?Action=DisplayCategoryProductLis
tPageSiteID=borlandLocale=en_NZEnv=BASEcategoryID=628800

Cheers,

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Leigh Wanstead
Sent: Tuesday, 1 February 2011 9:17 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Delphi Starter Edition

Hi Malcolm,

May I ask how much it cost? I cannot find the price.

Regards
Leigh

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Malcolm Groves
Sent: Monday, 31 January 2011 9:07 p.m.
To: ADUG List; NZ Borland Developers Group - Delphi List
Subject: [DUG] Delphi Starter Edition

http://www.embarcadero.com/products/delphi/starter

Cheers
Malcolm

Malcolm Groves
Senior Director, Asia Pacific and Japan
Embarcadero Technologies
http://www.embarcadero.com

Phone: +61 416 264 204
Skype: malcolmgroves


CONFIDENTIALITY NOTICE: This email message is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the
sender by reply email and destroy all copies of the original message.

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Variabels stored

2011-01-19 Thread Conor Boyd
Probably as a field on the form class that you're dealing with.
 
e.g.
 
type
TWallaceForm = class(TForm)
  btnOK: TButton;
...
  txtWallacesHiddenTextBox: TEdit;
...
private
  FWallacesPrivateVar: string; // use this instead of your
hidden text box.
// Can create as
many variables (or fields as they're known in Delphi parlance, hence
the F prefix)
// of as many
different types as you like.
...
end;
 
Hope I've understood what you're asking for correctly.
 
HTH,
 
Conor



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Marshland Engineering
Sent: Thursday, 20 January 2011 3:45 p.m.
To: delphi@delphi.org.nz
Subject: [DUG] Variabels stored


Is there a way to store variables so I can use them from one procedure
to another?  
 
I have been currently storing them in hidden edit.text boxes on the form
but there must be a better way. 
 
Cheers Wallace
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Automatic build process

2010-11-30 Thread Conor Boyd
I use CruiseControl.NET (http://ccnet.thoughtworks.com/) which executes
fairly extensive NAnt (http://nant.sourceforge.net/) scripts which deal
with the invocation of the Delphi command line compiler.

My scripts also go further and automate the use of Installshield etc to
build installers, etc.

I'm not quite sure why you might have errors that you can't fix.  Can
you give some more detail?

Happy to answer more questions on our setup if it's helpful.

Cheers,

Conor

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Ayers, Stephen

What do people use to automate their build processes.  I have multiple
delphi group projects that I build but the issue is that on some of the
projects there are known errors that stop the build.  Are there any
tools that I can work around these errors with.  The idea will be to
enable nightly builds.

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Duplicate post

2010-11-09 Thread Conor Boyd
Yup, Gmail (on my own domains) rocks, especially the way it interacts
seamlessly with the little smartphone running Android I picked up from
Two Degrees last week.  Reasonable price on the phone, wifi, no
contract, great fun.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Kyley Harris
Sent: Wednesday, 10 November 2010 9:59 a.m.
To: n...@salehoo.com; NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Duplicate post

Whats even crazier with your example is that xtra supports mapping the
domain to the xtra email anyway.. so they never have to do that..
a domain email is always the best.. you never have to change it..

We have been using Gmail business email for 4+ years with our domain..
never been happier.

On Wed, Nov 10, 2010 at 9:29 AM, Nick Fauchelle n...@salehoo.com
wrote:
 I agree, shell out a few $$ and get your own domain. Don't have to use

 gmail but can at least stop using the isp's email...

 Reminds me of biz cards where you see

 Bits and Bobs Ltd
 web: http://www.bits-bobs.co.nz
 email: f...@xtra.co.nz


 On Tue, 2010-11-09 at 17:43 +1300, Conor Boyd wrote:
 Gmail, John, it's the way of the future. ;-)

 Well actually, Google Apps for Your Domain with your own domain name 
 is the way to go, then you've got currently great email tools etc, 
 and you're not beholden to any ISP anywhere.

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Duplicate post

2010-11-08 Thread Conor Boyd
Gmail, John, it's the way of the future. ;-)
 
Well actually, Google Apps for Your Domain with your own domain name is
the way to go, then you've got currently great email tools etc, and
you're not beholden to any ISP anywhere.
 


From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird
Sent: Tuesday, 9 November 2010 5:35 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Duplicate post


Forgive the duplicate post.   This time not my fault - someone at
Telstra is no doubt sweating and swearing and cursing trying to get
their email systems going again including Paradise, so looks like they
are sending some messages twice.
 
John
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Christchurch DUG

2010-10-25 Thread Conor Boyd
Worth asking the question I think, but personally, no I wouldn't be that
interested in a physical DUG.

Cheers,

Conor

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of lbisman

Is anyone interested in resurrecting the ChCh DUG ? - after the recent
launch it didn't seem like there were many interested parties.

We used to host it at the college I work at and could do so again if
there's enought interest.

Laurie Bisman

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Delphi XE (2011)

2010-08-18 Thread Conor Boyd
Yes, that thought occurred to me as well when Jeremy suggested an option
being not to buy it.

I'm also in the underwhelmed camp. 

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Cameron Hart

I think it is fair to say that the people who have already bought it
(subscription) can be disappointed.  The others have the choice not to
buy it.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]

If it doesn't offer value, don't buy it. That is the best message you
could send to them (Embarcadero).

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Fax issue

2010-08-09 Thread Conor Boyd
What about including the international part, e.g. +64 3 353 9901?
 
Never used AsyncPro, so can't make any suggestions on that side, sorry.
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
 
Hi all.
Dont get me started on why we have to use faxes but we have to.

Heres the issue. we are using the AsyncPro fax controls (in Delphi 2010)
to send faxes. It all works well, EXCEPT, if we add an area code on to
the recipients phone number, say 033539901 (with 1, for the dialing
prefix) the fax machine rings, it answers, but refuses to accept the
fax.
if I strip out the 03 (still using the 1, for the dialing prefix) it
works fine 
Now if its local numbers we were using then no prob, but we are going to
have to send to another town.

Has anyone see this before or have any suggestions?

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] formatting a string for HTML

2010-07-27 Thread Conor Boyd
I use the StrHtmlEncode method in the Indy IdStrings.pas unit.

It's pretty basic, as you will see. ;-)

HTH,

Conor 

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Alister Christie

Is there a nice easy function to convert a delphi string to one that is
suitable for rendering in a browser (converting  to amp;  etc...).

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Icon

2010-07-20 Thread Conor Boyd
Yeah, Irfanview would be my tool of choice for this sort of task (and
many others).

www.irfanview.com

Cheers,

C. 

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird

I think it disappeared in later Delphi,

I use any of IrfanView, PhotoFiltre, Paint.Net   - all freeware -
Irfanview 
is a converter and viewer, the other two are excellent image editors and
convert too.

What do others use?

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Icon

2010-07-20 Thread Conor Boyd
My take on this would be these are just resampling artifacts.  Different
sampling algorithms (of which Irfanview provides quite a few) may well
give different results.

If you've got a simple graphic like you describe, I would suggest
decreasing the colour depth to e.g. 16 colours prior to
resizing/resampling, and then you shouldn't find you get subtle
differences in e.g. blue.

Other than that, the resampling results you describe are exactly what I
would expect from a photographic image-manipulating program like
Irfanview (I would content that Irfanview is for manipulating images,
not necessarily graphics - they're different beasts).  I wouldn't expect
Sharpening to solve the problem.  When one talks about sharpening an
image it's probably exactly what you in particular don't want -
sharpening makes the dark side of an edge subtley darker, and the light
side lighter; that's what sharpening means in image-manipulating terms.

In summary I would disagree that this is in any way a problem with
Irfanview and it's ilk, but more a matter of expectations.

Hope this helps,

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird

The only problem I have struck with Irfanview (and other programs) is in
resizing images:

If I have an image I want to use, I will usually resize it to several
different sizes, some small enough to be used as images on a TBitButton.

If for example the image is Blue, and has a transparent (eg white)
background and is resized smaller, there are a few pixels on and around
the edge of the blue image on the background that get to be averaged to
a light 
blue - in between white and blue.   This is not a problem until the
image is 
shown on a darker background, and the light blue pixels show as a small
ragged bright edge to the image because they are not the transparent
colour any more.

I have experimented with the IrfanView  option Sharpen after resize
but this does not quite solve the problem - it seems to sharpen the edge
of bright pixels, and sometimes introduces other oddities.

Anyone else have a way to deal with this?   I have often blown up the 
resized image using Photofiltre (ie view at 800%) and carefully brush
the 
offending edge pixels back to the transparent colour.   Very fiddly!

John

--
From: Conor Boyd conor.b...@trimble.co.nz

 Yeah, Irfanview would be my tool of choice for this sort of task (and 
 many others).

 www.irfanview.com

 Cheers,

 C.

 -Original Message-
 From: delphi-boun...@delphi.org.nz 
 [mailto:delphi-boun...@delphi.org.nz]
 On Behalf Of John Bird

 I think it disappeared in later Delphi,

 I use any of IrfanView, PhotoFiltre, Paint.Net   - all freeware -
 Irfanview
 is a converter and viewer, the other two are excellent image editors 
 and convert too.

 What do others use?

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Default email

2010-06-21 Thread Conor Boyd
Surely just a ShellExecute call with a mailto:x...@yyy.comSubject=abc;
value?



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of David O'Brien

Does anyone have any code that would open a New Email window ready for
input in the default email client, and populate the To: address?

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Default email

2010-06-21 Thread Conor Boyd
No it doesn't; well not for me anyway.
 
For me, it does exactly what you asked for.  Outlook's my default mail
client, and I get the expected functionality you originally asked for.
But I would expect it to work the same for any mail client.  That's my
understanding of how the mailto protocol specifier is intended to be
used.
 
What's your email client?
 
Cheers,
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of David O'Brien
Sent: Tuesday, 22 June 2010 11:44 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Default email



Same with this one:

Thanks, but this actually sends the message. I just want a new mail
window to pop up without being sent. 

 

 

From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird
Sent: Tuesday, 22 June 2010 11:25 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Default email

 

This routine does this, in this case there are variables declared
elsewhere  Email, Subject, BodyText that are all strings and already
populated.

 

Note some mail clients (Outloook Express) don't like the BodyText
variable being longer than a dozen or so characters.

 

procedure Tform1.makeEmail;
var
mailto:string;
begin
 mailto:='mailto:'+email+'?Subject=trim(Subject)+'Body='+BodyText
mailto:='mailto:'+email+'?Subject=JBCL'+trim(Subject)+'Body='+BodyText
 ;
  if ShellExecute(Application.Mainform.Handle, 'open',Pchar(mailto),
nil, nil, SW_SHOWNORMAL) = 32 then
ShowMessage(SysErrorMessage(GetLastError));
end;

JohnFrom: David O'Brien mailto:d...@iccs.co.nz  

Sent: Tuesday, June 22, 2010 10:50 AM

To: NZ Borland Developers Group - Delphi List
mailto:delphi@delphi.org.nz  

Subject: [DUG] Default email

 

Does anyone have any code that would open a New Email window ready for
input in the default email client, and populate the To: address?

 

Regards,

Dave.

 



___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Windows 7 Delphi 2007

2010-05-27 Thread Conor Boyd
I'm not particularly well up on Windows 7, but if you're talking about
applications by default NOT running elevated, then Vista was the same.

As you say, there is a difference between running applications simply
while logged into an administrative account and an application running
elevated, but it's not completely new in W7.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jan Bakuwel

Windows 7 has a more strict access control system (Microsoft changed it
quite a bit since Vista) - even if the user has administrative rights,
any programs started by that user do not get administrative rights
unless explicitly granted (via a dialogue). I welcome this change ...
but it seems they might have taken it too far?

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Reading binary data as date/time from registry

2010-05-13 Thread Conor Boyd
Yeah, that was vaguely on my mind too John, good suggestion.

C. 

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird

I am pretty certain that 30/12/1899 is a unique start point for Delphi -

other systems (Unix and Windows) look to start at 1970 or 1980.   I am 
guessing as I haven't dealt with registry dates that you need to do
something similar to a file datestamp - FileDatetoDateTime and/or
FileTimeToSystemTime API

I saw some code examples at

http://www.efg2.com/Lab/Library/Delphi/DatesAndTimes/index.html

which appear to back this up  (about 1/4 way down the page).   Is the
date 
value likely to be a windows integer date/timestamp?

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] UAC control

2010-05-02 Thread Conor Boyd
Do you still need an example of how to invoke an elevated COM DLL?
 
I can probably rustle an example up if you do.
 
Cheers,
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Ross Levis
Sent: Saturday, 1 May 2010 2:50 p.m.
To: delphi@delphi.org.nz
Subject: [DUG] UAC control



I'm back to this subject again.

 

I released a new version of my software using the TCP server/client
method to communicate with a separate elevated app where I do my HKLM
writing etc.  But this is turning out to be a nightmare with firewalls.

 

The proper method is to write a DLL which does something to trigger
elevated privileges.  I'm hoping someone could send me example DLL code
I can use to do this, and the code to call it from my app.  I'm not
experienced writing and using DLL's.

 

Many thanks,

Ross.

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Is it a bug in latest version of Delphi?

2010-02-15 Thread Conor Boyd
It works as expected (i.e. displays -1) in Win32 D2007 for me in an
otherwise empty VCL Forms application.
 
Are you sure you have reproduced this exact code in a clean app in
D2007?



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of sinu sudhakaran
 
I came across a strange bug(???) in latest versions of Delphi.

Have a look at the following code.

procedure TForm1.Button1Click(Sender: TObject);
var
i : integer;
begin
ComboBox1.Clear;
ComboBox1.Items.AddObject('All Locations', TObject(-1));
ComboBox1.Items.AddObject('Only this Location', TObject(0));
ComboBox1.Items.AddObject(Test Location', TObject(1));

i := Integer(ComboBox1.Items.Objects[0]);
showmessage(inttostr(i));
end;

When I tried to run this code in Delphi 6 and Delphi 2007 , I am getting
List Index out of bounds[0] error in Showmessage. When I tried -2, -3,
-4... instead of -1 object , I got the proper output without any 
List index out of bounds error. Also I am getting -1 without any error
when I tried this code in Delphi 3. 

Is it a bug in latest version of Delphi ? Any help is appreciated.
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Apple iPad - OT

2010-01-28 Thread Conor Boyd
Likewise.
 
Although we won't mention the current Cashmere-based shenanigans.

C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Robert martin
Sent: Friday, 29 January 2010 9:00 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Apple iPad - OT


Yup, ditto

I bike to work every day.  We sold our second car  about 8yrs ago.  Nice
in Chch where for most of the city there are no hills and good bike
lanes.

Rob



On 28/01/2010 5:35 p.m., Jeremy North wrote: 

I'd say harden up. You can buy snow tyres :-)

There are exceptions, I also own a car (although we had two and
now
only have one). I basically only drive on weekends.

On Thu, Jan 28, 2010 at 3:27 PM, Bob Pawley rjpaw...@shaw.ca
mailto:rjpaw...@shaw.ca  wrote:
  

Try riding a bike when it is 30 deg C below zero, snow
and ice on the road,
snowing so hard that visibility is 50 feet and wind
blowing at 40 mph.

Ahh Canada.

Bob



- Original Message -
From: Jeremy North jeremy.no...@gmail.com
mailto:jeremy.no...@gmail.com 
To: NZ Borland Developers Group - Delphi List
delphi@delphi.org.nz mailto:delphi@delphi.org.nz 
Sent: Wednesday, January 27, 2010 8:09 PM
Subject: Re: [DUG] Apple iPad - OT


A naive view of a non-bike rider ;-)

On Thu, Jan 28, 2010 at 3:06 PM, Kyley Harris
ky...@harrissoftware.com mailto:ky...@harrissoftware.com 
wrote:


The only problem with the analogy now is that
the iphone and ipad wont
sweat
and stink when it gets to work :D
I'm outta here. 5pm.. Take it easy guys.

On Thu, Jan 28, 2010 at 5:03 PM, Jeremy North
jeremy.no...@gmail.com mailto:jeremy.no...@gmail.com 
wrote:
  

Actually any city would be a whole lot
better if people dumped
motorised transport for the push bike or
public transport.



On Thu, Jan 28, 2010 at 3:01 PM, Kyley
Harris ky...@harrissoftware.com mailto:ky...@harrissoftware.com 
wrote:


funny because the whole city would be
better if everyone used a damn
moped
instead of an overbuilt car just for
going to work and the shops.. and
used
the car for trips and big jobs.

On Thu, Jan 28, 2010 at 5:00 PM, Kyley
Harris
ky...@harrissoftware.com
mailto:ky...@harrissoftware.com 
wrote:
  

I do.. at least I did..
Nissan Station Wagon, Suzuki 200cc moped
scooter, and a Honday CB900
hornet. :) All for the price some people
would pay for a single BMW..
it all comes down to choices of
lifestyle.

On Thu, Jan 28, 2010 at 4:51 PM, Jolyon
Smith jsm...@deltics.co.nz mailto:jsm...@deltics.co.nz 
wrote:


Funny? Why funny? Of course the iPad is
a moped. That was exactly
my
point.



How many people do you know who own a
bike, a car and a moped?





From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Kyley Harris
Sent: Thursday, 28 January 2010 4:23
p.m.

To: NZ Borland Developers Group - Delphi
List
Subject: Re: [DUG] Apple iPad - OT

   

Re: [DUG] Apple iPad - OT

2010-01-28 Thread Conor Boyd
Speaking as a cyclist as well as a car-driver, I mostly agree with you,
hence my mention of tolerance from both sides, and my reference to the
small minority of cyclists was basically to the type of cyclist you talk
of.
 
As a commuter cyclist though (and not really one of the lycra jockeys),
I receive a fair share of abuse from car drivers who tar all cyclists
with the same brush, e..g you cyclists just think you own the road.
Sure, some of them wrongly do, but I'm not some cyclists; I'm just one
guy who tries to respect the road rules, stops at red lights, doesn't
ride on the pavement, wants to get home to his family at the end of the
day, and doesn't appreciate getting cut up unnecessarily.

Some people don't seem to be able to differentiate.

To be honest, I seem to have more trouble with bus-drivers than
car-drivers... ;-)
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Cameron Hart
 
Imho it is not getting stuck behind bikes that gets car drivers irate,
but the flaunting of the road rules demonstrated by cyclists.  Car
drivers start thinking it is unfair every time they see one ride through
a red light, or fail to indicate, or ride double/triple, or skip from
road to footpath as it suits, and unless everyones is following the same
rules it starts to turn into two sides - them against us.  You start
resenting cyclists because they are not following the rules you are
required to.

 

Maybe they should address this imbalance by bringing into effect some
things like cycle licenses (so you know they are qualified and even know
the road rules), headlights, brake lights, and indicators.  Maybe they
need a WOF and cycle registration.

 

Bring us all onto an equal footing and more respect for cyclists might
be found.  It is easy to be tolerant of others when it is a level
playing field.

  

cameron

 

From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Robert martin
Sent: Friday, 29 January 2010 10:23 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Apple iPad - OT

 

What an idiot.  
I think what most of the nasty drivers forget is that for every cyclist
on the road its one less car for them to get stuck behind.  However I
must admit the Dyers pass road is terrible to drive up / down especially
with the Lycra brigade riding two a breast up a thin winding road.  No
excuse for nocking people off the road or for driving a hummer !

Rob

  

 


On 29/01/2010 9:53 a.m., Conor Boyd wrote: 

Basically the need for a bit more tolerance from both cyclists and
car-drivers to sharing the road.

 

Exacerbated this week by a guy who lives in Cashmere, drives a black
Hummer (plate WARNIN with a surround that says does not play well with
others), and who posted online this week that he had knocked 2 cyclists
into the kerb in the last 6 months and was quite prepared to do the same
again, but who subsequently half-heartedly apologised after he realised
that he was easily identifiable as Richard Freeman, the co-owner of the
Sign of the Takahe cafe/restaurant and a number of other businesses who
look like they will be taking a bit of a dent in patronage from now on.

 

Front page news in the Press on Wednesday I think it was.

 

Following by an alleged case of car-passenger assault on a cyclist at
the bottom of Dyers Pass Road yesterday morning.

 

Neither side are completely blameless, and it's a small minority on
either side who make it seem more of a car/cyclist war than it actually
is, or than it should be.

 

Personally, I'm glad I've got a commute that mostly sticks to quieter
roads than the main arteries.

 

C.

 



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Robert martin
 

I come in from the other side (St Albans).  Whats happening in Cashmere?
I'm obviously out of the loop :)

On 29/01/2010 9:23 a.m., Conor Boyd wrote: 

Likewise.

 

Although we won't mention the current Cashmere-based
shenanigans.

 

 
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] So off-topic it's ridiculous

2010-01-28 Thread Conor Boyd
...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Cameron Hart
Sent: Friday, 29 January 2010 2:27 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Apple iPad - OT

 

Imho it is not getting stuck behind bikes that gets car drivers
irate, but the flaunting of the road rules demonstrated by cyclists.
Car drivers start thinking it is unfair every time they see one ride
through a red light, or fail to indicate, or ride double/triple, or skip
from road to footpath as it suits, and unless everyones is following the
same rules it starts to turn into two sides - them against us.  You
start resenting cyclists because they are not following the rules you
are required to.

 

Maybe they should address this imbalance by bringing into effect
some things like cycle licenses (so you know they are qualified and even
know the road rules), headlights, brake lights, and indicators.  Maybe
they need a WOF and cycle registration.

 

Bring us all onto an equal footing and more respect for cyclists
might be found.  It is easy to be tolerant of others when it is a level
playing field.

  

cameron

 

From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Robert martin
Sent: Friday, 29 January 2010 10:23 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Apple iPad - OT

 

What an idiot.  
I think what most of the nasty drivers forget is that for every
cyclist on the road its one less car for them to get stuck behind.
However I must admit the Dyers pass road is terrible to drive up / down
especially with the Lycra brigade riding two a breast up a thin winding
road.  No excuse for nocking people off the road or for driving a hummer
!

Rob

  

 


On 29/01/2010 9:53 a.m., Conor Boyd wrote: 

Basically the need for a bit more tolerance from both cyclists
and car-drivers to sharing the road.

 

Exacerbated this week by a guy who lives in Cashmere, drives a
black Hummer (plate WARNIN with a surround that says does not play well
with others), and who posted online this week that he had knocked 2
cyclists into the kerb in the last 6 months and was quite prepared to do
the same again, but who subsequently half-heartedly apologised after he
realised that he was easily identifiable as Richard Freeman, the
co-owner of the Sign of the Takahe cafe/restaurant and a number of other
businesses who look like they will be taking a bit of a dent in
patronage from now on.

 

Front page news in the Press on Wednesday I think it was.

 

Following by an alleged case of car-passenger assault on a
cyclist at the bottom of Dyers Pass Road yesterday morning.

 

Neither side are completely blameless, and it's a small minority
on either side who make it seem more of a car/cyclist war than it
actually is, or than it should be.

 

Personally, I'm glad I've got a commute that mostly sticks to
quieter roads than the main arteries.

 

C.

 



From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Robert martin
 

I come in from the other side (St Albans).  Whats happening in
Cashmere?  I'm obviously out of the loop :)

On 29/01/2010 9:23 a.m., Conor Boyd wrote: 

Likewise.

 

Although we won't mention the current Cashmere-based
shenanigans.

 

 
 
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with
Subject: unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with
Subject: unsubscribe





-- 
Kyley Harris
Harris Software
+64-21-671-821

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Resizing images

2010-01-18 Thread Conor Boyd
Can you post your example?  Or another example?
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird
Sent: Tuesday, 19 January 2010 9:46 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Resizing images


Resizing images for Images, bitButtons and icons - I guess we all do
this.
 
I have used IrfanView and Photofiltre for resizing images, and noticed
they tend to alter the edge pixels around an image - I guess it averages
the pixel colours on a sharp edge if resizing smaller. This is a problem
with images with a background surround - these pixels are not the
transparent background colour any more and create a ragged edge
noticeable when the image is on a darker background.
 
How do others resize images properly?
 
 
 
(Example is the Analogue clock with the image background some are using-
over a dark background you may see there are a fewer light pixels around
the edge that shouldn't be there)
 
 
John
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Resizing images

2010-01-18 Thread Conor Boyd
Hi Kyley,
 
Thanks, although I was asking John for an example of his concern. ;-)
 
I've used Graphics32 previously to resize images with Lanczos Kernel
resampling etc myself (see the screenshots on http://gloss.ildica.com/
to see what I use it for), so I know how to resize images properly while
maintaining quality.
 
I just wanted to see an example of what was bothering John because
personally I don't have any problems resizing images either in code or
using tools such as Irfanview (I'm a photographer as well, so I know a
fair bit about image sharpening etc too).
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Kyley Harris
Sent: Tuesday, 19 January 2010 10:54 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Resizing images


Sure.. gimme 5 minutes 
i can email you the source too.. its open


On Tue, Jan 19, 2010 at 10:31 AM, Conor Boyd conor.b...@trimble.co.nz
wrote:


Can you post your example?  Or another example?
 
C.



From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird
Sent: Tuesday, 19 January 2010 9:46 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Resizing images


Resizing images for Images, bitButtons and icons - I guess we
all do this.
 
I have used IrfanView and Photofiltre for resizing images, and
noticed they tend to alter the edge pixels around an image - I guess it
averages the pixel colours on a sharp edge if resizing smaller. This is
a problem with images with a background surround - these pixels are not
the transparent background colour any more and create a ragged edge
noticeable when the image is on a darker background.
 
How do others resize images properly?
 
 
 
(Example is the Analogue clock with the image background some
are using- over a dark background you may see there are a fewer light
pixels around the edge that shouldn't be there)
 
 
John

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with
Subject: unsubscribe





-- 
Kyley Harris
Harris Software
+64-21-671-821

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Resizing images

2010-01-18 Thread Conor Boyd
Thanks for sharing.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Kyley Harris
Sent: Tuesday, 19 January 2010 10:58 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Resizing images


begin
  FSourceBMP.Assign(Value);
  if Zoom  1 then
  begin
FBMP.Assign(FSourceBMP);
FBMP.Width := Trunc(FSourceBMP.Width * Zoom);
FBMP.Height := Trunc(FSourceBMP.Height * Zoom);
Stretch(FBMP.Width, FBMP.Height ,sfBox,1,FSourceBMP,FBMP);
  end else
  FBMP.Assign(FSourceBMP);
  FImageAssigned := True;
end;

here is a snippet using a Zoom variable to stretch with Aspect ratio.
Its basically the same as TCanvas.stretch, but faster and far higher
quality. There are a few options (sfBox, Triangle) etc for how it
samples the pixels.. different ones get better results for Text, photo..
etc..

On Tue, Jan 19, 2010 at 10:53 AM, Kyley Harris
ky...@harrissoftware.com wrote:


Sure.. gimme 5 minutes 
i can email you the source too.. its open


On Tue, Jan 19, 2010 at 10:31 AM, Conor Boyd
conor.b...@trimble.co.nz wrote:


Can you post your example?  Or another example?
 
C.



From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird
Sent: Tuesday, 19 January 2010 9:46 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Resizing images


Resizing images for Images, bitButtons and icons - I
guess we all do this.
 
I have used IrfanView and Photofiltre for resizing
images, and noticed they tend to alter the edge pixels around an image -
I guess it averages the pixel colours on a sharp edge if resizing
smaller. This is a problem with images with a background surround -
these pixels are not the transparent background colour any more and
create a ragged edge noticeable when the image is on a darker
background.
 
How do others resize images properly?
 
 
 
(Example is the Analogue clock with the image background
some are using- over a dark background you may see there are a fewer
light pixels around the edge that shouldn't be there)
 
 
John

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to
delphi-requ...@delphi.org.nz with Subject: unsubscribe





-- 
Kyley Harris
Harris Software
+64-21-671-821





-- 
Kyley Harris
Harris Software
+64-21-671-821

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Resizing images

2010-01-18 Thread Conor Boyd
What I think you're seeing (without seeing your example) is the softness
introduced by most resampling algorithms (when used for downsampling).

Something like Bicubic Sharper in PS or Lanczos Kernel in Irfanview
might help.

However, most of these sharpening algorithms probably work better on
photographic images than they will on graphics.  Maybe a more dumb
program like Paint would resample a graphic better.  Or reducing the
color depth of the image before resizing will also help.

Post an example, and I'll see what I would do with it.

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird
Sent: Tuesday, 19 January 2010 11:15 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Resizing images

More specifically - does the GIMP or any other resizing method allow me
to specify this?:

Where say an image with a a white background (the transparent colour)
meets a grey border, and the image is resized (especially if resized
smaller), there will be on this edge a new pixel that has part of the
grey border and 
the white background.   Most resizing operations will change the pixel
to 
light grey/cream whereas I want to tell it to either use the original
grey or the white background only for any pixels on the edge.

John

 The GiMP is always handy for image manipulation.  Generally I draw my 
 images in a really old version of Corel Draw, then use GiMP for 
 transparance, shadows and so on.



___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Resizing images

2010-01-18 Thread Conor Boyd
What I have just tried is this:

Open your double image in Irfanview.
Crop it to the left hand image.
Open the Resize/Resample dialog.
Choose to resize it in half.
Choose to Apply Sharpen after resample.
Choose to Resample using Lanczos Kernel.

Voila, it looks pretty good to me.

The main point here is probably resampling, not resizing.

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird
Sent: Tuesday, 19 January 2010 12:13 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Resizing images

Here is an example.shows the original larger image and the resized
one. 
You can see the ragged border when the image is on a darker background,
as the offending pixels are not the same as the transparent colour of
the rest of the square image out to the edges - they have been altered
in colour by 
the resizing.   Hope I am making sense.

The original image was a png, and it has been resized then converted to
BMP using Irfanview. As far as I recall I didn't use the Lanczos option,
just the defaults.

http://sites.google.com/site/jbclnz2/delphistuff/delphimiscissues

John

- Original Message -
From: Conor Boyd conor.b...@trimble.co.nz
To: NZ Borland Developers Group - Delphi List delphi@delphi.org.nz
Sent: Tuesday, January 19, 2010 11:31 AM
Subject: Re: [DUG] Resizing images


 What I think you're seeing (without seeing your example) is the
softness
 introduced by most resampling algorithms (when used for downsampling).

 Something like Bicubic Sharper in PS or Lanczos Kernel in Irfanview
 might help.

 However, most of these sharpening algorithms probably work better on
 photographic images than they will on graphics.  Maybe a more dumb
 program like Paint would resample a graphic better.  Or reducing the
 color depth of the image before resizing will also help.

 Post an example, and I'll see what I would do with it.

 C.

 -Original Message-
 From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz]
 On Behalf Of John Bird
 Sent: Tuesday, 19 January 2010 11:15 a.m.
 To: NZ Borland Developers Group - Delphi List
 Subject: Re: [DUG] Resizing images

 More specifically - does the GIMP or any other resizing method allow
me
 to specify this?:

 Where say an image with a a white background (the transparent colour)
 meets a grey border, and the image is resized (especially if resized
 smaller), there will be on this edge a new pixel that has part of the
 grey border and
 the white background.   Most resizing operations will change the pixel
 to
 light grey/cream whereas I want to tell it to either use the original
 grey or the white background only for any pixels on the edge.

 John

 The GiMP is always handy for image manipulation.  Generally I draw my
 images in a really old version of Corel Draw, then use GiMP for
 transparance, shadows and so on.



 ___
 NZ Borland Developers Group - Delphi mailing list
 Post: delphi@delphi.org.nz
 Admin: http://delphi.org.nz/mailman/listinfo/delphi
 Unsubscribe: send an email to delphi-requ...@delphi.org.nz with
Subject:
 unsubscribe

 ___
 NZ Borland Developers Group - Delphi mailing list
 Post: delphi@delphi.org.nz
 Admin: http://delphi.org.nz/mailman/listinfo/delphi
 Unsubscribe: send an email to delphi-requ...@delphi.org.nz with
Subject: 
 unsubscribe 


___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] IPC with an elevated program

2010-01-18 Thread Conor Boyd
I went down the elevated COM DLL route that you mention about 6 months
ago, and it works very well.
 
There's a post on StackOverflow here
(http://stackoverflow.com/questions/923350/delphi-prompt-for-uac-elevati
on-when-needed/923551#923551) that I contributed to that should have the
info you need.
 
There's a link to a PDF there that was helpful along with the link that
I posted.
 
I'm busy in training this week, but have a look at the links, and if
you're still having trouble, drop me a line, and I'll see if I can find
a few mins here and there to help.
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Ross Levis
Sent: Tuesday, 19 January 2010 1:26 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] IPC with an elevated program



I don't really want global shared memory.  The reason for the small app
is to have the UAC prompt appear when I need to make changes to the HKLM
registry, which is very rare.  There is a standard way to do this but it
sounds difficult.  Some sort of DLL needs to be created I believe.

 

Ross.

 

From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Alan Rose
Sent: Tuesday, 19 January 2010 8:55 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] IPC with an elevated program

 

 

If you want to to use shared memory in Vista and above its best to write
a service to create global shared memory that all users can access. The
key here is global shared memory and with the right security bits set.
Best to Google global shared memory for more info.

 

heres one link I found that maybe helpful

http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/08e
18474-5f8c-4294-a9cf-7ede1ff8ae1f/

  

 

  But since Vista SP1 or SP2, Microsoft appears to be preventing
shared memory access between an app with standard privileges and one
with elevated.  I've been   wondering why some users have been reporting
odd problems and this appears to be it.

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] What is the future for Delphi programmer?

2010-01-11 Thread Conor Boyd
1. Yes
2. No (although I've used it for a few in-house utilities and expect to
continue doing so)
3. No
4. C# (although Prism may be on the cards) 

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Alister Christie

How about other people:

1. Still maintaining Delphi code?

2. Started a new Delphi project in the last year?

3. Started a new project in another language in the last year (what was
the language)?

4. What other languages are you using learning?

My Answers
1. Yes, 2. No, 3. No, 4. C# (Compact Framework)

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] OT : GoogleWave invites

2009-11-26 Thread Conor Boyd
Basically Google's thoughts on what email (or rather a collaboration
tool) should be if email was being designed from the ground-up today.
 
It's like a mixture of email and instant messaging, so multiple people
can be collaborating on a wave together, in real-time.
 
The Lifehacker guys have a comprehensive website about it here when
you're back online: www.completewaveguide.com
 
Still in early beta.
 
HTH,
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Ross Levis
Sent: Friday, 27 November 2009 12:47 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] OT : GoogleWave invites



Can someone enlighten me as to what GoogleWave is?  I'm overseas at the
moment and only have email access.

 

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] OT : GoogleWave invites

2009-11-26 Thread Conor Boyd
I've got a few Wave invites to give away too, if Jolyon hasn't put you
all off. ;-)
 
Was it Churchill who said he didn't want to be a member of any club that
would have him as a member...



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Friday, 27 November 2009 9:42 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] OT : GoogleWave invites


hook me up :-)

Jeremy


On Fri, Nov 27, 2009 at 8:41 AM, Jolyon Smith jsm...@deltics.co.nz
wrote:


It's Lotus Notes for the web, made cool by being from Google,
and made interesting and exciting by the invites mechanism which makes
people feel exclusive and special for being involved with it.

 

imho.

Ymmv.

 

 

From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis
Sent: Friday, 27 November 2009 12:47 a.m. 

To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] OT : GoogleWave invites



 

Can someone enlighten me as to what GoogleWave is?  I'm overseas
at the moment and only have email access.

 

Cheers,

Ross.

 

From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Malcolm Groves
Sent: Thursday, 26 November 2009 2:21 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] OT : GoogleWave invites

 

Thanks guys, all gone. Everyone who asked via private mail got
one, but they can take 24 hours or so to come through. 

 

I'll post again when I get some more. 

 

Cheers

Malcolm

 

From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Malcolm Groves
Sent: Thursday, 26 November 2009 10:14 AM
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] OT : GoogleWave invites

 

Sorry for the offtopic, but I have more Google Wave invites if
anyone wants one. First come first served. 

 

Cheers

Malcolm


___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with
Subject: unsubscribe



___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Fw: OT : GoogleWave invites

2009-11-26 Thread Conor Boyd
Done.  Although may take some time to come through.

All gone now.

Thanks,

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Colin/Mina
Sent: Friday, 27 November 2009 11:57 a.m.
To: DUG, - Delphi
Subject: [DUG] Fw: OT : GoogleWave invites

Hi also Connor,

  Having just read about this, please add me to the list too, if you
can.

Regards

Colin

- Original Message -
From: Ian Drower idro...@gmail.com
To: NZ Borland Developers Group - Delphi List delphi@delphi.org.nz
Sent: Friday, November 27, 2009 11:42 AM
Subject: Re: [DUG] OT : GoogleWave invites


Hi Connor
I'd appreciate a 'Wave' invite if you have any left.

Many thanks..

Ian Drower


Conor Boyd wrote:
 I've got a few Wave invites to give away too, if Jolyon hasn't put you

 all off. ;-)

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Presentation in Christchurch - any other meetings in Chch?

2009-10-13 Thread Conor Boyd
I'm surprised too.
 
We would love to see a 64-bit compiler.  I was disappointed to read
Jolyon's comprehensive blog post on the subject this morning.
 
My team leader has spent the past few months vociferously petitioning
Nick Hodges and anybody else he can find on any number of forums to try
and get our feelings across on that subject.

C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of David Brennan
Sent: Wednesday, 14 October 2009 3:27 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Presentation in Christchurch - any other meetings in
Chch?



I'm really not sold on the VCLX project. I will concede that my attitude
is in part based on my memory of the Kylux and .NET disasters which were
admittedly with Borland rather than Embarcadero. However I just don't
see that it is possible to produce a really excellent cross platform
version of Delphi in 18 months. Maybe by VCLX version 2 or 3 it will be
reasonable but even then my understanding is that most existing
development projects (ie any using significant GUIs with third party
components, such as ours) will have no chance of moving to the cross
platform VCLX.

 

We don't have any real need for 64 bit compilation either yet BUT at
least it seems like a logical progression of core Delphi and is
something we will definitely want in the future. VCLX seems like a
massive detour (yet another VCL version!) and a likely waste of
resources rather than an improvement to core functionality.

 

From what Malcolm says though I'm in the minority. I'm surprised but it
wouldn't be the first time ;-).

 

I guess we will see how it pans out.

 

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Presentation in Christchurch - any other meetings in Chch?

2009-10-13 Thread Conor Boyd
Desktop PCs, maybe.
 
However, in the industry we're in, we're developing a grunty app that
we'd like to run on a grunty 64-bit server, and be able to use lots of
mem to get round disk i/o bottlenecks.
 
That's why we are hanging out for 64-bit.
 
And would be prepared to pay for it.
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird
Sent: Wednesday, 14 October 2009 4:57 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Presentation in Christchurch - any other meetings in
Chch?


I think a lot of you are being short sighted.  Just my opinion.
 
I lived through the mini-computer era, using Digital Equipment
mini-computers with RT-11 and VMS - both really good operating systems,
and thought at the time if they started selling VMS for a few $100
rather than thousands they may have captured the mini-computer market as
it was way superior to MS-DOS, instead they didn't adapt and got
clobbered by Microsoft to the extent the company and the platform does
not even exist now.
 
Its a less certain thing as its still the future, but its my guess
likely in 5 years netbooks/laptops and mobile and phone OS will largely
kill desktop PCs and in time likely Windows too, as there is not much
sign they will be the leading candidate for mobile devices in 5 years.
Hence the more cross platform and new UI (read touchscreen) enabled a
language is the better positioned it will be.
 
Also apps are moving more to be web enabled, where the UI is done by the
browser instead, so this also is not really tied to one OS.  There are
only a few good frameworks that run across many OS's - think
Firefox/Thunderbird (XUL) and Safari/Itunes etc.  As far as I can gather
none of these are remotely easy for new programmers to jump into.
 
Thats why I reckon Delphi as a cross platform simple UI language could
be a killer, and why its worth doing even if it is not too easy.
 
John
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] tricky event question

2009-10-12 Thread Conor Boyd
The way you've described it smells a bit to me.  Why do you need to
free the combobox?  Why not just hide it or something similar?

However, if you truly want to do it, look into posting a message to the
form using PostMessage, and then handle the message on the form, and
free the combobox at that point.

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Robert martin
Sent: Tuesday, 13 October 2009 10:23 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] tricky event question

Hi Guys

I have a combobox with an event (onChange) that refreshes the display.  
As part of that refresh the combobox is freed.  This causes an AV as the
combo box has not yet finished processing its event but is being freed.

What would be the best way of dealing with this scenario? 

Cheers
Rob

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Image manipulation

2009-10-12 Thread Conor Boyd
I've used a mixture of GraphicEx and Graphics32 for a Delphi screensaver
I've written (http://gloss.ildica.com) which can handle most of those
formats, plus high-quality resampling/resizing and saving, so yeah, it's
possible.

IIRC I use GraphicEx for actually knowing how to load various image
types and then assign the image to a Graphics32 object for resampling
etc before saving.

http://www.graphics32.org/wiki/

It's open-source, works well for me under D2007, dunno about any later
versions.

If you have specific questions about using it for resampling, drop me a
line, and I'll look some code out.

Cheers,

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Robert martin
Sent: Tuesday, 13 October 2009 3:43 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Image manipulation

Hi

We want to do some basic image manipulation.  Specifically the following

1) open and dipslay Gif, jpg, and png image formats.
2) Resize the above file format
3) Save file back in resized format.

Does anyone have or recommend any code for doing such?

I have seen GraphixEx but it states it does not support saving of
images.

Cheers
Rob

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Indy and Delphi 2010 - supplemental

2009-10-12 Thread Conor Boyd
Wasn't at the launch(es), so no idea what went on, but I'd like to say
that I welcome all your input here; your contributions (both here and on
your blog) invariably seem helpful, lengthy and considered.
 
I would like to make a respectful comment in Richard's direction that if
his posts to this list weren't often so brief/single sentence and often
only appearing when there is a Developers-Inc event/campaign upcoming,
they might run less risk of getting misinterpreted as they seem to do at
times.
 
Kind regards,
 
Conor



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jolyon Smith
Sent: Tuesday, 13 October 2009 3:50 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Indy and Delphi 2010 - supplemental



No I was not a problem at the Delphi launch.  One pointed and tongue
in cheek observation w.r.t the fact that the Project Options dialog does
not itself make use of the much vaunted checkbox property editor for
boolean's does not amount to a problem in my book.

 

No, Richard for some reason chose to single me out as unfriendly and
unhelpful specifically w.r.t my contribution to this list.

 

It is fair to say that I have taken deep, DEEP offence at that, being
among what I consider to be among the most strenuously helpful and
polite (not to mention trying to straighten out misunderstandings
between others who perhaps have not been so helpful or friendly - not
naming names, but shall we just say that those choosing to reside in
glass houses should not be so quick to throw stones).

 

Suffice to say that any further software purchases that I personally
make shall not contribute to any swelling of Developers-Inc coffers.  I
see no need to be helpful in THAT direction at all.

 

It didn't help - although not directly connected - that presumably for
some other reason Malcolm Groves neglected to mention that it was my
comment on his blog that prompted him to have the conversation with
Chris Bensen (to whom I'd already put the idea, via his blog) about
directly supporting for Synaptics devices in the touch/gesturing engine
in Delphi, preferring instead to give the impression that this was his -
or Chris' - idea.

 

 

From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Robert martin
Sent: Tuesday, 13 October 2009 3:11 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Indy and Delphi 2010 - supplemental

 

Your best option is to join the Indy list group and post there.  Remy (i
think) is pretty active.  I have not seen any posts about this problem
so i think its likely something with your setup.

Rob

p.s. I take it you were a 'problem' at the Auckland Delphi launch?  





 

 

 



Jolyon Smith wrote: 

Having switched back to compiling against the version of Indy supplied
with Delphi 2010 itself, this too does not build!!

 

The IdCodeHeader unit references IdHeaderCoderBase unit... this does not
exist in the Indy files supplied with Delphi (but *IS* present in the
latest IndyTiburon.zip which I can't use for the reason in the
previous post).

 

HELP!?  Am I just doing something dumb?


From your local, unfriendly, unhelpful Delphi Advocate,

Jolyon

 





 
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Image manipulation

2009-10-12 Thread Conor Boyd
Yeah, those issues are what drove my choice of Graphics32 (image quality
and scaling).
 
Here's some code which uses Graphics32 to resample an image.
 
OldBitmap, TempBitmap are of type Graphics32.TBitmap32
NewBitmap is of type Graphics.TBitmap;
 
  OldBitmap.Assign(a regular Graphics.TBitmap here which you could load
using GraphicEx);
 
  TempBitmap := TBitmap32.Create;
  try
TempBitmap.Width := Trunc(OldBitmap.Width * Scale);
TempBitmap.Height := Trunc(OldBitmap.Height * Scale);
 
rs := TKernelResampler.Create(OldBitmap);
 
if FastResamplingWanted then
  rs.Kernel := THermiteKernel.Create
else
  rs.Kernel := TLanczosKernel.Create;
 
GR32_Resamplers.StretchTransfer(TempBitmap,
Rect(0, 0, TempBitmap.Width,
TempBitmap.Height),
Rect(0, 0, TempBitmap.Width,
TempBitmap.Height),
OldBitmap,
Rect(0, 0, OldBitmap.Width,
OldBitmap.Height),
rs, dmBlend, Nil);
 
NewBitmap.Assign(TempBitmap);
  finally
TempBitmap.Free;
  end;

I've paraphrased this from some code of mine, but hopefully that's the
gist of a high-quality resample for you using Graphics32.
 
Cheers,
 
Conor



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Tuesday, 13 October 2009 4:09 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Image manipulation


I have some code that I wrote form bits of other code off the net that
resizes images so they dont loose any quality. But like how Photoshop
does it etc.well nearly.
I needed one that did scaling so that the aspect ratio was retained. It
seems to work ok.

Jeremy


On Tue, Oct 13, 2009 at 4:05 PM, Kyley Harris ky...@harrissoftware.com
wrote:


GraphicsEx is great.. but I do everything with BMP and JPG only


On Tue, Oct 13, 2009 at 3:43 PM, Robert martin
r...@chreos.co.nz wrote:


Hi

We want to do some basic image manipulation.
Specifically the following

1) open and dipslay Gif, jpg, and png image formats.
2) Resize the above file format
3) Save file back in resized format.

Does anyone have or recommend any code for doing such?

I have seen GraphixEx but it states it does not support
saving of images.

Cheers
Rob

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to
delphi-requ...@delphi.org.nz with Subject: unsubscribe





-- 
Kyley Harris
Harris Software
+64-21-671-821

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with
Subject: unsubscribe



___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Image manipulation

2009-10-12 Thread Conor Boyd
Dunno about the pngs.

Feel free to send him my way directly if he has more questions...
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Robert martin
Sent: Tuesday, 13 October 2009 4:41 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Image manipulation


Nice !

I had read that since GraphicsEx loads images as bitmaps you lost some
of the advanced features of the image format.  Do you know if png files
retain their transparencies?

This all looks very promising.  I will forward this on to the man doing
the work :)

Rob



 



Conor Boyd wrote: 

Yeah, those issues are what drove my choice of Graphics32 (image
quality and scaling).
 
Here's some code which uses Graphics32 to resample an image.
 
OldBitmap, TempBitmap are of type Graphics32.TBitmap32
NewBitmap is of type Graphics.TBitmap;
 
  OldBitmap.Assign(a regular Graphics.TBitmap here which you
could load using GraphicEx);
 
  TempBitmap := TBitmap32.Create;
  try
TempBitmap.Width := Trunc(OldBitmap.Width * Scale);
TempBitmap.Height := Trunc(OldBitmap.Height * Scale);
 
rs := TKernelResampler.Create(OldBitmap);
 
if FastResamplingWanted then
  rs.Kernel := THermiteKernel.Create
else
  rs.Kernel := TLanczosKernel.Create;
 
GR32_Resamplers.StretchTransfer(TempBitmap,
Rect(0, 0, TempBitmap.Width,
TempBitmap.Height),
Rect(0, 0, TempBitmap.Width,
TempBitmap.Height),
OldBitmap,
Rect(0, 0, OldBitmap.Width,
OldBitmap.Height),
rs, dmBlend, Nil);
 
NewBitmap.Assign(TempBitmap);
  finally
TempBitmap.Free;
  end;

I've paraphrased this from some code of mine, but hopefully
that's the gist of a high-quality resample for you using Graphics32.
 
Cheers,
 
Conor


[snip] 

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Image manipulation

2009-10-12 Thread Conor Boyd
Depends what Robert wants, but StretchDraw won't give you anything like
the resampling quality of a decent resampling algorithm such as a
Lanczos Kernel.  If you want to see the difference without writing code,
check out the freeware Irfanview image utility (www.irfanview.com) and
try resizing an image using the various resampling algorithms available
in that utility.
 
One thing that I think a lot of people overlook is that a file format is
just that: a file format.  Once one has loaded an image from a file of a
particular format, then the image in memory is simply a bitmapped image
(or a raster image or whatever).  At that point, it's completely
divorced from the file format it happened to be last persisted in.
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird
Sent: Tuesday, 13 October 2009 5:13 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Image manipulation


I have a neat program that can picks a JPG file, converts JPG to BMP and
back and resize it at will too.
The trick is that you can resize as a BMP, but save back as a JPG
 
Can email the rest of the project, but here is the main unit to show its
not hard to do...
 
This program zooms a bevel in and out to show the size of the image will
be when resized, but does not actually resize until you click resize
now, as the image would lose quality by being continuously resized.
 
Its all done by about 4 lines in the ResizeNow procedure



[snip] 

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Bug in IDE - Daylight Saving?

2009-09-27 Thread Conor Boyd
Pretty sure it's the IDE.

I had the same issue this morning after leaving D2009 open over the
weekend.  It told me all the open units had changed on disk, and did I
wish to reload each individual one.  I wasn't too concerned, since I
have it set to Save on Run, and I Save All regularly anyway, so I was
pretty sure I wasn't going to lose any changes...

C. 

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Bevan Edwards

Are you sure it's an IDE error and not Windows?
I had something similar happen with a text editor I had open over that
period.

John Bird wrote:
 I had a project open when daylight saving came on,

 The IDE said all the source files had changed their date  time on 
 disk, and prompted me to reload them all.

 Now I am not sure if I have lost my last changes..this surely is a bit

 of an idiotic bug

 John

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] A change in upgrade policy coming from Embarcadero

2009-09-17 Thread Conor Boyd
Can't help with a link, but yeah, my recollection is the same; the
Delphi implementation spanked the C# one, even though it was the C# guys
who'd defined the context for the challenge.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jolyon Smith

Someone did some benchmarking not so long ago where the test conditions
were set by some C# guys - it was essentially an open benchmarking
challenge with invitations to submit optimal solutions in various
languages. I forget the details but the last I heard the C# code
struggled to get anywhere near the Delphi code.

I wish I could remember a link to it - it made for interesting reading
generally.

It was someone's blog I think.  Can anyone help out with a reference?

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] A change in upgrade policy coming from Embarcadero

2009-09-17 Thread Conor Boyd
Yeah, I thought there was a joke there somewhere too, but I was too
scared to go and look for it... ;-)



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Ian Drower
Sent: Friday, 18 September 2009 2:45 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] A change in upgrade policy coming from Embarcadero


I presume you're talking about her car...

Regards
Ian
Sean Cross wrote: 

 


  

The GC in .NET has evolved more and more facilities to
configure and
tune it, which again raises the question in my mind...
if GC is
supposed
to be this great, automated memory management system,
why does it need
so
much tweaking and tuning?




In typical use, it doesn't need any tweaking.  I suspect that
there are some memory usage patterns it doesn't perform so well on, and
in those cases you tune it.  In extreme cases, you use something else
:).

In the same vein, if my wife's automatic gearbox is so good, why
does it have a sports and economy setting?


___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] registry caching?

2009-08-27 Thread Conor Boyd
Which OS?

If it's Vista (or Win 7), and your registry key is under e.g. HKLM, are
you running into registry virtualization issues?

C. 

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Ross Levis

I hope someone can help.

I have an app where the installer sets an XP compatibility mode registry
entry during installation.  Don't ask why but it is generally required.

As the app loads after installation, it checks some hardware
requirements to see if XP compatibility mode needs to be switched off.
If so, the registry entry is deleted and the program then needs to be
restarted, which I want to do automatically.

I have a helper app which I load just before terminating the main app.
The helper app then reloads the main app after a 2 second sleep.

However, the result is that the program is still loading in
compatibility mode even though the registry entry is deleted well before
it loads.
 
I have LazyWrite disabled on the registry change, so it is instantly
updated.  I tried a massive 15 second sleep in the helper app, so the
main app is closed for 15 seconds before reloading, yet it still loads
as if the registry entry is still there.

If I terminate the app and load it manually, then it's always correct!
I don't understand this.  Why would loading the app manually be any
different to loading it from another app?

I'm using CreateProcess with CREATE_NEW_PROCESS_GROUP to load the helper
app and to load the main app again.  I tried ShellExecute with no
difference.

Is there some way to make this work automatically?

The only method I can adopt at this stage is to popup a message to ask
the user to load the program manually, which is not user friendly.

Many thanks,
Ross.

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] registry caching?

2009-08-27 Thread Conor Boyd
I've only recently had the pleasure of really getting to grips with
UAC, etc, so if I'm telling you stuff you already know, forgive me.
It does sound like this is a UAC or elevation issue.

When you say raised privileges, do you mean elevated?  You app
either runs elevated or it doesn't.  Installers by default run elevated,
hence the UAC prompt when you start an installer.

If your installer writes to HKLM for example, it will be writing to the
real HKLM as opposed to a virtualised one.

I'm still unclear as to whether your app will be running elevated.  If
it's not running elevated and e.g. tries to write to HKLM, it will be
writing to a virtualised copy of the registry.  If it writes it's own
value to it's virtualised copy of the registry, then you can change the
real HKLM value to your hearts content, but your app will never see
those changes, since it will only see it's virtualised copy.

Like I said, this still smells like a registry virtualisation issue to
me.

However, if it's not HKLM keys (or other UAC-restricted territory such
as Program Files) we're talking about anyway, then I'm a bit stumped,
sorry. ;-)

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Ross Levis

Sorry, I should have mentioned it is Vista, but it'll be the same issue
with Win7.  It's not a virtualization issue.  This is all done with
raised privileges during and immediately after installation.

It seems to be caching the compatibility setting somehow.  Or perhaps
the helper app is inheriting the setting and then inheriting it back to
the main app when it restarts it.  It would appear a very stupid thing
for Windows to do if that is the case, but I'll test it to be sure.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Conor Boyd

Which OS?

If it's Vista (or Win 7), and your registry key is under e.g. HKLM, are
you running into registry virtualization issues?

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]

I hope someone can help.

I have an app where the installer sets an XP compatibility mode registry
entry during installation.  Don't ask why but it is generally required.

As the app loads after installation, it checks some hardware
requirements to see if XP compatibility mode needs to be switched off.
If so, the registry entry is deleted and the program then needs to be
restarted, which I want to do automatically.

I have a helper app which I load just before terminating the main app.
The helper app then reloads the main app after a 2 second sleep.

However, the result is that the program is still loading in
compatibility mode even though the registry entry is deleted well before
it loads.
 
I have LazyWrite disabled on the registry change, so it is instantly
updated.  I tried a massive 15 second sleep in the helper app, so the
main app is closed for 15 seconds before reloading, yet it still loads
as if the registry entry is still there.

If I terminate the app and load it manually, then it's always correct!
I don't understand this.  Why would loading the app manually be any
different to loading it from another app?

I'm using CreateProcess with CREATE_NEW_PROCESS_GROUP to load the helper
app and to load the main app again.  I tried ShellExecute with no
difference.

Is there some way to make this work automatically?

The only method I can adopt at this stage is to popup a message to ask
the user to load the program manually, which is not user friendly.

Many thanks,
Ross.

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] registry caching?

2009-08-27 Thread Conor Boyd
A process either runs elevated or it doesn't.

A process cannot change from an unelevated state to an elevated one.

A process can request to spawn an elevated sub-process in which case the
UAC prompt will be shown.  Or it can request an elevated instance of a
COM server in which case the UAC prompt will be shown.

In the second scenario, if the process holds on to that COM object for
the rest of the process's lifetime, then it won't cause the UAC prompt
to be shown again.

To give an example of the second scenario, I have a legacy app that
writes to HKLM (on which other parts of the program suite rely).  I
pulled the HKLM-writing code out into a COM server.

My legacy app (when running on Vista or Win 7) requests an instance of
the new COM server, at which point the UAC prompt is shown.  If the UAC
prompt completes successfully (either because the program was being run
by an admin who confirms the elevation, or an admin username/password
combo is correctly entered) then my legacy app holds on to that COM
server instance for the rest of the session to enable continued
successful HKLM writing without further UAC prompts.

One can google for the circumstances under which Vista will determine a
program to be requiring elevation up front (these include having the
word setup in the filename, which is how most installers automatically
request elevation on startup).

Or one can include a Vista manifest indicating the elevation status that
the application requires.  If you set it to requireAdmin, then the app
will always present a UAC prompt on startup, and won't continue without
successful completion of that UAC dialog.

An installer isn't an installer from the POV of Vista/Win7.
Installers are simply examples of programs which Vista always runs
elevated.

I could well be wrong, but I don't believe Windows controls or monitors
the scope of elevation timespans as you suggest John.  I believe it's
simply a question of each application determining it's own elevation
status (through manifests, etc) and controlling the elevation status and
lifespan of any child-processes or COM objects that it instantiates.

Cheers,

Conor

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird

I have noticed that it must store the process ID or something similar of
the original parent process  that needed and was granted the elevation.
If the same action requiring elevation is run again it does not ask as
long as the original program or one started by the original program is
still running and 
repeating the same action.   However if the program is terminated and 
restarted it does ask again.

It shows there was some thought by MS into giving the elevation some
scope over actions and processes related to the original process, and
probably for some time as well, all of which is sensible.

(In my case it was not registry stuff, but a starter program copying
.Exe files wich does trigger Vista into thinking its some kind of
installer I am guessing - which is similar to what you are doing)

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] registry caching?

2009-08-27 Thread Conor Boyd
Hmmm, I'm a bit stumped then.

Have you checked in the virtualised part of the registry to see if there
are any rogue keys in there that you're not expecting?  I appreciate you
obviously don't expect there to be, especially given the way you
describe the real key successfully disappearing...

E.g. under something like (the SID is obviously dependent on the user
under which the processes are running):
HKEY_USERS\S-1-5-21-583907252-1580818891-839522115-6268\Software\Classes
\VirtualStore

Cheers,

Conor

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Ross Levis

I do mean elevated.  I do all HKLM registry changes in a separate little
app which has a manifest which specifies that it requires elevated
administrator privileges.  Not the official way to do things but it
works.  It will ask for the UAC prompt if I run it manually.  

But since the installer is elevated and it loads the app after
installation, it also gets the elevated rights by default.

So that's not the problem.  I am looking at the registry using regedit.
During installation I can see the HKLM key appear in regedit.  My app
then loads, and I see the registry key deleted by my app.  It is
definitely gone.

My app then loads my little helper app and the main app is terminated.
No matter how long the helper app sleeps before loading the main app
again, the registry setting is still taking effect.
 
Vista doesn't look in virtualized areas for the AppCompatFlags, so it
must be some sort of caching.  What is strange is if I disable the main
app from loading the helper app, so my main app just terminates and
doesn't get reloaded, and I then manually load my app from the installed
icon, it works correctly.  I don't think virtualization would explain
that either.

I'm guessing it would work if I set the Windows Task Scheduler to load
my app in 5 seconds, but that seems a lot of work.

The only logical thing I can think of is there must be some information
being transferred when loading one program from another.  Certainly
elevated privileges is one thing that is transferred in this situation.

Perhaps another way around it is to load both the helper app and main
app from the installer so they are loaded without any obvious link to
each other.  The helper would then need to monitor the main app to see
when it is terminated, before restarting it.  Could be worth a try when
I get time.

Cheers,
Ross.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Conor Boyd

I've only recently had the pleasure of really getting to grips with
UAC, etc, so if I'm telling you stuff you already know, forgive me.
It does sound like this is a UAC or elevation issue.

When you say raised privileges, do you mean elevated?  You app
either runs elevated or it doesn't.  Installers by default run elevated,
hence the UAC prompt when you start an installer.

If your installer writes to HKLM for example, it will be writing to the
real HKLM as opposed to a virtualised one.

I'm still unclear as to whether your app will be running elevated.  If
it's not running elevated and e.g. tries to write to HKLM, it will be
writing to a virtualised copy of the registry.  If it writes it's own
value to it's virtualised copy of the registry, then you can change the
real HKLM value to your hearts content, but your app will never see
those changes, since it will only see it's virtualised copy.

Like I said, this still smells like a registry virtualisation issue to
me.

However, if it's not HKLM keys (or other UAC-restricted territory such
as Program Files) we're talking about anyway, then I'm a bit stumped,
sorry. ;-)

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Ross Levis

Sorry, I should have mentioned it is Vista, but it'll be the same issue
with Win7.  It's not a virtualization issue.  This is all done with
raised privileges during and immediately after installation.

It seems to be caching the compatibility setting somehow.  Or perhaps
the helper app is inheriting the setting and then inheriting it back to
the main app when it restarts it.  It would appear a very stupid thing
for Windows to do if that is the case, but I'll test it to be sure.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Conor Boyd

Which OS?

If it's Vista (or Win 7), and your registry key is under e.g. HKLM, are
you running into registry virtualization issues?

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]

I hope someone can help.

I have an app where the installer sets an XP compatibility mode registry
entry during installation.  Don't ask why but it is generally required.

As the app loads after installation, it checks some hardware
requirements to see if XP compatibility mode needs to be switched off

Re: [DUG] CPU usage

2009-08-20 Thread Conor Boyd
Not that tricky.

function IsScreenSaverActive: Boolean;
begin
  SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, @Result, 0);
end; 

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird

1 - there is no reliable way I have found to detect when the screensaver
has actually started - if you know one please pass it on!

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] CPU usage

2009-08-20 Thread Conor Boyd
John,

I just checked back through my emails.  We talked about this back in
June.

There were a number of confirmations of the fact that it apparently
works fine.

That function I posted works perfectly for me on XP as is (compiled
under D2007).  I've just tested it again; same result.

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird

Now I remember - I had tried this very code lots, and I had lots of
trouble getting it to work, after some empirical testing I found the
boolean result returned was always interpreted as true unless I copied
the result into another (Delphi)  boolean, in which case it worked.

Is there any problem with a Boolean returned from Win32 routines?

I still think it does not work reliably.

(I have a background program that logs Windows start, shutdown, suspend,
resume and screensaver times automatically.  The screensaver is the one
I have the most trouble with and seems the least reliable)

John

 Not that tricky.

 function IsScreenSaverActive: Boolean; begin  
 SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, @Result, 0); end;

 -Original Message-
 From: delphi-boun...@delphi.org.nz 
 [mailto:delphi-boun...@delphi.org.nz]
 On Behalf Of John Bird

 1 - there is no reliable way I have found to detect when the 
 screensaver has actually started - if you know one please pass it on!

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] to Vista 64bit or not?

2009-08-06 Thread Conor Boyd
Can't answer your question directly, but Windows 7 RTM is available on
MSDN today I believe.
 
So it's already out.
 
Don't know if that makes your decision easier or not. ;-)



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Friday, 7 August 2009 9:11 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] to Vista 64bit or not?


Hi Guys.
I am building my new machine today...YAYand sinces I am getting a
pretty res. machine (quad core with 4 gig) which is replacing my VERY
faithful, but increasingly unreliable Pent 4 3GB, I am trying to decide
wether or not to install Vista 64bit since I have a copy of it.
The only reason I was thinking of it was that I can utilise the memory
so I can use Virtual machines etc.
I was thinking of Windows 7, but since its still pretty much beta, I
dont want to have to reinstall everthing again when it comes out.
 
Anyone got any ideas? Should I infact get say fedora 64bit (if there is
one) and install VMware etc?
 
Jeremy
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] to Vista 64bit or not?

2009-08-06 Thread Conor Boyd
Ummm, the 64-bit version will. ;-)



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Friday, 7 August 2009 10:29 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] to Vista 64bit or not?


does windows 7 see all the RAM?
 
Jeremy



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jolyon Smith
Sent: 7 August 2009 10:27
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] to Vista 64bit or not?



The real question though is how much benefit you actually got from that
extra 0.5 - 1GB ?

 

I'm guessing not much.  Not really.  But if you've got a system equipped
with 6GB or 8GB... at that point 64-bit makes perfect sense (and if
you're the sort of user that is loading a 4GB system so heavily that the
extra 0.5-1GB *does* make a difference, you're probably the sort of user
that would like 6-8GB of RAM anyway and you've already long since moved
on to 64-bit).

 

But at 4GB I really don't think there's much in it, so whilst there may
not be a specific reason to use 32-bit, there's also no great compelling
reason to use 64-bit either, and a few *potential* reasons not to (lack
of 64-bit support for XYZ, where XYZ varies from individual to
individual) potential complications when running (some) 32-bit software
etc etc.

 

+0.02

 

From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Sean Cross
Sent: Friday, 7 August 2009 10:12
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] to Vista 64bit or not?

 

Vista 32 will never see all 4 gb due to mapping issues with the video
card etc.  Under Vista 32, I got between 3 and 3.5 gb available on my
laptops.  Vista 64 got the lot.  How much you lose depends on your video
card memory.

 

Regards

 

Sean Cross
CIO

Catalyst Risk Management

 

From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jolyon Smith
Sent: Friday, 7 August 2009 10:01 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] to Vista 64bit or not?

 

aiui if you've only got 4GB of RAM then I don't think 64-bit is going to
make that much of a difference.  Of course, if you have the capacity to
go beyond 4GB of physical RAM and the intention to do so, then 64-bit
might be worthwhile.

 

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] StatusBar Hook?

2009-08-03 Thread Conor Boyd
Can't answer your question, sorry, but I'm curious...
 
GMT+11?  Is that the West Island or somewhere?



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jason Coley
 
Is there a way to hook a statusbar so that I know if a panel's text is
updated?

 

I thought maybe a message hook might work, but can't find a lot of info
on this one. The Statusbar I am trying to hook is the Outlook Statusbar,
I currently have a handle to the statusbar and check it periodically, I
think a message hook or something may be a lot nicer solution.

 

Regards from New Zealand (GMT+11)

 

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Delphi Mag

2009-07-09 Thread Conor Boyd
This may be the one you're talking about?
 
http://www.thedelphimagazine.com/
 
No longer active, but you can pay for the back-issues.
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Friday, 10 July 2009 11:44 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Delphi Mag


Hi. can someone reminde me of the URL to the Delphi mag. that is still
availible? I think Jeremy N. writes articles for it every now ans then.


Thanks, Jeremy

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Delphi Mag

2009-07-09 Thread Conor Boyd
Yup, I used to subscribe to it in PDF form.
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Friday, 10 July 2009 12:03 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Delphi Mag


Nope. this is another one.  I THIK its actually delivered by PDF rather
than an actual printed item.

Jeremy


On Fri, Jul 10, 2009 at 12:00 PM, Jolyon Smith jsm...@deltics.co.nz
wrote:


If you mean The Delphi Magazine I think that dried up back in
2007

 

I can however highly recommend the Total Collection that is
now available from the URL below, providing ALL the content from the
entire history of the magazine, including articles and source, with a
rudimentary but searchable front-end all on a USB stick.

 

http://www.thedelphimagazine.com/

 

 

From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jeremy Coulter 

Sent: Friday, 10 July 2009 11:44

To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Delphi Mag



 

Hi. can someone reminde me of the URL to the Delphi mag. that is
still availible? I think Jeremy N. writes articles for it every now ans
then.


Thanks, Jeremy


___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with
Subject: unsubscribe



___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Delphi Mag

2009-07-09 Thread Conor Boyd
Do you mean like this
(http://www.bobswart.nl/Weblog/Blog.aspx?RootId=5:273) where he says he
used to write a regular column for The Delphi Magazine? ;-)
 
Not saying you're wrong, but... ;-)
 
I'd be interested to know if there is another one, and to be fair Dr Bob
did indicate here (http://www.bobswart.nl/Weblog/Blog.aspx?RootId=5:669)
that he was looking for another avenue for publishing his articles.
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Friday, 10 July 2009 1:06 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Delphi Mag


No its not that one. I think Dr Bob writes articles for it too. Might
see if there is a link off his site.

Jeremy


On Fri, Jul 10, 2009 at 12:34 PM, Conor Boyd conor.b...@trimble.co.nz
wrote:


Yup, I used to subscribe to it in PDF form.
 
C.




From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jeremy Coulter

Sent: Friday, 10 July 2009 12:03 p.m. 

To: NZ Borland Developers Group - Delphi List

Subject: Re: [DUG] Delphi Mag


Nope. this is another one.  I THIK its actually delivered by PDF
rather than an actual printed item.

Jeremy


On Fri, Jul 10, 2009 at 12:00 PM, Jolyon Smith
jsm...@deltics.co.nz wrote:


If you mean The Delphi Magazine I think that dried up
back in 2007

 

I can however highly recommend the Total Collection
that is now available from the URL below, providing ALL the content from
the entire history of the magazine, including articles and source, with
a rudimentary but searchable front-end all on a USB stick.

 

http://www.thedelphimagazine.com/

 

 

From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jeremy Coulter 

Sent: Friday, 10 July 2009 11:44

To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Delphi Mag





 

Hi. can someone reminde me of the URL to the Delphi mag.
that is still availible? I think Jeremy N. writes articles for it every
now ans then.


Thanks, Jeremy


___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to
delphi-requ...@delphi.org.nz with Subject: unsubscribe




___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with
Subject: unsubscribe



___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Translating WinAPI C++ header - any suggestions?

2009-06-17 Thread Conor Boyd
Thanks for those suggestions, Todd.

Still struggling a bit with it, but that's been useful.

Cheers,

C. 

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Todd Martin
Sent: Wednesday, 17 June 2009 5:47 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Translating WinAPI C++ header - any suggestions?

Hi Conor

Check out this link
http://rvelthuis.de/articles/articles-convert.html

Have you considered using h2pas in Free Pascal?
or
SWIG for Delphi
http://www.wmhelp.com/download/swig-delphi.rar

Todd.

 I'm needing to call a Windows API function introduced in Vista from my

 Delphi app, but I don't have any Delphi headers which describe the 
 function.
 
 Related functions are already documented in the JEDI Windows API 
 library, but not this function.
 
 My C++ is almost non-existent, and I'm struggling to work out the 
 Delphi definitions that correspond to the function and it's parameter 
 as documented on MSDN.
 
From http://msdn.microsoft.com/en-us/library/aa814417.aspx
 
 NETIOAPI_API GetIpInterfaceEntry(
   __inout  PMIB_IPINTERFACE_ROW Row
 );
 
 typedef struct _MIB_IPINTERFACE_ROW {
   ADDRESS_FAMILY Family;
   NET_LUID   InterfaceLuid;
   NET_IFINDEXInterfaceIndex;
   ULONG  MaxReassemblySize;
   ULONG64InterfaceIdentifier;
   ULONG  MinRouterAdvertisementInterval;
   ULONG  MaxRouterAdvertisementInterval;
   BOOLEANAdvertisingEnabled;
   BOOLEANForwardingEnabled;
   BOOLEANWeakHostSend;
   BOOLEANWeakHostReceive;
   BOOLEANUseAutomaticMetric;
   BOOLEANUseNeighborUnreachabilityDetection;
   BOOLEANManagedAddressConfigurationSupported;
   BOOLEANOtherStatefulConfigurationSupported;
   BOOLEANAdvertiseDefaultRoute;
   NL_ROUTER_DISCOVERY_BEHAVIOR   RouterDiscoveryBehavior;
   ULONG  DadTransmits;
   ULONG  BaseReachableTime;
   ULONG  RetransmitTime;
   ULONG  PathMtuDiscoveryTimeout;
   NL_LINK_LOCAL_ADDRESS_BEHAVIOR LinkLocalAddressBehavior;
   ULONG  LinkLocalAddressTimeout;
   ULONG  ZoneIndices[ScopeLevelCount];
   ULONG  SitePrefixLength;
   ULONG  Metric;
   ULONG  NlMtu;
   BOOLEANConnected;
   BOOLEANSupportsWakeUpPatterns;
   BOOLEANSupportsNeighborDiscovery;
   BOOLEANSupportsRouterDiscovery;
   ULONG  ReachableTime;
   NL_INTERFACE_OFFLOAD_ROD   TransmitOffload;
   NL_INTERFACE_OFFLOAD_ROD   ReceiveOffload;
   BOOLEANDisableDefaultRoutes;
 }MIB_IPINTERFACE_ROW, *PMIB_IPINTERFACE_ROW;
 
 Among other bits, the bit I'm struggling with at the minute is the 
 ZoneIndices[ScopeLevelCount] field; I can't work out what size the 
 array is supposed to be.
 
 This is what I've defined so far, although I haven't worked out the 
 enums in the original C++ definition yet.  I'll be explicitly loading 
 the Windows DLL on Vista and getting the address of the new function 
 to call.
 
   PMIB_IPINTERFACE_ROW = ^MIB_IPINTERFACE_ROW;
   {$EXTERNALSYM PMIB_IPINTERFACE_ROW}
   _MIB_IPINTERFACE_ROW = record
 Family: ADDRESS_FAMILY;
 InterfaceLuid: NET_LUID;
 InterfaceIndex: NET_IFINDEX;
 MaxReassemblySize,
 InterfaceIdentifier,
 MinRouterAdvertisementInterval,
 MaxRouterAdvertisementInterval: Cardinal;
 AdvertisingEnabled,
 ForwardingEnabled,
 WeakHostSend,
 WeakHostReceive,
 UseAutomaticMetric,
 UseNeighborUnreachabilityDetection,
 ManagedAddressConfigurationSupported,
 OtherStatefulConfigurationSupported,
 AdvertiseDefaultRoute: LongBool;
 RouterDiscoveryBehavior: NL_ROUTER_DISCOVERY_BEHAVIOR;
 DadTransmits,
 BaseReachableTime,
 RetransmitTime,
 PathMtuDiscoveryTimeout: Cardinal;
 LinkLocalAddressBehavior: NL_LINK_LOCAL_ADDRESS_BEHAVIOR;
 LinkLocalAddressTimeout,
 ZoneIndices[ScopeLevelCount],
 SitePrefixLength,
 Metric,
 NlMtu: Cardinal;
 Connected,
 SupportsWakeUpPatterns,
 SupportsNeighborDiscovery,
 SupportsRouterDiscovery: LongBool;
 ReachableTime: Cardinal;
 TransmitOffload: NL_INTERFACE_OFFLOAD_ROD;
 ReceiveOffload: NL_INTERFACE_OFFLOAD_ROD;
 DisableDefaultRoutes: LongBool;
   end;
   {$EXTERNALSYM _MIB_IPINTERFACE_ROW}
   MIB_IPINTERFACE_ROW = _MIB_IPINTERFACE_ROW;
   {$EXTERNALSYM MIB_IPINTERFACE_ROW}
   TMibIpInterfaceRow = MIB_IPINTERFACE_ROW;
   

[DUG] Translating WinAPI C++ header - any suggestions?

2009-06-16 Thread Conor Boyd
Hi,

I'm needing to call a Windows API function introduced in Vista from my
Delphi app, but I don't have any Delphi headers which describe the
function.

Related functions are already documented in the JEDI Windows API
library, but not this function.

My C++ is almost non-existent, and I'm struggling to work out the Delphi
definitions that correspond to the function and it's parameter as
documented on MSDN.

From http://msdn.microsoft.com/en-us/library/aa814417.aspx

NETIOAPI_API GetIpInterfaceEntry(
  __inout  PMIB_IPINTERFACE_ROW Row
);

typedef struct _MIB_IPINTERFACE_ROW {
  ADDRESS_FAMILY Family;
  NET_LUID   InterfaceLuid;
  NET_IFINDEXInterfaceIndex;
  ULONG  MaxReassemblySize;
  ULONG64InterfaceIdentifier;
  ULONG  MinRouterAdvertisementInterval;
  ULONG  MaxRouterAdvertisementInterval;
  BOOLEANAdvertisingEnabled;
  BOOLEANForwardingEnabled;
  BOOLEANWeakHostSend;
  BOOLEANWeakHostReceive;
  BOOLEANUseAutomaticMetric;
  BOOLEANUseNeighborUnreachabilityDetection;
  BOOLEANManagedAddressConfigurationSupported;
  BOOLEANOtherStatefulConfigurationSupported;
  BOOLEANAdvertiseDefaultRoute;
  NL_ROUTER_DISCOVERY_BEHAVIOR   RouterDiscoveryBehavior;
  ULONG  DadTransmits;
  ULONG  BaseReachableTime;
  ULONG  RetransmitTime;
  ULONG  PathMtuDiscoveryTimeout;
  NL_LINK_LOCAL_ADDRESS_BEHAVIOR LinkLocalAddressBehavior;
  ULONG  LinkLocalAddressTimeout;
  ULONG  ZoneIndices[ScopeLevelCount];
  ULONG  SitePrefixLength;
  ULONG  Metric;
  ULONG  NlMtu;
  BOOLEANConnected;
  BOOLEANSupportsWakeUpPatterns;
  BOOLEANSupportsNeighborDiscovery;
  BOOLEANSupportsRouterDiscovery;
  ULONG  ReachableTime;
  NL_INTERFACE_OFFLOAD_ROD   TransmitOffload;
  NL_INTERFACE_OFFLOAD_ROD   ReceiveOffload;
  BOOLEANDisableDefaultRoutes;
}MIB_IPINTERFACE_ROW, *PMIB_IPINTERFACE_ROW;

Among other bits, the bit I'm struggling with at the minute is the
ZoneIndices[ScopeLevelCount] field; I can't work out what size the array
is supposed to be.

This is what I've defined so far, although I haven't worked out the
enums in the original C++ definition yet.  I'll be explicitly loading
the Windows DLL on Vista and getting the address of the new function to
call.

  PMIB_IPINTERFACE_ROW = ^MIB_IPINTERFACE_ROW;
  {$EXTERNALSYM PMIB_IPINTERFACE_ROW}
  _MIB_IPINTERFACE_ROW = record
Family: ADDRESS_FAMILY;
InterfaceLuid: NET_LUID;
InterfaceIndex: NET_IFINDEX;
MaxReassemblySize,
InterfaceIdentifier,
MinRouterAdvertisementInterval,
MaxRouterAdvertisementInterval: Cardinal;
AdvertisingEnabled,
ForwardingEnabled,
WeakHostSend,
WeakHostReceive,
UseAutomaticMetric,
UseNeighborUnreachabilityDetection,
ManagedAddressConfigurationSupported,
OtherStatefulConfigurationSupported,
AdvertiseDefaultRoute: LongBool;
RouterDiscoveryBehavior: NL_ROUTER_DISCOVERY_BEHAVIOR;
DadTransmits,
BaseReachableTime,
RetransmitTime,
PathMtuDiscoveryTimeout: Cardinal;
LinkLocalAddressBehavior: NL_LINK_LOCAL_ADDRESS_BEHAVIOR;
LinkLocalAddressTimeout,
ZoneIndices[ScopeLevelCount],
SitePrefixLength,
Metric,
NlMtu: Cardinal;
Connected,
SupportsWakeUpPatterns,
SupportsNeighborDiscovery,
SupportsRouterDiscovery: LongBool;
ReachableTime: Cardinal;
TransmitOffload: NL_INTERFACE_OFFLOAD_ROD;
ReceiveOffload: NL_INTERFACE_OFFLOAD_ROD;
DisableDefaultRoutes: LongBool;
  end;
  {$EXTERNALSYM _MIB_IPINTERFACE_ROW}
  MIB_IPINTERFACE_ROW = _MIB_IPINTERFACE_ROW;
  {$EXTERNALSYM MIB_IPINTERFACE_ROW}
  TMibIpInterfaceRow = MIB_IPINTERFACE_ROW;
  PMibIpInterfaceRow = PMIB_IPINTERFACE_ROW;

const
  iphlpapilib = 'iphlpapi.dll';

var
  HIpHlpApi: THandle = 0;
  GetIpInterfaceEntry: function(const pArpEntry: MIB_IPINTERFACE_ROW):
LongInt; stdcall;
  {$EXTERNALSYM GetIpInterfaceEntry}

Does anybody out there have suggestions or tips/tricks for translating a
function definition like this?

Many thanks,

Conor


___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Another Embarcadero article

2009-06-15 Thread Conor Boyd
I'm 100% with you on that one.

64bit would be a huge thing for us.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jolyon Smith
Sent: Tuesday, 16 June 2009 1:35 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Another Embarcadero article

In a nutshell:  To my mind, putting cross platform ahead of 64-bit
support is a mistake.

(note that I'm not saying that cross platform isn't a good idea or
ultimately worthwhile, just that 64-bit should come first!)

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Embarcadero article

2009-06-15 Thread Conor Boyd
Thanks for the clarification Malcolm...

Cheers,

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Malcolm Groves
Sent: Tuesday, 16 June 2009 2:49 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Embarcadero article

Hi guys,

Just to clarify, we're not doing cross platform and then Win64, we're
doing them in parallel (one of the benefits of an increased RD budget
under Embarcadero). Cross platform will make it to market earlier
however.

Mike Swindell covers it more in a comment on Marco's post here
http://blog.marcocantu.com/blog/delphi_cross_platform_anderson.html :

Crossplatform and 64bit are two separate projects running in parallel.
64bit is moving fast but will take longer to get to market than xplat.
64bit has many implications on the existing customer Delphi and VCL
Windows codebase. xplat is certainly a lot work (new compilers and VCL
framework) but has a different type of of impact and expectation on
existing code bases. ie we're more free to make breaking changes when
going cross platform than 64bit. 

I get that it's disappointing to some people, that's unfortunate, and we
looked long and hard at how we could do this any other way.
Unfortunately but any major roadmap decision is likely to be make some
people unhappy. We'll get them both out as soon as we can.

Cheers
Malcolm

CONFIDENTIALITY NOTICE: This email message is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the
sender by reply email and destroy all copies of the original message.


___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Anyone tried to access Developers Inc website lately? doesntseem to be active

2009-06-14 Thread Conor Boyd
http://www.developers-inc.co.nz/ http://www.developers-inc.co.nz/
works fine for me currently.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Monday, 15 June 2009 9:41 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Anyone tried to access Developers Inc website lately?
doesntseem to be active



___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Delphi 2007 Question

2009-06-09 Thread Conor Boyd
Umm John, Google is your friend.
 
http://gexperts.org/



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird
Sent: Wednesday, 10 June 2009 1:52 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Delphi 2007 Question


OK looks like I need to look at the GE Experts - anyone have a web link
(I have D2007)
 
Incidentally I remember hearing once the order of adding button events
to the source file was related to class completion - if you start a unit
with no procedures they get added in I think alphabetic order.   I do
notice that button events onclick events etc for different components do
end up near or next to each other which is neat.   Once there are other
procedures not in alphabetic order I am not sure what it does
thenIthink this is what people see.
 
John
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Delphi 2007 Question

2009-06-09 Thread Conor Boyd
I thought that was fair enough. ;-)

It had already been referred to elsewhere in the discussion as GExperts.

To be brutally honest, I would expect most Delphi developers to have
heard of GExperts; it's been around since 2001.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Neven MacEwan
Sent: Wednesday, 10 June 2009 2:09 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Delphi 2007 Question

Jeremy

Don't be sarky after all its GExperts not GE Experts which gives a lot
of stuff related to General electric having said that GE Experts
delphi would get you there
 On Wed, Jun 10, 2009 at 11:52 AM, John Birdjohnkb...@paradise.net.nz
wrote:
   
 OK looks like I need to look at the GE Experts - anyone have a web 
 link (I have D2007)
 

 Google is your friend.
 ___
 NZ Borland Developers Group - Delphi mailing list
 Post: delphi@delphi.org.nz
 Admin: http://delphi.org.nz/mailman/listinfo/delphi
 Unsubscribe: send an email to delphi-requ...@delphi.org.nz with 
 Subject: unsubscribe


   

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Delphi 2007 Question

2009-06-09 Thread Conor Boyd
I have 1.33B2 installed for both D2007 and RAD Studio 2009.

No problems to report.

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird
Sent: Wednesday, 10 June 2009 2:26 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Delphi 2007 Question

I know Google - mainly I was wanting to check that people here knew
there is 
a good D2007 version available.   Of the ones listed,

1.32 (D2007)
1.33 Beta 1
1.33 beta 2 (for D6-d2009)

Which ones would you guys who have used it recommend for D2007?

Any gotchas or things to watch out for?

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Detecting screensaver

2009-06-09 Thread Conor Boyd
Wouldn't surprise me if the preview button doesn't exhibit the same
behaviour.

Screensavers have to be written to respond explicitly to being run in
preview mode (they basically have to parent themselves to the window
handle of the preview window which is passed to them when they're
executed in Preview mode).

I believe your test is the correct approach, John (as backed up here:
http://stackoverflow.com/questions/510734/how-to-determine-that-a-screen
saver-is-running and with my own experience of writing a screensaver in
Delphi).

Rather than using the Preview button, you could easily rustle up a
little utility to kick the screensaver into life by broadcasting the
appropriate window message:
  Perform(WM_SYSCOMMAND, SC_SCREENSAVE, 0 );

HTH,

Conor

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird
Sent: Wednesday, 10 June 2009 3:38 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Detecting screensaver

I have seen that variant, but from what I saw this detects the
screensaver is set, not that it is active?

From the D7 win32 help:

SPI_GETSCREENSAVEACTIVE Determines whether screen saving is enabled.
The pvParam parameter must point to a BOOL variable that receives TRUE
if enabled, or FALSE otherwise.

In my tests the above always returns true, as I do have a screen saver
enabled, and it does not return a changing status if the screen saver is
on at the moment or not. (I was using the control panel screen saver
preview button to check this).

I am trying to detect if a screensaver is currently actually running

John

 I'm using SystemParametersInfo(SPI_GETSCREENSAVEACTIVE, 0, 
 @ATScreenSaverOn, 0); It works on Vista here

 Paul

 - Original Message -
 From: John Bird johnkb...@paradise.net.nz
 To: NZ Borland Developers Group - Delphi List delphi@delphi.org.nz
 Sent: Tuesday, June 09, 2009 7:30 AM
 Subject: [DUG] Detecting screensaver


 Does anyone know a reliable way to detect if the screensaver is on?  
 The way I have found references to on the web

 SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, @ATScreenSaverOn, 
 0);

 Note this is documented as Windows 95 only, which I am guessing why 
 it doesn't work (XP/Vista)

 The only other way I can think of is to try to find the full name of 
 the foreground program and see if it has a .SCR extension, but I am 
 not confident that would work.

 John

 ___
 NZ Borland Developers Group - Delphi mailing list
 Post: delphi@delphi.org.nz
 Admin: http://delphi.org.nz/mailman/listinfo/delphi
 Unsubscribe: send an email to delphi-requ...@delphi.org.nz with
Subject:
 unsubscribe



 ___
 NZ Borland Developers Group - Delphi mailing list
 Post: delphi@delphi.org.nz
 Admin: http://delphi.org.nz/mailman/listinfo/delphi
 Unsubscribe: send an email to delphi-requ...@delphi.org.nz with
Subject: 
 unsubscribe


___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Detecting screensaver

2009-06-09 Thread Conor Boyd
Re-reading this, I may have been getting confused between the little
preview window and hitting the preview button.

Regardless, it still wouldn't surprise me if a screensaver running from
the Preview button doesn't exhibit the same behaviour.  For example,
when I hit the Preview button on my work PC, my desktop doesn't get
cleared when the Preview runs.  My desktop does get cleared when the
screensaver is truly running.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Conor Boyd
Sent: Wednesday, 10 June 2009 4:04 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Detecting screensaver

Wouldn't surprise me if the preview button doesn't exhibit the same
behaviour.

Screensavers have to be written to respond explicitly to being run in
preview mode (they basically have to parent themselves to the window
handle of the preview window which is passed to them when they're
executed in Preview mode).

I believe your test is the correct approach, John (as backed up here:
http://stackoverflow.com/questions/510734/how-to-determine-that-a-screen
saver-is-running and with my own experience of writing a screensaver in
Delphi).

Rather than using the Preview button, you could easily rustle up a
little utility to kick the screensaver into life by broadcasting the
appropriate window message:
  Perform(WM_SYSCOMMAND, SC_SCREENSAVE, 0 );

HTH,

Conor

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Everyone aware of the Delphi roadmap presentationon 27thmay?

2009-05-28 Thread Conor Boyd
Hi Malcolm,

Thanks for kicking this series off for us, good to see it happening.

I didn't really have any issues with audio (dropped out for the odd
second here and there, but each drop-out was short enough that the
sentence was still understandable).  I thought it went very smoothly.

I'll look forward to seeing what other topics come up.

Personally, I still don't see what All Access has to offer my team, and
from that POV, my eyes glazed over for what seemed like the half of
Wednesday's webinar this week that was all 3 of the presenters pushing
All Access.  I appreciate others mileage may vary... ;-)

Regardless, please keep the webinars up; they're good to see.

Cheers,

Conor

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Malcolm Groves
Sent: Thursday, 28 May 2009 5:30 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Everyone aware of the Delphi roadmap presentationon
27thmay?

Thanks Leigh,

Glad to hear it was useful. I've got some feedback from a few people on
a couple of issues that we'll try and tighten up for next time. Did you
get the audio ok? That seems to have been an issue for a couple of
people.

We're planning/hoping to do a webinar every Wednesday at the same time.
This was the first, next week we have one on Database Performance
Optimisation, the one after that is an All Access overview. I'm
finalizing the topics/speakers for the next 6 weeks or so at the moment
and will hopefully publish them soon. I'm trying to get one during June
that covers the issues involved with bringing old code forward to the
Unicode VCL. Any other topic requests, let me know.

They will all be recorded and posted into a central place on the
Developer Network. I'll post a link once I have the recording from last
Wednesday's up there.

Cheers
Malcolm

CONFIDENTIALITY NOTICE: This email message is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the
sender by reply email and destroy all copies of the original message.


___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Everyone aware of theDelphi roadmap presentationon 27thmay?

2009-05-28 Thread Conor Boyd
Thanks Malcolm, good to see you around again... 

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Malcolm Groves
Sent: Friday, 29 May 2009 11:26 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Everyone aware of theDelphi roadmap presentationon
27thmay?

Thanks for the feedback everyone,

[snip]

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Capturing outputDebugString API

2009-05-21 Thread Conor Boyd
DebugView from SysInternals.
 
No wheel-reinventing required.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Friday, 22 May 2009 9:58 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Capturing outputDebugString API


Hi all.

Is there a way to capture outputDebugString other than using the
EventLog?
The EventLog is fine, UNTIL, you want to copy an output, so I thought I
might write my own little capture tool.

Anyone done/seen anything like this?
I assume since its an API call I just need to listen to a message?


Thanks, Jeremy


___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Capturing outputDebugString API

2009-05-21 Thread Conor Boyd
Yup, as Jeremy has indicated, only one debugger can be attached to
that output at any one time.
 
Does that mean it's working for you now?
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Friday, 22 May 2009 10:48 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Capturing outputDebugString API


yes I am. 

jeremy


On Fri, May 22, 2009 at 10:45 AM, Jeremy North jeremy.no...@gmail.com
wrote:


Were you running your app under the debugger?


On Fri, May 22, 2009 at 8:41 AM, Jeremy Coulter
jscoul...@gmail.com wrote:
 I did try that, but it didint seem to work which I found
strange.
 Maybe I did it wrong. I just ran it then ran my app.

 Jeremy

 On Fri, May 22, 2009 at 10:37 AM, Conor Boyd
conor.b...@trimble.co.nz
 wrote:

 DebugView from SysInternals.

 No wheel-reinventing required.
 
 From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz]
 On Behalf Of Jeremy Coulter
 Sent: Friday, 22 May 2009 9:58 a.m.
 To: NZ Borland Developers Group - Delphi List
 Subject: [DUG] Capturing outputDebugString API

 Hi all.

 Is there a way to capture outputDebugString other than
using the
 EventLog?
 The EventLog is fine, UNTIL, you want to copy an output, so I
thought I
 might write my own little capture tool.

 Anyone done/seen anything like this?
 I assume since its an API call I just need to listen to a
message?


 Thanks, Jeremy


___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] [Off topic] Senior developer

2009-05-12 Thread Conor Boyd
:-D



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Richard Bullin
Sent: Wednesday, 13 May 2009 3:23 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] [Off topic] Senior developer



Unfortunately the only way you can become a senior developer is by
providing this user group with a copy of your birth certificate. Only
after the group agrees that you are at least 70 years old can you start
using the distinguished title of senior developer.

 

From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Leigh Wanstead
Sent: Wednesday, 13 May 2009 3:05 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] [Off topic] Senior developer

 

Good afternoon,

 

May I ask how to become a Senior developer? Is that specified in the
employment contract? Will this needs to be discussed in the yearly
review? I thought that senior developer title seems attract more salary,
right? ;-)

 

Have a nice day

 

Regards

Leigh

 

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Can anyone test this for me?

2009-05-11 Thread Conor Boyd
Would be helpful if you would provide the link or describe the easiest
way to find it.  The site seems to default to only showing 2009.
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Richard Vowles
Sent: Tuesday, 12 May 2009 9:59 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Can anyone test this for me?


Can people try downloading the RAD Studio 2007 ISO image from the
Codegear website - just try the first 500k or so. I need to know if (a)
you can get it and (b) the download speed. 

I have another Delphi user unable to select it 90% of the time and (b)
the download speed for both of us is really dreadful.

Ta
Richard

-- 
---
Richard Vowles, Technical Advisor
Developers Inc Ltd
web. http://www.developers-inc.co.nz
ph. +64-9-3600231, mob. +64-275-467747, fax. +64-9-3600384
skype. rvowles, LinkedIn, Twitter



___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Can anyone test this for me?

2009-05-11 Thread Conor Boyd
Found it.
 
Fine for me.  I'm getting upwards of 1500K/sec for the Dec 2007 ISO.
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Richard Vowles
Sent: Tuesday, 12 May 2009 9:59 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Can anyone test this for me?


Can people try downloading the RAD Studio 2007 ISO image from the
Codegear website - just try the first 500k or so. I need to know if (a)
you can get it and (b) the download speed. 

I have another Delphi user unable to select it 90% of the time and (b)
the download speed for both of us is really dreadful.

Ta
Richard

-- 
---
Richard Vowles, Technical Advisor
Developers Inc Ltd
web. http://www.developers-inc.co.nz
ph. +64-9-3600231, mob. +64-275-467747, fax. +64-9-3600384
skype. rvowles, LinkedIn, Twitter



___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

[DUG] Elevating Delphi code in Vista

2009-05-06 Thread Conor Boyd
Hi all,
 
I'm about to pull a chunk of code out of my Delphi app and bundle it
into another binary so that I can elevate that chunk of functionality on
Vista, while leaving the main app running unelevated.
 
I've seen a number of references to the blog posting linked below which
I can't get access to (when I visit it, it says I haven't been invited
to read that blog).  I believe this article to be describing how to
package this code up into a COM DLL and elevate my administrative
functionality that way.
 
http://developersoven.blogspot.com/2007/02/leveraging-vistas-uac-with-de
lphi-part.html
 
Can anybody here provide more information on this process?  I know how
to write COM DLLs no problem, but I'm unsure about whether there are
other issues involved here?
 
Or does anybody have an alternative suggestion for functionality
requiring elevation on Vista?  The other alternative I've got is just to
bundle my code into a simple executable with an elevated manifest
resource compiled into it, and simply ShellExec that.
 
(The functionality in question is simply writing value(s) to our key
in HKLM in the registry).
 
Thanks,
 
Conor
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Elevating Delphi code in Vista

2009-05-06 Thread Conor Boyd
Thanks for the pdf link Rob, that's very useful.
 
The main issue I'm trying to work out is our registration of users
authorised to use our software.  This writes some registration keys
into HKLM.  Currently, on Vista, due to the registry virtualisation that
happens for unelevated apps, each user only succeeds in registering our
software for themselves, rather than for anyone using the PC.
 
I don't think I've got my Google search terms quite right, because I've
been struggling to find the details on the COM option.
 
Thanks,
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Thursday, 7 May 2009 3:52 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Elevating Delphi code in Vista


I have never really moved from INI files to be honest so our app.
running on Vista was pretty straight forward EXCEPT that it didnt like
running under the c:\program files\ folder for some reason. I didnt
ever try to find out I must admit, but other than that the conversion
was fine.

On that not, anyone tried Windows 7 yet? I am liking it so far.

Jeremy


On Thu, May 7, 2009 at 3:34 PM, Robert martin r...@chreos.co.nz wrote:


Hi

I cant find the resource I last used but there are heaps of web
pages about this.  See link below for the codegear one hat has some
information that may be of use.


http://pascalfonteneau.developpez.com/articles/delphi/vista/uac/VistaUAC
andDelphi.pdf


Some time (before Vista) we made the jump out of the registry
and back to ini files and have never regretted it !  Certainly made
Vista enabling our app pretty easy :)

Cheers
Rob


 



Conor Boyd wrote: 

Hi all,
 
I'm about to pull a chunk of code out of my Delphi app
and bundle it into another binary so that I can elevate that chunk of
functionality on Vista, while leaving the main app running unelevated.
 
I've seen a number of references to the blog posting
linked below which I can't get access to (when I visit it, it says I
haven't been invited to read that blog).  I believe this article to be
describing how to package this code up into a COM DLL and elevate my
administrative functionality that way.
 

http://developersoven.blogspot.com/2007/02/leveraging-vistas-uac-with-de
lphi-part.html
 
Can anybody here provide more information on this
process?  I know how to write COM DLLs no problem, but I'm unsure about
whether there are other issues involved here?
 
Or does anybody have an alternative suggestion for
functionality requiring elevation on Vista?  The other alternative I've
got is just to bundle my code into a simple executable with an elevated
manifest resource compiled into it, and simply ShellExec that.
 
(The functionality in question is simply writing
value(s) to our key in HKLM in the registry).
 
Thanks,
 
Conor




___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to
delphi-requ...@delphi.org.nz with Subject: unsubscribe


___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with
Subject: unsubscribe



___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] [OFF-TOPIC] MSSQL 2000/2005/2008 Stored procedure to parse xml

2009-04-22 Thread Conor Boyd
I don't know how you've done it in Delphi, but for parsing XML, I'd use
xpath syntax searching (e.g. via the MSXML library or similar).

Maybe you could try googling for xpath and sql stored procedures?

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Leigh Wanstead

I got data like this in the sql column. How do I parse inside sql stored
procedure to get the value me? Any code please. I have no trouble to
parse the value in Delphi 7. But I want to see how can I do it inside
stored procedure?

hello
hi me /hi
/hello

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] test?

2009-04-22 Thread Conor Boyd
Don't start any of that hamster talk over here. ;-)



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Wednesday, 22 April 2009 7:02 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] test?


 
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] [OFF-TOPIC] memory issues

2009-04-16 Thread Conor Boyd
For testing on slower PCs, here's one thought of mine.
 
I use VirtualPC for doing a lot of testing.  While I accept it's
difficult to quantify how much slower a VPC is rather than my desktop,
it is most definitely slower.  Plus you have the ability to control the
memory available to the VPC.
 
Using Virtual Server would probably give you even more control, since
you can throttle the processor availability for a VPC as well.
 
As well as VirtualPC for testing on my dev box, I use virtual machines
on a Virtual Server for build PCs, etc.  The change to the Delphi
license a couple of versions ago just made that scenario more legit. ;-)
 
Cheers,
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Friday, 17 April 2009 10:46 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] [OFF-TOPIC] memory issues


I agree Kyley, you do need to re-invest in your Hardwarebetter you
have it than the taxman take your $$but there is one thing that you
need to keep in mind.
Whilst your software runs at an amazing pace on your PC, the customer
may not have such a speedy machine and your software may run like a
one legged dog.
If you are developeing for a single client you can say go update
your hardware, but when developing for a mass-market (well as mass as
you can get in NZ) you may have people trying to run your kick-ass
software on a PIII 700 or something.
I always try to take this into consideration, and hence why I still ahve
a 3year old PC. If it flys on my machine I have written nice-ish tight
code and it will be fine on other PC's.
However, when customers have better machines than you, its time to do
some investment :-) Which is what I am doing at the moment. I just have
to decide what to get.!

As for 2 monitors, I tried that a few years back, but I have to say it
just annoyed me, so I have go back to a big single monitor. I guess its
about what works for me and I know others will say its mad, bit honestly
it doenst bother me having 1 monitor.

Jeremy


On Fri, Apr 17, 2009 at 10:33 AM, Sean Cross
sean.cr...@catalystrisk.co.nz wrote:


If you want two monitors on a laptop, look at
http://www.matrox.com/graphics/en/products/gxm/dh2go/

Personally I don't think I will go back to using a desktop any
time soon.  My combination of 24 monitor and 17 laptop works fine.
Big screen for dev, small screen for email, word etc,

Regards
 
Sean Cross
CIO
Catalyst Risk Management



-Original Message-
From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Alister Christie
Sent: Friday, 17 April 2009 10:20 a.m.
To: NZ Borland Developers Group - Delphi List

Subject: Re: [DUG] [OFF-TOPIC] memory issues


I'd like to plug 2 monitors into my laptop, but not supported -
a 30
inch screen would be good to - but a bit expensive at the
moment, plus
it requires dual dvi (as far as I understand).  I think I'll get
a
desktop for my next dev machine for just this reason.

Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington


t...@delphi.org.nz with Subject: unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with
Subject: unsubscribe



___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] [OFF-TOPIC] memory issues

2009-04-16 Thread Conor Boyd
Ditto for the same reasons.

MMTaskBar or UltraMon.  Essential for multiple monitors. 

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Phil Scadden

 As for 2 monitors, I tried that a few years back, but I have to say it

 just annoyed me, so I have go back to a big single monitor. I guess 
 its about what works for me and I know others will say its mad, bit 
 honestly it doenst bother me having 1 monitor.

Well I would say its time to try again. I have big wide at home, 2 at
work. At home, there is always fiddling to size windows so have
applications side by side. With two monitors, properly setup  (and I
highly recommend MMTaskbar - free or pro), then easy to just maximise
application to each monitor and to flip from one side to another.

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] [OFF-TOPIC] memory issues

2009-04-16 Thread Conor Boyd
Quite the opposite.
 
We're all being so productive with our dual monitors that we've been too
busy to contribute any more. :-P
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Friday, 17 April 2009 2:25 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] [OFF-TOPIC] memory issues


its gone very quite all of a suddenhas everyone with dual monitors
had to go have a lie-down to rest their necks ?   :-D

Jeremy


On Fri, Apr 17, 2009 at 12:07 PM, David Brennan
dugda...@dbsolutions.co.nz wrote:


The 2 * 30 inch screens sounded too much to me too although
obviously if it
works for someone then go for it!

With screens I find it is a bell curve, more is most definitely
best, but
only up to a point, then the extra space actually becomes
distracting. With
my 24 screen at work (screen #2, screen #1 is my laptop screen)
I initially
tried it vertical on the basis that I am writing/scrolling
vertical lists of
code but it was just huge... my eyes couldn't comfortably track
up and down
that large an angle. Left to right is less of an issue but even
then get too
many/too wide screens wrapped around and it just gets too hard
to use the
extreme left and rights.

I haven't tried it but imagine 3 screens being the maximum I
could use, one
large one (eg 24 widescreen, probably no more) in centre, and
two smaller
ones (eg 19 5x4 ratio) either side.

My 2c.


-Original Message-
From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] On

Behalf Of Alister Christie
Sent: Friday, 17 April 2009 11:24 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] [OFF-TOPIC] memory issues

I think with 2 30 inch screens you'd get neck strain.  I've
heard of
people having a 30 inch screen and two smaller screens rotated
either
side (so that their width matches the height of the big screen)
- which
means that you don't have a gap directly in front of you.

I have a 26 inch screen at home and this was as large as I could
justify
to myself for the price.  It has a 21 inch CRT beside it, but I
haven't
felt the need to use it for awhile (not doing much coding on
that
computer lately)

Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington



Leigh Wanstead wrote:
 If money is not an issue, I think two 30 inch lcd monitors is
the way
 to go ;-)

 I only got one at home to look at my photos. It is amazing. I
used a
 spyder to adjusted the color. I am programming c at home using
gcc
 which is great to look at everything on that 30inch lcd
monitor.

 Have a nice day

 Regards
 Leigh

 -Original Message-
 *From:* delphi-boun...@delphi.org.nz
 [mailto:delphi-boun...@delphi.org.nz]*on Behalf Of *Kyley
Harris
 *Sent:* Friday, 17 April 2009 9:55 a.m.
 *To:* NZ Borland Developers Group - Delphi List
 *Subject:* Re: [DUG] [OFF-TOPIC] memory issues

 id never work on that little thing.. dvd player.. I have a
Quad
 Core with 2 22 montiors running 1600x1050

 On Fri, Apr 17, 2009 at 9:50 AM, Alister Christie
 alis...@salespartner.co.nz
mailto:alis...@salespartner.co.nz
 wrote:

 except you'd go blind if you had to do any real dev
work on
 because of
 the small screen.  I now plug an external 24 inch
screen into
 my laptop
 for a similar reason (fewer headaches).  The laptop
does have
 a 17 inch
 screen but at 1920x1200 things are a bit small.  I
remember
 when I was
 first programming in Delphi on a 14 (maybe it was 15)
inch
 monitor - my
 how things have changed.

 Alister Christie
 Computers for People
 Ph: 04 471 1849 Fax: 04 471 1266
 http://www.salespartner.co.nz
 PO Box 13085
 Johnsonville
 Wellington



 Kyley Harris wrote:
  I have one of those $500 Asus EEE computers that
runs
 windows XP on
  256MB of ram, and a 4GB SSD.. takes 25seconds to
boot up..
 way faster
  than any 

Re: [DUG] BDS.exe memory issues

2009-04-15 Thread Conor Boyd
It uses a fair chunk of memory, but I don't have issues with it.
 
Currently sitting at half a gig of mem (FF at 346MB).



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Thursday, 16 April 2009 11:16 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] BDS.exe memory issues


Does anyone else get issues with BDS.exe (delphi 2007) using a HEAP of
memory?
at the moment its sitting on 307mb of mem usage !

Admittedly my current machine only has 2GB (new machine has been
orderedYAY) but seriously, thats HEAPS.
In saying that, I notic that FireFox is sitting on 131mb too.

just wondered if this is a common issue, and if there is a solution to
it or not.


Jeremy


___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] [OFF TOPIC] Internet connection is not stable

2009-04-06 Thread Conor Boyd
Yeah, TelstraClear all the way.  But I'm fortunately enough to live in
their cable area.  Their cable service rocks.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Tuesday, 7 April 2009 9:13 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] [OFF TOPIC] Internet connection is not stable


As they say on MythBusters Theres ya problem  I didtech Xtra ages and
ages ago for this very reason.
I went back to TelstraClear (just for internet) and I think my record is
57days in a row oline and an average of 40 days with no drop outs.

However, it could also be your filter or router. e have had some linksys
routers do weired things. We put another router in and the sites have
been fine.

Jeremy


On Tue, Apr 7, 2009 at 8:38 AM, Leigh Wanstead lei...@softtech.co.nz
wrote:


Good morning,
 
My internet connection at home is not very stable i.e. lots of
timeout connection. I am with Xtra. How is your connection? Where can I
find xtra service page to say which area internet is broken etc?
 
TIA
 
Have a nice day
 
Regards
Leigh

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with
Subject: unsubscribe



___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] [OFF TOPIC] Internet connection is not stable

2009-04-06 Thread Conor Boyd
I just read that Oz is about to invest A$43bn in broadband
infrastructure: http://news.bbc.co.uk/2/hi/asia-pacific/7986918.stm
 
Fibre-to-the-home for 90% of Australian homes...
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Multi monitor question

2009-03-30 Thread Conor Boyd
poScreenCenter is the one you want.
 
I can't off the top of my head think of a scenario where poDesktopCenter
is actually useful.
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird
Sent: Tuesday, 31 March 2009 11:11 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Multi monitor question


a question about multi monitors - as the help is a bit vague about the
form property Position.  In D7, D2007 there are these 2 options:
 
poDesktopCenter
poScreenCenter
 
from the help:
 
poScreenCenter The form remains the size you left it at design time, but
is positioned in the center of the screen. In multi-monitor
applications, the form may be moved from this center position so that it
falls entirely on one monitor, as specified by the DefaultMonitor
property. 
 
poDesktopCenter The form remains the size you left it at design time,
but is positioned in the center of the screen. No adjustments are made
for multi-monitor applications.
 
 
I presume the normal way people use dual monitors is to have the desktop
continue onto the second monitor?
 
Question - With a dual monitor , which one puts the form in the middle
of the first monitor?  I haven't tried it as my external  monitor is
currently in another city and so its not much use.  That help is vague
enough I wouldn't be sure until I tried it.   But for future
compatibility it would be nice to know...
 
John
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] [DUG-Offtopic] new PC

2009-03-30 Thread Conor Boyd
Nearly, but by the time I could afford one, I got a ZX Spectrum +3
instead!
 
Built-in tape drive, etc.
 
I remember those 16kb expansion packs tho'.  Wobbly upright things IIRC.
Sort of thing you had to prop upright/wedge in with a piece of lego or
similar!
 
Indeed, those were the days...



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Tuesday, 31 March 2009 12:34 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] [DUG-Offtopic] new PC


ok, here we go then...  who had a a ZX81 then eh??  better stil who
had a ZX81 with a 16kb expansion pack ??   (apart from me)

Jeremy



On Tue, Mar 31, 2009 at 12:22 PM, Phil Scadden p.scad...@gns.cri.nz
wrote:



 As a Schlumerger Trainee I used a PDP 11/23 but I think you
will all


I have fond memories of the PDP as well. The original vax was
shared
with all of DSIR. We had PDP that was the local computer till
we got
our vax in 1985. However,

 have to take a bow to my ex business partner Lawrence
Wilkinson as to his story with an IBM 360 see here


Great story.


--
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland
St,
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64
3 477 5232

Notice: This email and any attachments are confidential. If
received in error please destroy and immediately notify us. Do not copy
or disclose the contents.

___

NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with
Subject: unsubscribe



___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Need help in locating exe in task manager

2009-03-15 Thread Conor Boyd
If I understand correctly, you're wanting some code to search for an
application in the list of running processes?
 
EnumWindows is the API function you're probably looking for.
 
Here's an article:
http://delphi.about.com/od/windowsshellapi/l/aa080304a.htm
 
HTH,
 
Conor



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Vikas...
Sent: Saturday, 14 March 2009 9:42 p.m.
To: delphi@delphi.org.nz
Subject: [DUG] Need help in locating exe in task manager


Hi,

I am running bit trouble in my application. Is there anyways i can find
whether my application is still under process window in task manager.

But that should support all windows platform. I think i got some
function but that said it don't support windows NT.


Any clues?

I will appreciate your help

Thanks
Cheers
Vik


___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Delphi 7 to Delphi 2009

2009-02-24 Thread Conor Boyd
Hey all,

I came across references this morning to Marco Cantu's 2009 Handbook
being available as a PDF on the CodeGear website to registered D2009
users.

I've downloaded it, haven't started reading it yet, but I note it has
about 70 pages on Unicode for a start.

HTH,

Conor

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Delphi 7 to Delphi 2009

2009-02-24 Thread Conor Boyd
http://www.lulu.com/en/about/firsttime.php?cid=en_tab_demo

It's basically a website that allows you to publish your own books...

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Leigh Wanstead
Sent: Wednesday, 25 February 2009 2:25 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Delphi 7 to Delphi 2009

May I ask what is LuLu?

Have a nice day

Regards
Leigh


-Original Message-
From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz]on Behalf Of Jeremy North
Sent: Wednesday, 25 February 2009 1:54 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Delphi 7 to Delphi 2009


It is unfortunate that the shipping costs for LuLu are so high to get
anything delivered over this way.

You can't print the free book (which you could with Dr Bob's PDF's you
buy off LuLu).

On Wed, Feb 25, 2009 at 11:46 AM, Conor Boyd conor.b...@trimble.co.nz
wrote:
 Hey all,

 I came across references this morning to Marco Cantu's 2009 Handbook 
 being available as a PDF on the CodeGear website to registered D2009 
 users.

 I've downloaded it, haven't started reading it yet, but I note it has 
 about 70 pages on Unicode for a start.

 HTH,

 Conor

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Delphi 7 to Delphi 2009

2009-02-24 Thread Conor Boyd
Yes, I started reading the first section at lunchtime, and my head hurts
(maybe I'm only 8-bit).

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Alister Christie
Sent: Wednesday, 25 February 2009 2:49 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Delphi 7 to Delphi 2009

I've read Bob Swarts book - and found it quite good.  Very handy that it
is available as a printable pdf, shipping costs suck to NZ.  I also
purchased Marco's book (I'm not big on reading large quantities of text
on a screen).  I've just finished the first few chapters on unicode -
and I now know way more than I need to about UTF-blah, code points and
stuff than I hope I'll ever need to.

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] People see this?????

2009-02-18 Thread Conor Boyd
Ditto.

Delphi 2007 is definitely better than any of it's predecessors, and
although we've got 2009, we haven't found the time to make the move yet.

We're still holding out for Win64 support though.  We'd move a lot
quicker to a later version if that was included. ;-)

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Alister Christie
Sent: Thursday, 19 February 2009 2:46 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] People see this?

I suspect that you'd never be convinced but...
http://edn.embarcadero.com/article/39136
I don't think I'd happily go back to D7.  I'm currently using D2007.  
I'd be using D2009, but I've been procrastinating about converting all
the code over.


Leigh Wanstead wrote:
 Frankly speaking, I see Delphi 7 is excellent enough and no need to 
 upgrade.
  

 -Original Message-
 [mailto:delphi-boun...@delphi.org.nz]*on Behalf Of *Paul A Norman

  . . .   Offered in four levels of access to different sets of
 tools, *_pricing begins at $2,250_* for a Bronze level access
 *_for a single-user workstation license_*. 
  
 Did I miss something, or is the developmnent world not needing
 more sensible pricing structures now that the rest of the world
 (who pays your contracts) is suffering a series of economic
problems?
  
 2009/2/17 Conor Boyd conor.b...@trimble.co.nz
 mailto:conor.b...@trimble.co.nz

 Yes, I saw it.
  
 This is the Delphi list, though (i.e. focussed on one dev
tool).
  
 What benefit does this scheme provide for e.g. small teams who
 only use one Embarcadero product?

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] People see this?????

2009-02-16 Thread Conor Boyd
Yes, I saw it.
 
This is the Delphi list, though (i.e. focussed on one dev tool).
 
What benefit does this scheme provide for e.g. small teams who only use
one Embarcadero product?
 
C.



From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Richard Vowles
Sent: Tuesday, 17 February 2009 4:18 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] People see this?


http://www.infoworld.com/article/09/02/15/Embarcadero_offers_on_demand_t
ools_access_1.html

-- 
---
Richard Vowles, Technical Advisor
Developers Inc Ltd
web. http://www.developers-inc.co.nz
ph. +64-9-3600231, mob. +64-275-467747, fax. +64-9-3600384
skype. rvowles, LinkedIn, Twitter



___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Getting command lines of all open programs

2009-02-12 Thread Conor Boyd
John,

Rather than enumerating windows, for this I think you'll want to
enumerate processes instead.

With a quick google for enumerate windows processes I found some leads
you could pursue (including this one:
http://www.codeproject.com/KB/threads/enumprocnt5.aspx)

It's definitely relatively easy to get a list of running process ids
(PIDs), and after that I presume there will be some function you can
call to tell you all you need to know about a specific process.

I presume what you want to do is possible since, for example,
Sysinternals' Process Explorer displays the commandline for each
process.

Cheers,

Conor

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird

Is there a way to make a list of command lines of all open program
windows?

I have a utility that already captures the title bar of all open program
windows - I use it when I suspend my laptop in case Windows won't resume
(which it often doesn't) so I can know what windows were open.

The next neat addition would be to have the command lines, so I can then
have an option to reopen the programs that were open last timenow
that would be neat eh?

I remember seeing once a Delphi demo example of a task-manager like
program which probably had stuff like this, but haven't been able to
find it...

FYI here is the essentials of how I find the open program windows, in
case someone can see how to extend it a littlethe ideal would be to
make a second string list of the matching command lines.  (It gets the
titles of all open windows and writes them into a memo and a disk file).

//http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_
21550337.html
procedure TfrmATMore.ATMakeWindowList;
var
 TopWindow   : HWND;
 WinName : array[0..Max_Path] of Char;
 x   : Integer;

  function GetAllWindows(Handle: HWND; NotUsed: Pointer): Boolean;
stdcall;
  var
   temp,
   pt : hwnd;
  begin
Result := True;

//Get parent of the window
Temp:=Handle;
repeat
 pt:=Temp;
 Temp:=GetParent( Temp );
until (Temp=0);

if IsWindowVisible(pt) then begin
  //Just add without duplicates
  if frmATMore.WindowList1.IndexOf(Pointer(pt))=-1 then
frmATMore.WindowList1.Add(Pointer(pt));
end;
  end;

begin
  TopWindow   := Handle;
  WindowList1 := TList.Create;
  Memo1.Lines.Clear;
  memo1.Lines.Add(xfAdate+spc+xfaTime+' Windows open are:');

  try
If NOT EnumWindows(@GetAllWindows,Longint(@TopWindow)) then
RaiseLastOsError;

for x := 0 to WindowList1.Count - 1 do
begin

  GetWindowText(HWND(WindowList1[x]),
WinName,
SizeOf(WinName) - 1);

  if WinName'' then memo1.Lines.add(WinName);
end;
  finally
WindowList1.Free;
  end;
  memo1.Lines.add('__');

 ..
  memo1.lines.SaveToFile(ATSaveWindowsNamesFile);
end;

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Animated progress Throbber

2009-02-10 Thread Conor Boyd
In the past I've done something along these lines (and have described it
as a throbber too!) by placing a button with a lightbulb icon (or
similar) on the form (or in my case, on a panel on a status bar) and
having a timer make it visible and invisible every half second.

The reason I used a button was so the user could click on it for more
detailed progress info.

Not a particularly nicely self-contained approach, but I never got round
to turning into a component or similar.

You could have a look at the JVCL libraries; maybe they've got
something?  We've used things like their toast windows to nice effect.

C.

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird
Sent: Wednesday, 11 February 2009 4:09 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Animated progress Throbber

Is there any Delphi equivalent of a throbber?   This is used when
showing 
progress when the total length if a task in progress is not known so its
useful to show something is happening. and is usually a small animated
icon.

Would be nice to have such a component to place on a foirm.

Used a lot outside of Delphi - Examples are

-IE7 when page loading - the animated rotating circle whown on a tab
header while a page is loading, and gets replaced with the sites icon
when done.
-Firefox similar
-Vista gives a progress bar with the highlight swishing along it but not
changing length of the progress bar, also the animated circle mouse
cursor.
-Older versions of IE used to have an animated flag that waved while a
page was loading - remember?

(This visual component is called a throbber in browser circles).

If I know the length then I can use a ProgressBar, but one does not
always...and the Vista progress bar only shows on Vista of course.

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] test

2009-01-05 Thread Conor Boyd
Seems to have worked Paula ;-D 

-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of del...@paulanorman.info
Sent: Monday, 5 January 2009 11:08 p.m.
To: delphi@delphi.org.nz
Subject: [DUG] test

Just a test

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


[DUG] Delphi .NET Obfuscation

2008-12-18 Thread Conor Boyd
Hi all,

Just wondering if anybody has any opinions or suggestions on obfuscating
Delphi (RAD Studio) 2007 .NET assemblies?

Part of my team have been working on such an assembly and are thinking
they need to obfuscate it.

I know there are differing opinions on the merits of bothering to
obfuscate assemblies, but I don't have direct experience myself, and I
wondered if anybody wanted to comment specifically on obfuscation from a
Delphi POV.

Cheers (and have a happy Christmas break).

Conor

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Detecting braodband connection

2008-10-12 Thread Conor Boyd
I've used this function in the past with success on dial-up.

http://www.garystimson.co.uk/delphi.html#18

HTH,

Conor

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Robert martin

I have an app that successfully checks for updates and automatuically
updates itself.  However for modem users I don't want it to
automatically bring up the dial up screen each time I start the app.  I
would like to detect the lack of broadband and bring up a prompt before
attempting to update.

Any suggestions?

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe


Re: [DUG] Detecting braodband connection

2008-10-12 Thread Conor Boyd
Yeah, I think the other guys are complicating things... ;-)

Hope it works for you.

Cheers,

C. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Robert martin

Wow that routine looks perfect !

Thanks Conor :)

Conor Boyd wrote:
 I've used this function in the past with success on dial-up.

 http://www.garystimson.co.uk/delphi.html#18

 HTH,

 Conor

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]
 On Behalf Of Robert martin

 I have an app that successfully checks for updates and automatuically 
 updates itself.  However for modem users I don't want it to 
 automatically bring up the dial up screen each time I start the app.  
 I would like to detect the lack of broadband and bring up a prompt 
 before attempting to update.

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe


Re: [DUG] Any good IT recruitment agencies?

2008-10-02 Thread Conor Boyd
I haven't been involved directly, but FWIW I know Trimble simply uses
Seek and RealContacts (www.realcontacts.com) when advertising vacancies
in general.
 
I got my current role about 3 years ago through RealContacts.
 
HTH,
 
C.



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Sean Cross
Sent: Friday, 3 October 2008 1:11 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Any good IT recruitment agencies?



Any good IT recruitment agencies out there for Delphi developers?

 

Regards

 

Sean Cross
CIO

 

Catalyst Risk Management
PO Box 230
Napier 4140
DDI: 06-8340362
Mobile: 021270 3466

 

Visit us at http://www.catalystrisk.co.nz
http://www.catalystrisk.co.nz/ 

 

Offices in Auckland, Napier, Wellington  Christchurch

 

Disclaimer:
The information contained in this document is confidential to the
addressee(s) and may be legally privileged. Any view or opinions
expressed are those of the author and may not be those of Catalyst Risk
Management. No guarantee or representation is made that this
communication is free of errors, viruses or interference. If you have
received this e-mail message in error please delete it and notify me.
Thank you.

 

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Re: [DUG] HTTP Upload Progress

2008-09-17 Thread Conor Boyd
Here's my reply to your original request earlier in the week.
 
I've used the Indy library that comes with Delphi to do HTTP uploads
with progress notification.  Works quite well.
 
E.g.
 
  FHTTPClient := TIdHTTP.Create(nil);
  with FHTTPClient do begin
ProxyParams.ProxyServer:= ProxyHost;
ProxyParams.ProxyPort := ProxyPort;
ProxyParams.ProxyUsername := ProxyUsername;
ProxyParams.ProxyPassword := ProxyPassword;
OnWork := HTTPWorkEvent;
OnWorkBegin := HTTPBeginWorkEvent;
OnWorkEnd := HTTPEndWorkEvent;
  end;
 
I use it to upload a JPEG to a webserver running Gallery
(http://gallery.menalto.com/) as follows:
 
function TGalleryHelper.AddImage(const AlbumID: Integer; const Image:
TStream; const ImageFilename, Caption, Description, Summary: String):
TGalleryStatus;
var
  Command: String;
  Response: String;
  ImageStream: TIdMultipartFormDataStream;
begin
...
ImageStream := TIdMultiPartFormDataStream.Create;
try
  ImageStream.AddFormField('g2_form[cmd]', 'add-item');
  ImageStream.AddFormField('g2_form[protocol_version]', Format('%f',
[PROTOCOL_VERSION]));
  ImageStream.AddFormField('g2_form[set_albumId]', Format('%d',
[AlbumID]));
  ImageStream.AddFormField('g2_form[caption]', Caption);
  ImageStream.AddFormField('g2_form[force_filename]',
ImageFilename);
  ImageStream.AddFormField('g2_form[extrafield.Summary]', Summary);
  ImageStream.AddFormField('g2_form[extrafield.Description]',
Description);
  ImageStream.AddObject('g2_userfile', 'image/jpeg', Image,
ImageFilename);
 
  Response := FHTTPClient.Post(Command, ImageStream);
finally
  ImageStream.Free;
end;
...
 
The events that the TIdHTTPClient class raises can be handled as
follows:
 
procedure TGalleryHelper.HTTPBeginWorkEvent(Sender: TObject; AWorkMode:
TWorkMode; const AWorkCountMax: Integer);
begin
// Do something with AWorkCountMax, e.g. set the max value on a
progress bar.
end;
 
procedure TGalleryHelper.HTTPEndWorkEvent(Sender: TObject; AWorkMode:
TWorkMode);
begin
// You're all done.
end;
 
procedure TGalleryHelper.HTTPWorkEvent(Sender: TObject; AWorkMode:
TWorkMode; const AWorkCount: Integer);
begin
// Do something with AWorkCount, e.g. set the progress value of a
progress bar.
end;
 
I have all this running in a thread to keep my GUI nice and responsive
while the upload is happening.
 
HTH, if you've more questions, let me know.
 
Conor



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Jeremy Coulter
Sent: Thursday, 18 September 2008 6:49 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] HTTP Upload Progress


yeah there is a bit of stuff around done in Java, but the last thing we
need to have to do is explain to people how to install java. The same
for flash, which is why I was heading in the native code direction.
 
Jeremy



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Richard Vowles
Sent: 18 September 2008 05:46
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] HTTP Upload Progress


The way I implemented this (in a Java web server) was that once the form
was submitted, an ajax request was fired off in the background and
repeatedly asked the server how the file upload was progressing, and
updated the amount of colour in a progress bar. The upload was attached
to the session, so  the ajax call was able to grab the info structure
from the session and query it (as the file upload specifies how big
something is and as the upload is happening, you can just specify in the
structure how much you had received). 


2008/9/17 Jeremy Coulter [EMAIL PROTECTED]


Hi Al, sorry this is a repeated post, as I have not received any
emails from the list in a week, then I got an email to reconfirm my
email address because the emails were meant to be bouncingwhich is
strange because its my main email address and I have been getting emails
okanyway using gmail now.
So, here is my post again. Appologies if its already been
answered.
 

Hi All.
I am wondering if anyone has seen or has any Delphi code that
will do an http file upload, BUT that shows you the upload progress.
I have looked at the Synapse code for doing this, but it doesn't
have the ability to show the progress.
Why use HTTP File upload and not FTP? simple answer, not every
site has FTP enabled...as we have found out, and email has been a bit
unreliable.
I have taken a look at the odd Java plugin that does this which
would be good because I could just have my app. look at a webpage
instead of build it into the exe, but then, no guarantees that java is
enabled eithersigh...the joys :-(
OR someone might even have a brighter idea ;-)
 

Jeremy

___
NZ Borland Developers Group - Delphi mailing 

Re: [DUG] HTTP Upload Progress

2008-09-17 Thread Conor Boyd
Why everybody's obsession with forms/webpages?

HTTP as a protocol has nothing specific to do with forms/pages/javascript.

There's no reason why native code can't talk HTTP.  Indeed, a lot of the Indy 
components are for just that purpose, and I even provided an example of HTTP 
upload progress in native code.

This is the Delphi list, after all. :-Þ

Just curious...

C.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neven MacEwan
Sent: Thursday, 18 September 2008 10:35 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] HTTP Upload Progress

Jeremy

You could do it in Javascript reltively simply | makes a decent 
progress bar, I have never got into graphics with JS though its would be 
relatively simple to resize a div as a progress bar

This is the Ajax Tool I use WWW: http://www.AjaxToolbox.com/

HTH
Neven
 yeah there is a bit of stuff around done in Java, but the last thing 
 we need to have to do is explain to people how to install java. The 
 same for flash, which is why I was heading in the native code direction.
  
 Jeremy

 --
 --
 *From:* [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] *On Behalf Of *Richard Vowles
 *Sent:* 18 September 2008 05:46
 *To:* NZ Borland Developers Group - Delphi List
 *Subject:* Re: [DUG] HTTP Upload Progress

 The way I implemented this (in a Java web server) was that once the 
 form was submitted, an ajax request was fired off in the background 
 and repeatedly asked the server how the file upload was progressing, 
 and updated the amount of colour in a progress bar. The upload was 
 attached to the session, so  the ajax call was able to grab the info 
 structure from the session and query it (as the file upload specifies 
 how big something is and as the upload is happening, you can just 
 specify in the structure how much you had received).

 2008/9/17 Jeremy Coulter [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]

 Hi Al, sorry this is a repeated post, as I have not received any
 emails from the list in a week, then I got an email to reconfirm
 my email address because the emails were meant to be
 bouncingwhich is strange because its my main email address and
 I have been getting emails okanyway using gmail now.
 So, here is my post again. Appologies if its already been answered.
  
 Hi All.
 I am wondering if anyone has seen or has any Delphi code that will
 do an http file upload, BUT that shows you the upload progress.
 I have looked at the Synapse code for doing this, but it doesn't
 have the ability to show the progress.
 Why use HTTP File upload and not FTP? simple answer, not every
 site has FTP enabled...as we have found out, and email has been a
 bit unreliable.
 I have taken a look at the odd Java plugin that does this which
 would be good because I could just have my app. look at a webpage
 instead of build it into the exe, but then, no guarantees that
 java is enabled eithersigh...the joys :-(
 OR someone might even have a brighter idea ;-)
  
 Jeremy

 ___
 NZ Borland Developers Group - Delphi mailing list
 Post: delphi@delphi.org.nz mailto:delphi@delphi.org.nz
 Admin: http://delphi.org.nz/mailman/listinfo/delphi
 Unsubscribe: send an email to [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] with Subject: unsubscribe




 --
 ---
 Richard Vowles, Technical Advisor
 Developers Inc Ltd
 web. http://www.developers-inc.co.nz
 ph. +64-9-3600231, mob. +64-275-467747, fax. +64-9-3600384 skype. 
 rvowles, LinkedIn, Twitter


 --
 --

 ___
 NZ Borland Developers Group - Delphi mailing list
 Post: delphi@delphi.org.nz
 Admin: http://delphi.org.nz/mailman/listinfo/delphi
 Unsubscribe: send an email to [EMAIL PROTECTED] with 
 Subject: unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe


Re: [DUG] memory leak tools - found my problem

2008-07-30 Thread Conor Boyd
Glad to hear it. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Willie Juson
Sent: Thursday, 31 July 2008 2:37 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] memory leak tools - found my problem

Yep, next weekend should be OK.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Alister Christie
Sent: Thursday, 31 July 2008 11:56 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] memory leak tools - found my problem

Sometimes there is something to be said for monolithic .exe's ;-)

Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington 



Robert martin wrote:
 Hi

 I had Sharemem in my app.  I needed to Change this to SimpleShareMem.

 Unfortunately we have a large number of Dlls in the wild so until they

 can all be changed this might be a temporary measure.

 Ta
 Rob

 Robert martin wrote:
   
 Hi


 Just made a brand new application and it works fine.  Any ideas what 
 might be wrong with my main app (ReportMemoryLeaksOnShutdown is not 
 getting set false anywhere).




 Robert martin wrote:
   
 
 Hi

 I just tried the ReportMemoryLeaksOnShutdown := true; thing and it 
 didn't report any errors for me (I put a button on that created a 
 TStringList without freeing it it).  Any ideas what I am doing
wrong?

 Apparently FastMM is the default for Delphi 2007.  Where do I 
 configure debug / release modes?

 Thanks
 Rob




 Kyley Harris wrote:
   
 
   
 compile in FastMM Memory manager into your program.. Debug mode 
 catches everything.. release mode speeds it up.

 On Wed, Jul 30, 2008 at 5:40 PM, Richard Bullin 
 [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]
 wrote:

 Heres another one called denomo
 http://www.kbasm.com/denomo.html
  
 Havnt had a good play with it yet but it seems alright
  
 Regards
  

 *From:* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]] *On Behalf Of *Vikas...
 *Sent:* Wednesday, 30 July 2008 5:10 p.m.
 *To:* NZ Borland Developers Group - Delphi List
 *Subject:* [DUG] memory leak tools

 Hi,
  
 Is there any open source or free memory leakage tool available
to
 track memory leakage in delphi application.

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe


  1   2   3   >