Re: [DUG]: listview shortcut keys

2003-10-07 Thread Ross Levis
Title: Message Hi Stephen   Unfortunately I use the Checkboxes option on the listview for another purpose and Ctrl + Space just toggles the checkbox, same as Space by itself.  Perhaps I will use ESC to deselect all as Myles suggested.   Thanks.   Ross Levis

[DUG]: listview shortcut keys

2003-10-07 Thread Ross Levis
use the keyboard.  Is there a standard key combo to de-select all items via the keyboard?  I can't find one but before I invent one I thought I would ask.  Any suggestions for the key combination I should use?   Regards,   Ross Levis StationPlaylist.co

RE: [DUG]: octane

2003-10-05 Thread Ross Levis
Title: Message Yeah, on to Win64! -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard VowlesSent: Monday, 6 October 2003 11:40To: Multiple recipients of list delphiSubject: RE: [DUG]: octane Win32 is dead, time to bury it.

Re: [DUG]: Spanish Problem

2003-10-01 Thread Ross Levis
ly change the separator strings in your program. Regards, Ross Levis StationPlaylist.com http://www.stationplaylist.com Low-cost music scheduling, live assis

Re: [DUG]: random thread crashes

2003-09-24 Thread Ross Levis
Hi Dennis I think I've fixed the problem. I created private variables in the thread and used Synchronize to copy the data from the UI to these variables before doing the time consuming process. It seems to be behaving itself now. Thanks all, Ross Levis. - Original Message -

Re: [DUG]: random thread crashes

2003-09-23 Thread Ross Levis
Hi Dennis Using synchronize will negate the effect of using a thread in the first place. I'm not using any methods but I am reading properties. Should I copy the value of all properties into say global variables before calling the thread? Regards, Ross Levis. - Original Me

[DUG]: random thread crashes

2003-09-23 Thread Ross Levis
es out of the blue.   Any ideas?   Best regards,   Ross Levis Tauranga.StationPlaylist.comhttp://www.stationplaylist.comLow-cost music scheduling, live assist & automation software.Mailing List: http://groups.yahoo.com/group/StationPlaylist  

Re: [DUG]: Button Caption

2003-09-02 Thread Ross Levis
To repay everyones help, attached is a TTextButton component that adds 3 properties to the standard TButton to manipulate how the caption is shown as follows: Alignment: taLeft, taRight, taCenter WordWrap: True, False Layout: tlTop, tlBottom, tlCenter Regards, Ross. TextButton.pas Description:

Re: [DUG]: Button Caption

2003-09-02 Thread Ross Levis
David Brennan wrote: > Try calling RecreateWnd within the component. That will force your component > to create a new window which means it will call CreateParams again and get > the new params. Perfect, it works like a charm. Thanks, Ross. ---

RE: [DUG]: Button Caption

2003-09-01 Thread Ross Levis
Todd Martin wrote: > Call Refresh() Mmm, that doesn't work, perhaps because it's the CreateParams procedure that's being overridden and the component is not being re-created in a refresh. Any other possibilities? Ross. ---

RE: [DUG]: Button Caption

2003-09-01 Thread Ross Levis
I've created a NewButton component for the IDE pallete with an Alignment property for left, right or center which works fine at runtime, but how do I refresh the design time form to display the caption with the new alignment when the selection changes. I've never created a new component before. R

RE: [DUG]: Button Caption

2003-08-31 Thread Ross Levis
Hi Dennis BS_LEFTTEXT doesn't work but BS_LEFT does. Thanks for the help. Regards, Ross. Dennis Chuah wrote: > Not sure if this will work, but it is worth a try. Create a > sub-class of TButton and override the CreateParams method: > > procedure TButtonNew .CreateParams(var Params: TCreateP

Re: [DUG]: Button Caption

2003-08-31 Thread Ross Levis
>Ross Levis wrote: >>Is there an easy way to left justify a TButton caption Rohit Gupta wrote: > Its possible but will take you hours to find it look at the VCL > code for TBitBtn and then try to copy the relevant bits into TButton. > Or start with TPanel and make your ow

