--------------- FIDO MESSAGE AREA==> TOPIC: 269 DELPHI Ref: E5D00004 Date: 05/07/97 From: TOM MOORE Time: 02:37pm \/To: TOMMY USHER (Read 1 times) Subj: Re: System Tray !!!! *** Quoting Tommy Usher from a message to Christian Padovano *** CP>how can i put my icon program in the system tray of windowz 95 ? TU> There are several system tray icon components available. Some are TU> freeware... If you have Internet access, check some of the larger TU> Delphi web sites. Could you give an example of one or two components and a site or two to look for them on? Regards, Tom Moore --- Telegard v3.02/mL * Origin: Time Passages - 405-372-2880 (1:3814/8) --------------- FIDO MESSAGE AREA==> TOPIC: 269 DELPHI Ref: E5D00005 Date: 05/07/97 From: TOM MOORE Time: 02:40pm \/To: SERGEI KOSTAREV (Read 1 times) Subj: Re: Delphi/FoxPro compatibility *** Quoting Sergei Kostarev from a message to All *** SK> Please respond those who had an experience in establishing shared SK> of Delfi- and Foxpro-based applicaions to common database files. I know that you said you have delphi 1.0 but this what you are asking can not be done with 1.0. From what I am hearing, delphi 3.0 has built in ODBC support for FoxPro databases though. This may be something that you want to look into. Regards, Tom Moore --- Telegard v3.02/mL * Origin: Time Passages - 405-372-2880 (1:3814/8) --------------- FIDO MESSAGE AREA==> TOPIC: 269 DELPHI Ref: E5D00006 Date: 05/06/97 From: MARTIN MAAT Time: 07:14pm \/To: BRYAN SMITH (Read 1 times) Subj: An interesting Object Pascal "gotcha" Hallo Bryan BS> Can anyone explain why the message is INTEGER overflow, when it BS> seems to be a WORD problem ? The term 'integer' in a broader sense means 'whole number' and it is being used as such. To a computer, there is a distinct difference between integer arithmentic and floating point arithmetic, integer arithmetic being the whole number variety, signed or unsigned being irrelevant to the nature of things. Groeten, Martin. --- FMail/386 1.02 * Origin: -=[ E-mail: m_maat@knoware.nl .......... ]=- (2:286/420.1) --------------- FIDO MESSAGE AREA==> TOPIC: 269 DELPHI Ref: E5D00007 Date: 05/09/97 From: CHRIS MANN Time: 01:23am \/To: SIMON HUGGINS (Read 1 times) Subj: Owner draw listboxes On May 06 20:22 97, Simon Huggins of 2:440/7.15 wrote: SH> Yep, I worked that out but, I thought that someone *MUST* have some SH> code somewhere which does something similar. This code is from the Delphi 2 Developer's Guide. Hope it helps you out. procedure TTabListbox.CreateParams(var Params: TCreateParams); { We must OR in the styles necessary for tabs and horizontal scrolling These styles will be used by the API CreateWindowEx() function. } begin inherited CreateParams(Params); { lbs_UseTabStops style allows tabs in listbox ws_HScroll style allows horizontal scrollbar in listbox } Params.Style := Params.Style or lbs_UseTabStops or ws_HScroll; end; function TTabListbox.GetLBStringLength(S: String): word; { This function returns the length of the listbox string S in pixels } var Size: TSize; XS: String; begin { Get the length of the text string } Result := LoWord(GetTabbedTextExtent(Canvas.Handle, PChar(S), StrLen(PChar(S)), FNumTabStops, FTabStops^)); { Add a little bit of space to the end of the scrollbar extent for looks } XS := 'x'; GetTextExtentPoint32(Canvas.Handle, 'x', 1, Size); Inc(Result, Size.cx); end; Chris --- Msgedsq 2.2e * Origin: Esc1.71 - When you're old enough to drive the bus. (1:157/534.30) --------------- FIDO MESSAGE AREA==> TOPIC: 269 DELPHI Ref: E5E00000 Date: 05/09/97 From: BRYAN SMITH Time: 10:10am \/To: BART BROERSMA (Read 1 times) Subj: Sending Keys On 06 May 97 Bart Broersma said to All... BB> Problem 2: I need to send keys to the above mentioned DOS program to BB> simulate keystrokes. (Althoug the program is a DOS program, simply BB> stuffing the keyboard buffer won't do in this case.) All this to make BB> the program automatically perform a task, since it doesn't have BB> features like macro's PC-Magazine has a DOS program called Key-Fake which I have used to automate DOS programs. You may find it on their web site. Basically, it is a buffer stuffer, but it is sophisticated, and resists attempts by programs such as Lotus 123 (remember that ?) to purge their buffers on startup. --- PPoint 2.00 * Origin: Kingston, Canada (1:249/109.11) --------------- FIDO MESSAGE AREA==> TOPIC: 269 DELPHI Ref: E5E00001 Date: 05/09/97 From: ANDREAS BIRGERSON Time: 07:35pm \/To: ALL (Read 1 times) Subj: winexec Could someone please repost the WinExecAndWait source either in netmail or to this conference. [using Delphi 2.01] andreas --- GEcho 1.20/Pro * Origin: Lead me not into temptation. I can find it myself. (2:200/407) --------------- FIDO MESSAGE AREA==> TOPIC: 269 DELPHI Ref: E5E00002 Date: 05/08/97 From: DAVID HARPER Time: 08:40am \/To: ALL (Read 1 times) Subj: Explorer type directory list Hi All, hope you are having a nice day I have just been playing with Delphi 1 (the freebie) and would like to create an explorer (win95) or even a filemanager (win31) type of directory listing, with the little graphic folders opening and closing to show sub-directories. BUT, I don't want to show a directory listing, I want to be able to put my own text into the listbox - I want to create a sort of heading/sub-heading thing and when I click on a sub-heading the right hand window section (where the files are normally shown) will instead show some text or something. Is this possible with Delphi 1 - It did come with one sample which shows a directory listing but I couldn't get the sample to work and there doesn't seem to be any help for the control itself. -=> Yours sincerely, David Harper <=- --- Terminate 4.00 * Origin: BEACONS BBS 01874 611652- *The* educational support BBS! (2:442/402) --------------- FIDO MESSAGE AREA==> TOPIC: 269 DELPHI Ref: E5E00003 Date: 05/09/97 From: MICHAEL JEWELL Time: 06:58am \/To: GERARD DE VRIES (Read 1 times) Subj: Communications-library or -component TO: gdevries@noord.bart.nl * In a message originally to All, Gerard de Vries said: > Can anybody tell me if there's a communications-library or > -component for > Delphi. I'd like to access a serial port. I know there are > some functions > which provide access to ports, but I'm sure somebody must > have built a > "com-port" component for example. Also it would be nice to be > able to > implement protocols like X-modem or Y-modem. You could try these: SeComm11.zip, QccCom32.zip or ATComm32.zip You can get them from the internet (try the Delphi Exchange), or from Black Ice (01481 37156/37256). I haven't seen any components for XModem/Ymodem, apart from commercial offering. There's one called Commercial Library 3 for $149 ($249 with fax) that offers ANSI, TTY, VT52, VT100, VT200, Kermit, Compuserve, Xmodem, YModem and ZModem. Shame about the price, really. Cheers, /\/\ike --- * Origin: Black Ice - +44 1481 727140 - FidoNet (2:255/78) --------------- FIDO MESSAGE AREA==> TOPIC: 269 DELPHI Ref: E5F00000 Date: 05/09/97 From: MARTIN MAAT Time: 09:53am \/To: BRYAN SMITH (Read 1 times) Subj: Need insight into object behaviour. Hello Bryan, BS> I've seen advice that whenever you destroy anything yourself, you BS> should immediately set the pointer to nul. Does that solve this BS> problem ? This is just good practice which enables you to check on an object's value and know if it exists or not: if Assigned(Object) then it exists and you can do something with it else it doesn't and you may want to create it before you proceed or do nothing at all That is, you can check for the objects _you_ are responsible for. You should not be bothered with either cleaning up or creating objects encapsulated within other objects and you should not try to get involved. This is mainly what OOP is all about. It wouldn't take you longer than 1 minute to find out whether the font dialog checks for a nil value before destroying it's font property. (if it does, your effort to destroy it will still be no good bad practice but won't cause errors, if it doesn't you'll get the error just the same) Usually things don't work that way and they should not either. The font dialog cannot prevent others doing nasty things with it's object properties (well meant or not). It is itself responsible for creating the font object, so it will be available to users like you, and it will clean it up too when it's no longer needed. It would be almost indecent to interfere :-). Groeten, Martin. --- FMail/386 1.02 * Origin: -=[ E-mail: m_maat@knoware.nl .......... ]=- (2:286/420.1) --------------- FIDO MESSAGE AREA==> TOPIC: 269 DELPHI Ref: E5F00001 Date: 05/09/97 From: MARTIN MAAT Time: 10:52am \/To: BART BROERSMA (Read 1 times) Subj: Sending Keys Hallo Bart BB> Problem 1: I need to determine if a given DOS program is running BB> (only know the .exe name, lets say wp.exe (while in fact it is not BB> wp...)) and get a handle to it. FindWindow API function. BB> Problem 2: I need to send keys to the above mentioned DOS program BB> to simulate keystrokes. SendMessage(WM_KEY... something like that. I never got it working with notepad being the target. Finding windows was easy, sending keystrokes never worked. I tried SendMessage and PostMessage with several messages (WM_CHAR, WM_KEYDOWN, etc.). However, this should be the way to go. If you get it working, please post the code. Groeten, Martin. --- FMail/386 1.02 * Origin: -=[ E-mail: m_maat@knoware.nl .......... ]=- (2:286/420.1)