Re: [DUG] another set of eyes

2010-01-30 Thread John Bird
myOffice Email MessageAn aside - but to avoid date locale problems which I read about here before I ever did SQL I have always tended to use where ( END>='2010-02-22' and END <= '2010-02-26' ) instead of where ( END>=#22 FEB 2010 00.00.00# and END <=#26 FEB 2010 00.00.00# ) but in practice

Re: [DUG] hour / minute component

2010-02-04 Thread John Bird
I don't think there is any real standard way to enter either times or time intervals - what I do is use a straight edit box which allows several alternate formats and convert the entry on the onexit event, eg I can allow times like 1:10pm to be entered as 13:10 1:10pm or time intervals can be

Re: [DUG] hour / minute component

2010-02-04 Thread John Bird
Incidentally I have taken to doing something similar with date entry. An edit box, but in this case I put a little arrow button at the end of it, and clicking that superimposes a date picker over the edit box. Its rather more work but it works really neatly, and can be easily repeated. Date

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

2010-02-16 Thread John Bird
Did the D2007 version have the XP manifest?.on the same machine (XP onwards) a program using XPManifest does invoke the later version of common controls in COMCTRL32.DLL, so it is possible thats where the difference comes from. Of course this is only plausible if one of them was using diff

[DUG] TImage/ImageList/Transparent/XP Manifest

2010-02-23 Thread John Bird
I have been puzzling over how a bitmap sometimes paints for a long time, I have a circular image (of a LED) that I want to have a transparent surrounding to as the LED is round and the surround is square. In this case, I have 5 images in a Timagelist, and switch the one I want using code like

Re: [DUG] TImage/ImageList/Transparent/XP Manifest

2010-02-23 Thread John Bird
all the time, so I want to fix it for once and all. John Bird ___ 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

Re: [DUG] TImage/ImageList/Transparent/XP Manifest

2010-02-24 Thread John Bird
I solved the problem in this case by a work-around I should not have to do, but its the easiest way to get it to work: Instead of using a TImageList with 5 BMPs loaded, I used 5 Timage's, each loaded with the correct transparent BMP, and according to which I want make the relevant one visible a

Re: [DUG] TImage/ImageList/Transparent/XP Manifest

2010-02-25 Thread John Bird
I will try this again, but I think that is one of the combinations I tried. I tried so many I am not sure any more! As I said, its adding the XPManifest that actually breaks the functionality... John When you add the images to the imagelist don't make them transparent. Just set the transparent

[DUG] Zipmaster

2010-02-26 Thread John Bird
Testing Zipmaster for creating zip archives. Looks good but - two practical problems: 1 - Its Slow - archiving 60 files of around 150MB takes 2 mins 38 sec, by comparison the old PKZIP takes 18 seconds. 2 - I managed to crash or terminate writing an archive once, and that left the archive fi

Re: [DUG] Zipmaster

2010-02-26 Thread John Bird
7Zip you drive by Shellexecute and Command line? or is there a native Delphi? If it is Shellexecute then I am fine using PKZIP - note there is a later version (V4) called pkzipc that does long filenames, with a different syntax. About to check out Abbrevia for speed John _

Re: [DUG] Zipmaster

2010-02-27 Thread John Bird
Abbrevia looks good. 5 seconds slower than old PKZIP, thats acceptable for what I want. Anyone who knows Abbrevia shed light on this? 1 - How I programmatically change the ABZipKit1.Storeoptions at runtime? If I try to do it in code the defined values soStripPath etc do not seem to be define

Re: [DUG] Zipmaster/TP Abbrevia

2010-03-01 Thread John Bird
I like Abbrevia, simpler and faster and native Delphi, so will be switching to this. I noticed that if a file is in use, it will be quietly skipped when making a zip. (This is not unique to Abbrevia, they all seem to do the same). Anyone know if there is anything to detect any files that coul

[DUG] FastMM

2010-03-02 Thread John Bird
I decided to try some memory leak testing on a couple of programs to be sure all is OK, and after googling figured that even though I have d2007 the best was to download FastMM4 from source forge This is what I figured to do to run the tests - anyone can correct me if I am wrong: 1 - Add Uses

Re: [DUG] Need help in format function

2010-03-03 Thread John Bird
Tax calculations are tricky, as there are rules about either truncating to whole dollars or down to whole cents. These are not maths functions, you may have to make your own. I have seen people do all sorts of tricks with formating floats as strings and truncating, and converting back but to m

[DUG] Delphi failed login to MSSQL

2010-03-25 Thread John Bird
I have a connection to a MSSQL database that fails if the logged in user is a non-administrative user on Windows XP This is the connection string: DefaultConnectionString:='Provider=SQLOLEDB.1;' +'Integrated Security=SSPI;Persist Security Info=False;' +'User ID=sa;Initial Catalog=mob

[DUG] Firebird Embedded server

2010-04-20 Thread John Bird
Using a Firebird v2.0 embedded server setup to avoid having to install BDE on client machine. Connection works fine. Have a choice of which DB access components to use to access the FB. Anyone else used embedded server and have any experience/recommendations/gotchas/tips? particularly any pre

Re: [DUG] Enable CheckBox

2010-04-26 Thread John Bird
ay need to initialise it specifically, and check the AllowGrayed property as well. John Bird JBCL Contact: johnkb...@paradise.net.nz jbc...@xtra.co.nz 027 4844528 http://jbclnz.googlepages.com http://www.jbcl.co.nz - Original Message - From: David O'Brien To: NZ Borland D

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

2010-05-13 Thread 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 FileTimeToSystemT

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

2010-05-13 Thread John Bird
I suspect you want code a bit like examples below I found - its old, and refers to NT/XP but I think its likely to be a good candidate: http://delphi.about.com/od/delphitips2007/qt/directory_dates.htm # Delphi's FileDateToDateTime converts the system time stamp of a file to a TDateTime value. #

[DUG] Windows 7 Delphi 2007

2010-05-27 Thread John Bird
The following code which worked in XP/Vista no longer works in Windows 7 - it changes the application icon in the taskbar to show the state of processing - in this case recording or pausing of automatic time recording. Anyone have ideas on how to do this especially so it will work in all versi

Re: [DUG] Windows 7 Delphi 2007

2010-05-27 Thread John Bird
just the problem - I'll have a play with it. > > Jan > > > On 27/05/10 21:54, John Bird wrote: >> The following code which worked in XP/Vista no longer works in Windows >> 7 - >> it changes the application icon in the taskbar to show the state of >> proces

[DUG] Odd problem with Tedit

2010-06-10 Thread John Bird
This one has me foxed. I have a standard unit which is a form dialog at the start of many programs - which gets an access code and a password. In one program only it misbehaves - the Tedit fields never seem to get focus properly, so although the users can type text, there is no cursor and the

Re: [DUG] Odd problem with Tedit

2010-06-10 Thread John Bird
t;accepted" first) for this control ? Cheers, Pieter On 10/06/2010 21:20, John Bird wrote: This one has me foxed. I have a standard unit which is a form dialog at the start of many programs - which gets an access code and a password. In one program only it misbehaves - the Tedit field

Re: [DUG] Odd problem with Tedit

2010-06-10 Thread John Bird
John, Have you tried to set the tab order to 1 (or 0 - can't remember which is the "accepted" first) for this control ? Cheers, Pieter On 10/06/2010 21:20, John Bird wrote: This one has me foxed. I have a standard unit which is a form dialog at the start of many pr

Re: [DUG] Odd problem with Tedit

2010-06-10 Thread John Bird
want thread 2 to finish before thread 1...99% of the time they do, then the time slicing kicks in and the code "breaks" Anyways - well spotted and I like your saying ! Cheers, Pieter On 11/06/2010 03:13, John Bird wrote: I have solved it. Had to do bit by bit testing and deducti

Re: [DUG] Windows 7 Delphi 2007

2010-06-16 Thread John Bird
Program not able to change its taskbar icon update - the program concerned was being autostarted on login (ie there was a shortcut to it in the Startup folder). Windows 7 introduces some disabling of startup features if they require elevation - changing the icon might be one of these. I have r

[DUG] Scheduled Task oddity on server

2010-06-17 Thread John Bird
I have a utility program that converts one file to another, and is to be run as a scheduled task on a Windows 2008 server. Is there any reason one should not use a timer in a scheduled task? I am told the logs show the program does not terminate, and I am wondering if this is because there is

Re: [DUG] Default email

2010-06-21 Thread John Bird
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; va

Re: [DUG] Default email

2010-06-21 Thread John Bird
works on Windows 7/Windows Live Mail no problem! John 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

[DUG] DateTimePicker

2010-06-28 Thread John Bird
When a TDateTime is set from a DateTimePicker that is being used for Date selections what is set for the time component? Or is it random? I am wondering because two different pickers seem to return unrelated times and it looks like I have to do some testing and correcting. And for testing -

Re: [DUG] DateTimePicker

2010-06-29 Thread John Bird
It looks like D5 does not have DateOf, but the Trunc function works fine (with a comment of why). Thanks for Jolyon for the description of the oddities of this control - it looks like he has been bitten by this oddity and knows it well! John DateOf() is nothing more than a wrapper for Trunc(

Re: [DUG] Windows 7

2010-07-01 Thread John Bird
I have D2007 on Windows 7, as far as I know I haven't used a Data module on yet. However I have used a data module in a project running inside a VMWare XP virtual PC on the Windows 7 box definitely with no problem accessing databases. I do recall that the 'Database Not Set' might be caused

Re: [DUG] Windows 7

2010-07-03 Thread John Bird
. The ini file itself seems ok - at least to me. Bob From: John Bird Sent: Thursday, July 01, 2010 5:24 PM To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Windows 7 I have D2007 on Windows 7, as far as I know I haven't used a Data module on yet. However I have use

Re: [DUG] unit source code size

2010-07-05 Thread John Bird
This is a very interesting topic - I would love to hear others ideas of organising source for big projects, and any other web references. My quick thoughts: Note as far as the Delphi compiler is concerned it is fine with units of thousands of lines, its still a one pass compiler, and if the IDE

Re: [DUG] Rename file issue using renamefile command

2010-07-15 Thread John Bird
be an issue on certain networks, and then only sometimes. John Bird JBCL Contact: johnkb...@paradise.net.nz jbc...@xtra.co.nz 027 4844528 http://jbclnz.googlepages.com From: Vik Vasudev Sent: Friday, July 16, 2010 4:20 AM To: NZ Borland Developers Group - Delphi List ; NZ Borland Developers

Re: [DUG] Icon

2010-07-20 Thread 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? John -- From: "David"

Re: [DUG] Icon

2010-07-20 Thread John Bird
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

Re: [DUG] Icon

2010-07-20 Thread John Bird
I have downloaded GIMP in the past, certainly I am familiar with linux and I have seen people using GIMP, and Photoshop for editing pictures. Why don't I use it? With GIMP and Photoshop I hardly know where to start. For a start there are layers, some day I will figure out how to use layers.

[DUG] 96DPI and 120DPI

2010-07-21 Thread John Bird
I am trying to figure the implications for Delphi programs, and programs in general, on screens where the screen is set to 120DPI, or other than the standard 96DPI. 1 - Why do some screens get set up that way by network providers? Is it common? I am presuming its either to get better perform

Re: [DUG] 96DPI and 120DPI

2010-07-21 Thread John Bird
Well as I understand using 120DPI is for the same reason - making app windows larger and easier to read on the screen - or at least the text larger. I have users with oldest to newest screens - from about 800x600 up to 1920x1024 so I have to do something like this for the form to be fairly cons

[DUG] Firebird transactions

2010-07-21 Thread John Bird
Dealing with a timing issue involving Firebird, probably the cause is a slow workstation running the processing program. The workstation occasionally sends a burst of transactions, each involving adding new records to the same two tables. I presume Firebird can handle this The server is a FAS

Re: [DUG] Firebird transactions

2010-07-21 Thread John Bird
these bursts of transactions on an old slow Windows 2000 box...just wanted to eliminate Firebird not keeping up. John Hi FB should easily handle this. What is your error? Cheers Rob On 22/07/2010 12:30 p.m., John Bird wrote: Dealing with a timing issue involving Firebird, probably the cause

Re: [DUG] Firebird transactions

2010-07-21 Thread John Bird
econd on a laptop alone. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Thursday, 22 July 2010 1:27 p.m. To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Firebird transactions The error is same transaction going i

Re: [DUG] faster TreeView

2010-07-25 Thread John Bird
Any good reference tutorials on using this? I looked at it some years ago and was quite baffled where to start. Speaking as someone used to driving the drawcell events on standard stringgrids I would like to explore the stuff it can do. John Is that not also the one that Embarcadero use too

[DUG] Another Desktop Clock giveaway

2010-07-28 Thread John Bird
A Windows 7 Clock look-alike this time - a bit smaller, fainter and more refined than the last one. For screenshots, scroll to the bottom of this page: http://sites.google.com/site/jbclnz2/abouttime Email me if you would like a copy - standalone exe of 480K. Written using D2007/Windows 7. J

[DUG] MSSQL ID field binary(8)

2010-08-01 Thread John Bird
Dealing with a MSSQL database where the ID field is defined as Binary ( 8 ) and using D2007 / ADO. I can open the table and read in data, but I cannot figure out: 1 - how to get the ID value out of this field - when displayed a grid shows this column as (BYTES), if I try to get the value as a

Re: [DUG] MSSQL ID field binary(8)

2010-08-05 Thread John Bird
MessageDealing with index/ID field that is set as binary - here is the solution that worked in case any one else comes across same Note for MSSQL using such a field in a JOIN SQL statement would be perfectly fine as normal, as MSSQL has a native binary type. Delphi ADO however does not, s

Re: [DUG] MSSQL ID field binary(8)

2010-08-16 Thread John Bird
I think I have to agree with your words[5] and words[6] . Where - words:array[0..xxx] of string; John I work on systems where some idiot used a decimal(9,0) as a PK and mixed it with other tables with integers, I think with any PK the main thing is use the same otherwise you force the serve

[DUG] Sending notification between programs

2010-08-17 Thread John Bird
Which way would you favour to do the following ? I have two Delphi programs (A and B) that I will pass data from A to B - I will probably use a file to put the data in because its quite structured. B will sleep on a timer loop until this something is triggered. What I want to do is send a si

Re: [DUG] Sending notification between programs

2010-08-17 Thread John Bird
e existence of the file. > > Regards, > Dennis. > > -- > From: "John Bird" > Sent: Wednesday, August 18, 2010 4:43 PM > To: "NZ Borland Developers Group - Delphi List" > Subject: [DUG] Sending notification

Re: [DUG] Sending notification between programs

2010-08-18 Thread John Bird
I had thought of something just like this, having something in the data being what B looks for and acts on, otherwise sleeps. However this makes it disk based, and B has to poll. I was hoping something simple in memory could wake up B rather than referring to the filesystem. The main disadva

Re: [DUG] SetWindowPos HWND_TOPMOST

2010-08-23 Thread John Bird
Not just Delphi - its an ancient Windows problem AFAIK. Even in Windows 7 I have seen a control panel applets puts a modal dialog behind the window - often the best solution is Windows+D (show desktop) and go thru all windows with alt+Tab and usually the hidden modal dialog is found. Usuall

Re: [DUG] Delphi

2010-09-07 Thread John Bird
d.. Magnitude: 3.4 e.. Depth: 8 km f.. Details: 10 km south-west of Christchurch My house is in Mt Pleasant, but have been in Ak the last week. Decidedly mixed feelings about not being there. House was OK last report, but thats some 30 aftershocks ago! John Bird JBCL Contact

Re: [DUG] Delphi

2010-09-08 Thread John Bird
Thats a cute program! Only correction needed is spelling - (Magnitude). The icon is spookily appropriate - did you make it yourself or do you have access to a site with earthquake icons? John From: Jeremy Coulter Sent: Wednesday, September 08, 2010 6:50 PM To: 'NZ Borland Developers Group

Re: [DUG] Delphi

2010-09-08 Thread John Bird
Out of curiosity what is the page control you are using and the chart component? I like both John HI guys. Here is the URL. http://www.telsoft.net.nz/downloads/quake/QuakeCheck.zip There might be the odd bug. I was really only doing it for my own amusement, but nothing too obvious has s

[DUG] Pasting components from code

2010-09-16 Thread John Bird
I have a source generation program to speed creating of sets of labels and edit boxes on a form - which gives output like examples below. I paste the code that goes in the DFM onto the form, and it creates all the components - a neat Delphi trick for those who might not know. My problem is tha

Re: [DUG] Pasting components from code

2010-09-16 Thread John Bird
The correct spot being? (that was my question! - there looks to be rules I did not know about. ) Form inheritance - not applicable so much in this case, as the set of labels and edit boxes vary totally from case to case. I just got tired of the repetitive task of creating large sets of these

Re: [DUG] Pasting components from code

2010-09-16 Thread John Bird
Thanks, I had sort of figured it out, but I didn't know the reason. John > So before the initial private (or any other) visiblity directive. ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/

[DUG] integer or int64

2010-09-20 Thread John Bird
Quite a few built in Delphi functions accept either integer or int64 as an argument, I checked into inttostr for instance, in that case its asm code. I have quite a few standard number processing routines, and up to now have done one version for integer, and another for int64. Is it feasible to

Re: [DUG] integer or int64

2010-09-20 Thread John Bird
I have a calculator program, beyond certain size numbers it resorts to real numbers, when sometimes I want exact integers. eg 17! (17Factorial) is the highest I can get exactly (17*16*15 etc.), 18! turns to a real number and I don't know if I am losing digits. Another example of large numbers

Re: [DUG] Rad Studio XE Enterprise

2010-09-27 Thread John Bird
Ha - does it still do that? (D2007 here) The instant compiler does not always find stuff. Such as TEdit for instance. As long as normal compile works I can live with it John Anyone actually using XE yet? We're using 2009 and still some buggy things in the IDE which would make me consider

Re: [DUG] You're gonna get an invite tonight!

2010-10-05 Thread John Bird
Yeah – what invite? I am waiting too. John Hi Richard I'm still waiting for my invite - you can send it to my work address if that's easier. davi...@pegasus.org.nz Cheers David On 30/09/10 16:14, Richard Vowles wrote: Hi guys, If all goes to plan, you should get some email from us

[DUG] Rave printing

2010-10-12 Thread John Bird
?I have a generalised routine for printing forms using Rave reports D2007. I struck an interesting problem printing contents of a DBGrid showing columns from a MSSQL database - I think its because the fields are null or a type (eg binary) that ClientDataSets cannot display. Printing that colum

Re: [DUG] Just in case you missed it

2010-10-17 Thread John Bird
Is there a mailing list to get offers like this? I hadn’t heard of this or the XE event until it came up here on the Delphi list. Please add me to any such lists. John From: Richard Vowles Sent: Monday, October 18, 2010 12:33 PM To: NZ Borland Developers Group - Delphi List Subject: [DUG] J

Re: [DUG] Just in case you missed it

2010-10-17 Thread John Bird
How much longer is upgrade from D2007 likely to be counted as an upgrade – any ideas or hints? John Hi Paul, Everyone who doesn't have a 2010 version of the product (Delphi/C++/RAD Studio), if you are on 2009, 2007 or 2006 upgrade-wise or earlier (who have to purchase new now). On 18 Oct

Re: [DUG] Delphi Specials

2010-10-20 Thread John Bird
Well thats nuts. As a user of both Delphi 5 and D2007, you would have to be nuts to want to work in D5 if you spend any time programming. It works, and quite well, but D2007 and later are so much nicer, and faster to do stuff.If you value your time and are programming for anything return

[DUG] Finding system settings

2010-10-20 Thread John Bird
I would like to find some system settings - eg volume ID of a drive (which might be a network drive), and time zone. Any suggestions? Related - I recall seeing a unit somewhere years ago that showed a lot of windows settings (eg Windir) I am not sure what it was and where, anyone know of

Re: [DUG] Delphi Specials

2010-10-20 Thread John Bird
Aw nuts you are just being a stirrer. I actually use D5 and D2007 both a lot for work. So thats my experience – I greatly prefer D2007. For me a pro upgrade is $600-700 so thats also true. The point about Windows updates are: MS updates Windows still (mind you only XP SP3 onwards now) not be

Re: [DUG] Delphi Specials

2010-10-21 Thread John Bird
 John From: Jolyon Smith Sent: Friday, October 22, 2010 8:53 AM To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Delphi Specials Ø Aw nuts you are just being a stirrer. Why is pointing out facts considered stirring? I think the best answer to that is the one Josh K

Re: [DUG] Delphi Specials

2010-10-21 Thread John Bird
I agree, something with real limitations but real usefulness. A Turbo version would be great. Possible ideas would be 1 – Executables only run on the PC with the Turbo licence. otherwise full version but cheap 2 – Executables have a built in expiry date of 1 year from when compiled. othe

Re: [DUG] Delphi Specials

2010-10-21 Thread John Bird
?Maybe a related topic - How to make it easy to upgrade. The main reasons I hear from others for not upgrading are (with my experience in brackets): 1 - locked into 3rd party components with no new versions or expensive new versions [I luckily have steered clear of addon components, except fo

Re: [DUG] Barcamp possibly?

2010-10-27 Thread John Bird
Would be very interested. Was talking to Gary B (who runs the list) – he also has been thinking of setting up a library where people can contribute code for benefit of others, and pick up others tricks.I for instance do all my printing with Rave by displaying the stuff on the screen in lab

Re: [DUG] Barcamp possibly?

2010-10-27 Thread John Bird
?I don't think it would be hard to find topics - For instance off the top of my head: -it would be interesting to see the sort of programs others are doing -Their favourite tips and tricks -some IDE/OO/language education and explanations -debugging techniques -tools that others use and how they s

Re: [DUG] Solid State Drives

2010-11-06 Thread John Bird
?Sort of similar config, except 32bit Windows 7 with 4GB Ram, and a VMware XP with D2007 and 1GB allocated. I find the performance of the VMWare virtual PC the worst aspect of it - the XP virtual machine is really prone to triggering intense disk writes - which looks like Windows XP starting sw

Re: [DUG] D2010 and XE on the same machine

2010-11-08 Thread John Bird
Is this IDEFixPack worth installing for D2007? This rings a bell – I might have tried this or something like it when D2007 first came out, and it made little difference. What really did make a huge difference was doubling my RAM. It was obviously having to swap different parts of the IDE i

Re: [DUG] D2010 and XE on the same machine

2010-11-08 Thread John Bird
I have VMWare workstation with XP D2007 in the VM, and D2007 in the host Windows 7 PC (yes 2 different licences too, although I generally can only run one at once anyway). More RAM seems to be the best thing to avoid the IDE going off into lala land. Help – I avoid the D2007 standard help – th

[DUG] Icon creation

2010-11-08 Thread John Bird
I have never read up on best practices/sizes etc for creating program icons and BMP files for buttons/images etc. Anyone got any good references to read up further?? q1 – I have figured how to create a BMP with transparent background for bit buttons etc so the image is not square. How do I

[DUG] Duplicate post

2010-11-08 Thread John Bird
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 B

Re: [DUG] Delphi XE update 1 fails

2010-11-15 Thread John Bird
?Cannot see how this is Embarcaderos fault. I have seen Mail Marshall refuse an attachment with a .ZIP extension. I then sent the ZIP file with a .DAT extension which also got blocked. I had assumed a .DAT was the most general and innocuous and least blocked extension until then (as it gene

[DUG] Upgrading to XE - Unicode strings questions

2010-11-17 Thread John Bird
Planning upgrading from D2007 to XE, but want to read up on issues I will need to consider first to do with strings becoming Unicode by default. I recall the release of D2009 came with good white papers explaining ramifications, however I haven’t seen these as I haven’t upgraded. Asked for

Re: [DUG] Upgrading to XE - Unicode strings questions

2010-11-22 Thread John Bird
Thanks for the references, so I can answer most of the questions now. Here is what I understand so far, if anyone has anything to add this will be useful! Extra question: It looks like code like for i:=1 to length(string1) do begin DoSomethingWithOneChar(string1[i]); e

Re: [DUG] Upgrading to XE - Unicode strings questions

2010-11-22 Thread John Bird
My main remaining question is the best way to handle code that up to now looked like: for i:=1 to length(string1) do begin DoSomethingWithOneChar(string1[i]); end; If I got the gist correctly, string1[i] is one unicode character, but length(string1) is the number of cod

Re: [DUG] Upgrading to XE - Unicode strings questions

2010-11-22 Thread John Bird
Behalf Of Colin Johnsun Sent: Tuesday, 23 November 2010 14:31 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Upgrading to XE - Unicode strings questions I won't answer everything but just on this one question: On 23 November 2010 11:04, John Bird wrote:

Re: [DUG] Upgrading to XE - Unicode strings questions

2010-11-23 Thread John Bird
Iterating over a string is for the purpose of doing something with each individual character..whether it is a ‘A’ or a 'A' with a ^ (caret) on top of it. When I said the number of bytes in a character varies I was not meaning the number of bytes in a Char - I was meaning the total numbe

Re: [DUG] Upgrading to XE - Unicode strings questions

2010-11-23 Thread John Bird
?I read in one of the references that UTF-32 was a more common standard on Unix systems - which means I guess they have chosen the simplest format at the trade off of using more space? I think linux/Windows/MacOS use UTF-16 more commonly... Anyway for the time being, as long as the data in stri

Re: [DUG] Company closing

2010-11-26 Thread John Bird
?IT work is expected to pick up over the next few months. Just checked out the latest language surveys at http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html Top ones are still Java, C, C++, PHP, C#, Python. Delphi at number 12. Java at 18% currently score more than 3x C# at 5.7

Re: [DUG] Company closing

2010-11-28 Thread John Bird
?http://lenniedevilliers.blogspot.com/2010/09/delphi-for-android-sneak-preview.html Just checked out the DelphiDroid - not sure what state its at but simple examples are at least working - see a sneak peek video at the above address. Says been tested with "Delphi 6.0, 7.0, 2005, 2006 and 2010."

Re: [DUG] Icon creation

2010-11-28 Thread John Bird
Itemid=27 >>> making icons with GiMP. >>> >>> However there are some quite good free standalone Icon editors. >>> Alister Christie >>> Computers for People >>> Ph: 04 471 1849 Fax: 04 471 1266 >>> http://www.salespartner.co.nz >>&

Re: [DUG] DelphiDroid

2010-11-28 Thread John Bird
spartner.co.nz PO Box 13085 Johnsonville Wellington On 29/11/2010 12:08 p.m., John Bird wrote: > ?http://lenniedevilliers.blogspot.com/2010/09/delphi-for-android-sneak-previ ew.html > > Just checked out the DelphiDroid - not sure what state its at but simple > examples are at least workin

[DUG] Test

2010-11-29 Thread John Bird
Test – sent two messages some hours earlier and neither appeared yet 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...@de

[DUG] Fw: Icon creation

2010-11-29 Thread John Bird
Itemid=27 >>> making icons with GiMP. >>> >>> However there are some quite good free standalone Icon editors. >>> Alister Christie >>> Computers for People >>> Ph: 04 471 1849 Fax: 04 471 1266 >>> http://www.salespartner.co.nz >>&

[DUG] Fw: DelphiDroid

2010-11-29 Thread John Bird
ngton On 29/11/2010 12:08 p.m., John Bird wrote: > ?http://lenniedevilliers.blogspot.com/2010/09/delphi-for-android-sneak-previ ew.html > > Just checked out the DelphiDroid - not sure what state its at but simple > examples are at least working - see a sneak peek video at the above

Re: [DUG] Toolsets (was Re: Company closing)

2010-11-30 Thread John Bird
I sort of disagree - A common VCL is the ideal solution. What makes Delphi a success on Windows is that it is Pascal and also close enough to the Windows controls that it produces what looks like native Windows applications, using the best of Windows XP/Vista/7 appearances. If they do a Mac ve

[DUG] Web Sockets security hole

2010-12-12 Thread John Bird
Here is a reference I picked up on the Firefox list about a a security hole in Web Sockets – and affects Java, Flash and HTML5. Research done by Adam Barth of Google. http://www.ietf.org/mail-archive/web/hybi/current/msg04744.html http://www.adambarth.com/experimental/websocket.pdf https://bu

Re: [DUG] Web Sockets security hole

2010-12-12 Thread John Bird
org.nz] On Behalf Of John Bird Sent: Monday, 13 December 2010 11:08 To: NZ Borland Developers Group - Delphi List Subject: [DUG] Web Sockets security hole Here is a reference I picked up on the Firefox list about a a security hole in Web Sockets – and affects Java, Flash and HTML5. Resear

Re: [DUG] Help Detecting Windows Version

2010-12-12 Thread John Bird
?http://stackoverflow.com/questions/601089/detect-whether-current-windows-version-is-32-bit-or-64-bit easiest way depends on whether Windows 7 or Server 2008, or older. Simplest and most general over windows versions looks to be ProgramFiles(x86) environment variable which is only set on 64 bit

Re: [DUG] Help Detecting Windows Version

2010-12-12 Thread John Bird
se wouldn't... ;) -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Monday, 13 December 2010 13:47 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Help Detecting Windows Version ?http://stackoverfl

Re: [DUG] Delphi talking to C#

2010-12-13 Thread John Bird
?As others said, I reckon best way depends on what type of comms is going on. If its a large amount of structured data a file can make sense. If response times and two way communication is important then you need something event driven, such as socket or TCP. The filewatcher you are using is t

Re: [DUG] Problem redeeming Delphi XE BOGO free product

2010-12-13 Thread John Bird
?Yes I find I have to run more than one browser to get every web site working. I take it to the extreme admittedly - I have Firefox V4 beta 8 pre-release (nightly build), Chrome, Chrome V10 beta (Canary build), Opera v10, IE9 beta. My internet banking was not working with Firefox V4 for a whil

Re: [DUG] Problem redeeming Delphi XE BOGO free product

2010-12-13 Thread John Bird
?[Browsers contd] 10 seconds to page loaded is impressive when there are 269 tabs open in 20 groups, current group has 20+ tabs so all of those are pretty much loaded too - so yes that is fast. 1 or 2 tabs is a lot faster again. lots of tabs is useful if the browser handles it effortlessly, r

  1   2   3   4   5   >