Re: [DUG]: Button Caption

2003-08-29 Thread Ross Levis
PI calls? Regards, Ross. > Ross Levis wrote: > > > (D5) Is there an easy way to left justify a TButton caption, and > > not centre as it does by default. > > > > Thanks, > > > > Ross Levis > > Tauranga. > > > > > --

[DUG]: Button Caption

2003-08-29 Thread Ross Levis
(D5) Is there an easy way to left justify a TButton caption, and not centre as it does by default.   Thanks,   Ross Levis Tauranga. 

RE: [DUG]: joining in update query

2003-08-14 Thread Ross Levis
Tracey Maule wrote: > unfortunately your help didnt help because i am stuck with > needing two where clauses from 3 tables, and interbase will > not allow joins in subqueries > looks like i will be changing 1540 records by hand This is where SQL doesn't work and where the old fashioned non-clien

RE: Re[2]: [DUG]: Maximum size for CDR CDRW

2003-08-04 Thread Ross Levis
No, that's standard burn, not overburn. Ross. Alistair George wrote: > Hello Ross, > RL> 700MB CDR's are usually cheaper to get these days. My > Verbatim ones > RL> can store 702MB or 736,966,656 bytes. To be on the safe side, I > RL> would limit it to 700MB (734,003,200 bytes). > Yes, thank

RE: [DUG]: Maximum size for CDR CDRW

2003-08-04 Thread Ross Levis
700MB CDR's are usually cheaper to get these days. My Verbatim ones can store 702MB or 736,966,656 bytes. To be on the safe side, I would limit it to 700MB (734,003,200 bytes). Regards, Ross. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alista

RE: [DUG]: windows class name

2003-07-27 Thread Ross Levis
Moises Lopez wrote: > i once wanted to check if another app was still running > > if (FindWindow('TfrmAnotherApp', nil) <= 0) and > (FindWindow(nil, PChar('Caption for my other main > form')) <= 0) then > begin Yes, FindWindow is what I would like to use, but how does one a

[DUG]: windows class name

2003-07-27 Thread Ross Levis
I want to tell from a D5 app if another D5 app is currently running.  Is the class name the same as the main forms Name or is this set somewhere else?   Thanks, Ross.

RE: [DUG]: [Q] Sequence of bytes as a number and back again....

2003-07-21 Thread Ross Levis
Rohit Gupta wrote: > var > L : longword; > A : array [0..7] of byte; absolute L; > > Now just store what you want in L and read from A or vice versa. I didn't know you could do that. I've wanted to do something like this in the past to extract an integer in a string read from a binary file.

[DUG]: Creating WAV files

2003-07-19 Thread Ross Levis
Can anyone suggest a free component to record and create new WAV files.  The D5 TMediaPlayer doesn't support it.   Regards, Ross.

Re: [DUG]: Coding music?

2003-07-17 Thread Ross Levis
7, 2003 5:16 PM Subject: Re: [DUG]: Coding music? Damn! I'm stuck on 56k :(. ZM's radio stream sounds pretty nice on 56k though, I have to say. http://www.zmonline.com   Cheers, Nicholas Sherlock - Original Message ----- From: Ross Levis To: Multiple

Re: [DUG]: Coding music?

2003-07-17 Thread Ross Levis
At work we have an unlimited 2Mbit ClearNet Tempest connection.  At home it's a 5gig limit Jetstart.   My stream is up now.  It was a little late starting this morning.   Ross Levis. Soul FM StationPlaylist.com - Original Message - From: Robert martin To: Mul

Re: [DUG]: Coding music?

2003-07-16 Thread Ross Levis
ouble with that, use this link: http://www.oddsock.org/icecast2yp/listen.php?id=8991&file=listen.m3u   Ross Levis Soul FM StationPlaylist.com  > when im under pressure i usually put something in the Tool or Alice in > Chains mold...> other wise when im concentrated some soft music li

Re: [DUG]: Coding music?

2003-07-16 Thread Ross Levis
PM Subject: Re: [DUG]: Coding music? Heh.. it's more fun listening to their accents and their adverts than anything else :)   Cheers, Nicholas Sherlock - Original Message - From: Ross Levis To: Multiple recipients of list delphi

Re: [DUG]: Coding music?

2003-07-16 Thread Ross Levis
My mp3 collection is getting rather stale so I've been listening to Virgin Radio streamed from the UK at around 96kb/s with the Ogg Vorbis format.  You obviously need broadband for this one.  It sounds perfect, crystal clear like your in the studio.  There is a 32kb/s low-fi stream as well f

RE: [DUG]: Wildcard match of strings

2003-06-30 Thread Ross Levis
Use the TMask object. Here is a function I use. function Matches(const S,Wildcard: String): Boolean; var Mask: TMask; begin Mask := TMask.Create(Wildcard); Result := Mask.Matches(S); Mask.Free; end; Eg. If Matches('I am Roger',*Roger*) then... Ross Levis. > -Ori

[DUG]: UpDown problem

2003-06-30 Thread Ross Levis
. Is there something I'm missing? Cheers, Ross Levis. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED]

Re: [DUG]: Repost again

2003-06-05 Thread Ross Levis
You had a couple of replies. Here is a function: Function Mult (x,y: Real): String; var z: Real; begin z := x * y; Result := FloatToStr(z); end; Ross. - Original Message - From: "Ben none" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Thur

RE: [DUG]: Anyone know these?

2003-06-04 Thread Ross Levis
Except he wanted it as a string. Function mult(x,y:Real): String; begin Result := FloatToStr(x * y); end; Steve Peacocke wrote: > Ben none said: > > 1. Does anyone know how to declare values like this: 0.19 > and 0.05 and > > multiply them and convert it into text? > > > > 2. Does anyone kno

Re: [DUG]: OffTopic Batch file question

2003-05-30 Thread Ross Levis
Use Start not Call. Start.exe has a Wait parameter which should do what you need and works on all Win O/S's. Ross. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://ww

[DUG]: Re: Keys

2003-03-29 Thread Ross Levis
It's OK. I found the GetKeyState Win32 API call. Ross. Ross Levis wrote: Now I would like to detect if the Ctrl or Shift key is down at the time of the drop. Any ideas? Thanks, Ross. --- New Zealand Delphi

[DUG]: Keys

2003-03-29 Thread Ross Levis
Now I would like to detect if the Ctrl or Shift key is down at the time of the drop. Any ideas? Thanks, Ross. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delph

Re: [DUG]: MousePos

2003-03-27 Thread Ross Levis
That did the trick, thanks. Ross. Matt Dee wrote: I found the global Mouse.CursorPos property. Do I have to use that and subtract the mainform position and the listview position or is there something I've missed? TControl.ScreenToClient(const Point: TPoint): TPoint; Takes a screen cordinate,

[DUG]: MousePos

2003-03-27 Thread Ross Levis
I'm using a free component called FileDrop which allows dragging of files from windows explorer onto a TWinControl at runtime. I'm attempting to use this with a ListView to insert files. Unfortunately FileDrop doesn't provide the X,Y coordinates of the drop position. Is there a simple way to det

Re: [DUG]: Tip for sore eyes

2003-03-12 Thread Ross Levis
t;.  So a 15" LCD is quite adequate and quite cheap these days. Ross Levis.

Re: [DUG]: long month version of MonthStr()

2003-03-11 Thread Ross Levis
How about: ?FormatDateTime('',Date); Ross. Tracey Maule wrote: Is there a function like MonthStr() that will return "March" instead of "Mar"? ? Tracey Software Developer / Web Master Logis [EMAIL PROTECTED] (025) 213-1065

Re: [DUG]: db calculation

2003-03-06 Thread Ross Levis
a natural log, ie exponential of e, not exponential of 10 >Delphi has a log10 function but no Exp10 function I can see so >To do this you do use > >exp(db/10*ln(10)) > >HTH > >Neven >- Original Message - >From: "Ross Levis" <[EMAIL PROTECTED]>

Re: [DUG]: db calculation

2003-03-05 Thread Ross Levis
- From: "Ross Levis" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 4:54 PM Subject: Re: [DUG]: db calculation Hi This formula doesn't seem to work. The 20 should be 10 as Neven pointed out

Re: [DUG]: db calculation

2003-03-05 Thread Ross Levis
Yes, I see.  However, how does one do ^ in delphi.  I'm use to this in other languages but Delphi thnks it is a pointer. Cheers, Ross. Nello Sestini wrote: This formula doesn't seem to work. The 20 should be 10 as Neven pointed out but I believe a -3db reduction should take 65535 to

Re: [DUG]: db calculation

2003-03-05 Thread Ross Levis
if this is what you are after (and hope i haven't made some stupid mistake) -ns http://www.roserox.co.th - Original Message ----- From: "Ross Levis" <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> To: "Multiple recipients of list delphi" <[

[DUG]: db calculation

2003-03-05 Thread Ross Levis
be anywhere in the range 0 (silent) to 65535 (maximum). I know that db = 20 log (P1/P2) though I've also seen the 20 at 10. How do I get P1 (or is it P2) to the left of the equation. Thanks, Ross Levis. --- New

Re: [DUG]: Delphi7

2003-02-13 Thread Ross Levis
There is a rxlib 2.75 for D7. I downloaded & installed it myself. Not sure where I got it from now. A google search found it, however. Ross. Alistair George wrote: Hi. Now comes the crunch when I find for example, my rxlib does not work, and it wont work because the authors have stopped work

[DUG]: TListItem.Checked problem

2003-01-22 Thread Ross Levis
Yeah, sorry. I just worked out I was using comflicting With statements and something else was being unchecked. Cheers, Ross. Conor Boyd wrote: ListView1.Items.Item[1].Checked := False; and ListView1.Items[1].Checked := False; work for me in D5. Any help? Cheers, C. -

[DUG]: TListItem.Checked problem

2003-01-22 Thread Ross Levis
In D5 I need to uncheck items in code that have been checked manually in a ListView (with Checkboxes := True). I can't seem to do it! Setting MyListItem.Checked := False doesn't do it. Tried a MyListView.Refresh without luck. Looks like a deficiency in D5. Is there a workaround? Thanks, Ro

Re: [DUG]: TDateTimePicker Time Format

2003-01-22 Thread Ross Levis
Thanks Donovan. That works perfectly. Cheers, Ross. Donovan Broad wrote: Add CommCtrl to your uses statement. DateTime_SetFormat(DateTimePickerTest.Handle, pChar('HH:mm:ss')); --- New Zealand Delphi Users group

Re: [DUG]: TDateTimePicker Time Format

2003-01-22 Thread Ross Levis
Of Ross Levis Sent: Wednesday, 22 January 2003 20:37 To: Multiple recipients of list delphi Subject: [DUG]: TDateTimePicker Time Format Using D5, I want the TDateTimePicker in dtkTime mode to display the time as hh:nn:ss (24 hour clock), however, it seems it decides it's own format based o

Re: [DUG]: TDateTimePicker Time Format

2003-01-22 Thread Ross Levis
That looks good unfortunately I don't have a DateTime_SetFormat procedure. It won't compile (D5). Regards, Ross Levis. Donovan Broad wrote: DateTime_SetFormat(DateTimePickerTest.Handle, pChar('H

[DUG]: TDateTimePicker Time Format

2003-01-21 Thread Ross Levis
he format without changing the regional settings? Thanks, Ross Levis. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL

RE: [DUG]: seem to remember...autoincrement version number

2003-01-21 Thread Ross Levis
I suggest you start your build numbers from 1000 then you don't need to fiddle manually. Ross. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnS

[DUG]: D5 -> D7 filesizes

2003-01-21 Thread Ross Levis
I'm not sure if it was someone on this list who mentioned that D7 EXE filesizes were smaller than D5. I've just installed D7 and it added 100k to a 650k application. Ross. --- New Zealand Delphi Users group - Delphi List

RE: [DUG]: Sending record

2003-01-21 Thread Ross Levis
Memory allocated in one app cannot be referenced in another app. Each app runs in it's own memory space, so WM_COPYDATA is a good option. Ross. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf Of Allan Vergara > Sent: Wednesday, 22 January 2003 12:28

[DUG]: Installing DCU components

2003-01-21 Thread Ross Levis
I've downloaded a compiled DCU component which has an associated DCR but I can't work out how to install it into the palette. I've installed PAS/DCR files before. Thanks, Ross. --- New Zealand Delphi Users group - Delphi

Re: [DUG]: defines

2003-01-15 Thread Ross Levis
thout wasting development time. -Andreas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ross Levis Sent: Thursday, 16 January 2003 17:22 To: Multiple recipients of list delphi Subject: [DUG]: defines I have an application for which I want to split i

[DUG]: defines

2003-01-15 Thread Ross Levis
s} in the mainform work in all other forms? Do defines work in dpr files? I tried putting a define in the dpr and using it in the mainform but this doesn't work. Should I use 2 separate dpr files? Any suggestions. Than

Re: [DUG]: Opendialog filter

2003-01-04 Thread Ross Levis
I don't think there is any way to it with the standard OpenDialog. The best I can think of is to filter the first character to be a number as follows: 'Zip or Spanned Files|*.zip;*.0*;*.1*;*.2*;*.3*;*.4*;*.5*;*.6*;*.7*;*.8*;*.9* Ross. Alistair George wrote: Hi all. I have a special type of z

Re: [DUG]: TEdit.Text

2002-11-25 Thread Ross Levis
. -Original Message- From: Ross Levis [mailto:[EMAIL PROTECTED]] Sent: 23 November 2002 13:30 To: Multiple recipients of list delphi Subject: [DUG]: TEdit.Text I'm finding it a hassle that I can't pass TEdit.Text strings as Var parameters in procedures, and can't specify them in readln

[DUG]: TEdit.Text

2002-11-22 Thread Ross Levis
I'm finding it a hassle that I can't pass TEdit.Text strings as Var parameters in procedures, and can't specify them in readln commands. With Var parameters, I receive the compiler error "Constant Object cannot be passed as a var parameter. With Readln(MyTextfile, MyEdit.Text), I receive the com

RE: [DUG]: (Offtopic) Having trouble reaching www.borland.com?

2002-11-17 Thread Ross Levis
It could be that some routers are down somewhere. I'm having trouble accessing my website today via my US domain redirection. It will sometimes load after a number of retries. Ross. http://www.stationplaylist.com David O'Brien wrote: > Yup, its gone. > > -Original Message- > From: Con

Re: [DUG]: TPagecontrol ... disabling a particular page

2002-11-02 Thread Ross Levis
That won't work when using the left/right arrow keys on the keyboard to change the tab, which some people use. Ross. -- Original Message -- The following does it, I think there is a better way but cant remember what it was. //Stops selection of page 2 var pt : TPoint; begin pt := Scr

Re: [DUG]: Float to Time problem

2002-11-01 Thread Ross Levis
If TotalET is in seconds this then do this: FormatDateTime('hh:mm:ss.zzz', TotalET/SecsPerDay) If this still doesn't work then you may need more precision than a single. Ross. Jeremy Coulter wrote: Message because, the float value might be 59.789 or something.

Re: [DUG]: Why don't group boxes "dim" when disabled?

2002-10-22 Thread Ross Levis
I discovered this when I first started using Delphi, and I think I asked about it on this list. I ended up creating a procedure to disable a GroupBox and all controls in it. It also changes the Color of the GroupBox to clGrayText. I can post the code if your interested. Ross Levis. Chris

Re: [DUG]: Auto Scroll ListView

2002-10-17 Thread Ross Levis
B_SETTOPINDEX. Dave. -Original Message----- From: Ross Levis [mailto:[EMAIL PROTECTED]] Sent: Thursday, 17 October 2002 2:21 p.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Auto Scroll ListView Or, thinking about it a bit longer, perhaps I could do a (LastItem).MakeVisib

Re: [DUG]: Auto Scroll ListView

2002-10-17 Thread Ross Levis
Or, thinking about it a bit longer, perhaps I could do a (LastItem).MakeVisible(false) and then a SelectedItem.MakeVisible(false). I'll try that. Cheers, Ross. Myles Penlington wrote: Easy - you can do it already it is on the Item.makevisible(false). -Original Message- From:

Re: [DUG]: Auto Scroll ListView

2002-10-17 Thread Ross Levis
. Myles Penlington wrote: Easy - you can do it already it is on the Item.makevisible(false). -Original Message- From: Ross Levis [mailto:ross@;stationplaylist.com] Sent: Thursday, 17 October 2002 1:53 p.m. To: Multiple recipients of list delphi Subject: [DUG]: Auto Scroll ListView Does

[DUG]: Auto Scroll ListView

2002-10-17 Thread Ross Levis
Does anyone have any code to scroll a ListView so that TopItem = a particular item (or item index). It is a shame that TopItem is readonly. Thanks, Ross. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTE

Re: [DUG]: Toolbutton tbsCheck not working

2002-10-16 Thread Ross Levis
Sorry, just found out I was toggling the down property manually in the onclick event, doh. Ross. Dennis Chuah wrote: You probably need a newer version of Comctl32.dll for the Win98 machine. Dennis. - Original Message - From: "Ross Levis" <[EMAIL PROTECTED]&g

[DUG]: Toolbutton tbsCheck not working

2002-10-16 Thread Ross Levis
D5 Pro/Win98. Clicking a toolbutton with tbsCheck is not toggling the Down property. In fact, the button is acting as if it is a standard tbsButton. I tried it on WinXP and it works. Is there anyway around it? Cheers, Ross.

Re: [DUG]: Bad news - Virus.

2002-10-02 Thread Ross Levis
Which is why I use Netscape 7. Stops all those popup ads too. Ross. [EMAIL PROTECTED] wrote: >>..that is automatically opened/run by outlook etc - >> >> > >Which is why I use Opera :-) > > --- New

RE: [DUG]: Please help

2002-10-01 Thread Ross Levis
Strings aren't objects and don't have properties or methods in Delphi. There are global functions & procedures to manipulate strings such as: NewString := Uppercase(myString); Ross. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf Of Vince Jones > Se

Re: [DUG]: uninstall kylix2

2002-08-29 Thread Ross Levis
I believe there is an "uninstall" script in the /usr/local/kylix2 directory. Ross. Brendon Toogood wrote: >just wondering how do you uninstall kylix2 i am running mandrake 8.0(i have >downloaded kylix3 open) > ---

[DUG]: TDateTimePicker Access Violation

2002-08-21 Thread Ross Levis
Win98 SE/D5.1 Pro. I'm using a TDateTimePicker for editing a date. At runtime, if I click in the year portion of the date and type any digit to enter a new year, I receive an EAccessViolation at address 83ECA098. I can't find any reference to it in a web search. Anyone help? Th

[DUG]: Menu appears white on XP

2002-08-14 Thread Ross Levis
enu on the main form which looks fine. Here is the main menu on the popup form which doesn't. Any ideas why this is happening? Cheers, Ross Levis http://www.StationPlaylist.com

RE: [DUG]: help with kylix2

2002-08-12 Thread Ross Levis
Checkout: http://www.codebake.com/createkylixapp.php Ross Levis. Brendon Toogood wrote: > Yes thanx a lot it compiled and ran in the kylix enviroment, > how do i now get > it to run out of the kylix enviroment, ie by just clicking on > the executable > file? than has

Re: [DUG]: Help with Kylix 2 open edition

2002-08-12 Thread Ross Levis
Well, you will at least need a "uses QForms" rather than Forms. Ross. brendon wrote: >i have a delphi 6 personal edition app >in the project it has this code > >uses > Forms, > addressbk in 'addressbk.pas' {Form1}; > >{$R *.res} > >begin > Application.Initialize; > Application.Title := 'Add

Re: [DUG]: CustomSort

2002-08-09 Thread Ross Levis
om the other and return the Sign of the result? > >Regards, > >Bevan > >--- >Bevan Edwardsmailto:[EMAIL PROTECTED] >Achieve Software Limited http://www.achieve.co.nz >Phone: (64-9) 444-4210 ICQ: 732011 >Fax: (64-9) 444-4201 >Mobile: (64-21) 979-603 > > &

[DUG]: CustomSort

2002-08-08 Thread Ross Levis
ollowing because the result will be bigger than an integer can hold. Result := Trunc(SecsPerDay*(Item1.Date - Item2.Date)); Can someone think of a better approach than this: if Item1.Date > Item2.Date then Result := 1 else if Item1.Date < Item2.Date then Result := -1 else Resul

[DUG]: Simulate F1 Help?

2001-10-11 Thread Ross Levis
Another Help question. Is there a Delphi command that emulates the pressing of F1 for Help? Application.HelpContext requires a HelpContext parameter but only my main parent controls have HelpContext set. More Info: I have a PageControl with 5 TabSheets, 1 of the TabSheets contains a further P

Re: [DUG]: Windows Help macros (OT)

2001-10-11 Thread Ross Levis
Thanks Patrick. ExecFile doesn't show in the list of macros available in the help software I'm using but I entered it & works! Cheers, Ross. Patrick Dunford wrote: >If you want to open a URL just use ExecFile. > >We use this for executing hyperlinks and it works just fine > >e.g. >!ExecFile(h

[DUG]: Windows Help macros (OT)

2001-10-10 Thread Ross Levis
Slighty off topic here. I'm writing a help file for my delphi app and I want to add a hyperlink to my website. I'm experimenting with ExecProgram which works like delphi's WinExec and requires an executable filename so doesn't accept a URL. There doesn't appear to be anything equivalent to

RE: [DUG]: Pascal / Delphi for Mac ????

2001-10-09 Thread Ross Levis
Maybe Kylix would work under Mac Linux. Ross. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of vss > Sent: Wednesday, 10 October 2001 14:10 > To: Multiple recipients of list delphi > Subject: [DUG]: Pascal / Delphi for Mac > > > HI. Does anyo

RE: [DUG]: Borland RAD Seminars - Ak, Wgtn, ChCh

2001-09-30 Thread Ross Levis
Stacey Verner wrote: > Try copying the whole of (between the quotes) > "http://www.123.co.nz/docs/borland rad seminar.doc" to you browser. I think spaces are not valid in a URL. The correct address is http://www.123.co.nz/docs/borland%20rad%20seminar.doc Ross. -

Re: [DUG]: String Encryption routine

2001-09-28 Thread Ross Levis
I'll give the code it to anyone who wants it but be warned, the checksum is very basic. For each character in the original string, it accumulates the ascii value+the position of the character. I am writing the app with Kylix in mind, ie. no direct WinAPI calls, but it will not be Open Source

Re: [DUG]: String Encryption routine

2001-09-26 Thread Ross Levis
Thanks for the offer Nirav but I'm successfully using a variation of Phil Scadden's simple routine. I've just added a simple checksum to it so I can tell if it's been tampered with. Cheers, Ross. NIRAV KAKU wrote: >Why not write an algorithm of your own? > >If you want to go the world stand

RE: [DUG]: String Encryption routine

2001-09-25 Thread Ross Levis
Hi Phil This looks useful. Can I assume it decrypts as well by passing the Encrypt param as False? Cheers, Ross. Phil Scadden wrote: > here is my favourite, very simple string to hex gobbledegooker. > > Function Encrypt (Src:String; Key:String; Encrypt : Boolean):string; > var >idx

RE: [DUG]: String Encryption routine

2001-09-25 Thread Ross Levis
Phil Scadden wrote: > here is my favourite, very simple string to hex gobbledegooker. > > Function Encrypt (Src:String; Key:String; Encrypt : Boolean):string; > var >idx :integer; >KeyLen :Integer; >KeyPos :Integer; >offset :Integer; >dest:string

RE: [DUG]: String Encryption routine

2001-09-25 Thread Ross Levis
Nic Wise wrote: > Does it need to be 2 way, or 1 way? MD5 is very good for one-way. Well I was thinking 2-way but I should be able to use 1-way. What or where is MD5? Cheers, Ross. --- New Zealand Delphi Users group

[DUG]: String Encryption routine

2001-09-25 Thread Ross Levis
Firstly, thanks to those who helped me find a Help authoring tool. I've searched the Net but not found some simple Delphi source to encrypt a string (based on a given key value). I've only found large component sets which are an overkill. I don't need strong encrytion but just something to dete

RE: [DUG]: Some pointers

2001-09-24 Thread Ross Levis
You should be able to pass a username & password in the http address string. I've seen it done before but I don't know the actual syntax. Ross. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of vss > Sent: Tuesday, 25 September 2001 17:25 > To: Multi

[DUG]: Help authoring software

2001-09-20 Thread Ross Levis
Can anyone suggest good, free, easy help authoring software. Cheers, Ross. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to:

RE: [DUG]: Help with Logic flows

2001-09-18 Thread Ross Levis
In a previous language I used, begin...end blocks had an overhead so were definately not recommended for single statements. I'm not sure about Pascal/Delphi. Ross. Robert Martin wrote: > Tottally agree Paul. Always using begin... end makes errors > far less common > and your code much more re

Re: [DUG]: System Tray app

2001-09-05 Thread Ross Levis
hut down. Returning true >indicates the application can be exited. >The actual attempt to close the application will occur when the message >WM_ENDSESSION is sent by Windows, which occurs if all applications return >true. > >>-Original Message- >>From: [EMAIL

RE: [DUG]: System Tray app

2001-09-04 Thread Ross Levis
Well I downloaded & installed RXLIB and setup a basic tray app. The EXE is 299k - 12k larger than an empty form. Doesn't seem too bad. I'll keep an eye on that if I use other controls. Thanks for the info, however. Cheers, Ross. [EMAIL PROTECTED] wrote: > You already have source on your pc

RE: [DUG]: System Tray app

2001-09-04 Thread Ross Levis
Sounds good Ben, thanks. Ross. Ben Taylor wrote: > hi! the easy drag/drop way: > > - get rxlib, drop the trayicon component onto the main form > - set the icon etc if you want > - setup a popupmenu with items for 'exit' etc. > (exit.onclick should just need form.close) > - edit project sourc

[DUG]: System Tray app

2001-09-04 Thread Ross Levis
Hi all My next project is to write a scheduler utility which will contain timer events but will not require a visible form for user interaction as it will be reading all the options setup in another program. I only want it to appear in the System Tray with a few right-click options like Enable/D

Re: [DUG]: drive path extraction

2001-09-03 Thread Ross Levis
Dave wrote: >Cool, >I've always written my own one of those (IncludeTrailingBackSlash) although >tending to use a smaller name. Never even thought of looking for one. > It also translates to a forward-slash '/' for Linux (with Kylix). Don't overlook the ExcludeTrailingBackSlash too. Bot

RE: [DUG]: drive path extraction

2001-09-02 Thread Ross Levis
David O'Brien wrote: > Drive := ExtractFileDrive(Application.ExeName) + '\' ; Or Drive := IncludeTrailingBackSlash(ExtractFileDrive(Application.ExeName)); Ross. --- New Zealand Delphi Users group - Delphi List - [EMAIL

[DUG]: EXE file size anomaly

2001-08-28 Thread Ross Levis
I have more info regarding this anomaly. I've made the discovery that even a blank form compiled on both machines produces different size EXEs. I removed all "Uses" clauses except "Forms". The sizes are 293,376 & 294,400 bytes. Not much but in theory they should be the same. The smaller EXE w

[DUG]: Audio files

2001-08-28 Thread Ross Levis
I've been trying to find 3rd party Delphi source that can read the header of WAV & OGG audio files to obtain the length of songs. I have found source for MP3. Can anyone here suggest a mailing list or newsgroup that may be able to help. Cheers, Ross.

<    1   2   3   4   >