Delphi_Tips Issue No# 75 - 10th July 2003
James M Sandbrook <[email protected]> Thu, 10 Jul 2003 20:16:57 +1200
| Newsgroups | gmane.comp.lang.delphi.tips |
|---|---|
| Organization | Sandbrook Software |
| Message-ID | <[email protected]> |
------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy Naturally Painless & Spray Away Backaches & Joint Pain. $19.97 http://www.challengerone.com/t/l.asp?cid=2867&lp=m331.html http://us.click.yahoo.com/tJIe0D/79VGAA/ySSFAA/i7folB/TM ---------------------------------------------------------------------~-> *** DelphiCollection.Com *** http://www.delphicollection.com Tips For International Delphi Developers You are receiving this newsletter because you have requested to be in our Delphi Tips mailing list. =========================================== Delphi_Tips Issue No# 75 - 10th July 2003 =========================================== =========================================== Special thanks to this weeks sponsor: Sunisoft. CodeCoffer is a new code protection tool for Delphi & C++Builder. It can protect your important code in Delphi and C++Builder applications from cracking. This is a great product and worth checking out! http://www.delphicollection.com/public/CodeCoffer.htm =========================================== =========================================== Hello all! We hope you are having a good week! Up until the 12 of August we have 12 prizes to be won! Yes that's 12 fully registered prizes. 5 Registered copies of SUIPack professional. 2 Registered copies of the KiwiWordPro word processor. 3 Registered copies of SMLPack professional. 2 Registered copies of the Sandbrook Software Suite. To find out more and be in to win click on the link below: http://www.delphicollection.com Browse down the page to view the tips and examples, Delphi links, etc. Send your Delphi Tips/Delphi links/Delphi Articles to: [email protected] We look forward to hearing from you. All the best from James M Sandbrook http://www.delphicollection.com ==================================== Do you want your applications to have MacOS or WinXP or other COOL themes (Skins)? Now you can do it without writing a single line of code! SUIPack is a suite of enhanced GUI components for Delphi/BCB to help you to create applications with cool themes. Compatible with: Delphi 5/6/7, C++Builder 5/6. http://www.delphicollection.com/public/SUIPack.htm ==================================== Today's Delphi Tips: TLabel - Fonts Bold - Italic - Underlined Text And Font Size: Bold text: Label1.Font.Style := [fsBold]; Italic text: Label1.Font.Style := [fsItalic]; Underlined text: Label1.Font.Style := [fsUnderline]; Strikeout: (Line through the text) Label1.Font.Style := [fsStrikeout]; Remove bold, italic etc. Label1.Font.Style := []; Changing the font size: Label1.Font.Size := 12; Using a TSpinEdit to change the font size: begin if not (SpinEdit1.Text = '') then Label1.Font.Size := SpinEdit1.Value; end; Changing the font name: Label1.Font.Name := 'Arial'; --- TLabel Text Alignment: Left: Label1.Alignment := taLeftJustify; Center: Label1.Alignment := taCenter; Right: Label1.Alignment := taRightJustify; === FileExists: [function FileExists(const FileName: string): Boolean;] Unit SysUtils - File Management Routines The FileExists function returns True if the file specified by FileName exists. If the file does not exist, FileExists returns False. procedure TForm1.Button1Click(Sender: TObject); begin if (FileExists('C:\TEST.TXT')) then ShowMessage('Test.txt is available for editing!') else Messagedlg('Error: File TEST.TXT doesn''t exist..', mterror, [mbok], 0) end; =========================================== Getting The Username: http://www.delphicollection.com/public/GregLief/gl_q&a79.html === Cannot Run Database Desktop! Q. I've started having a weird problem with the Database Desktop. Whenever I try to fire it up from within Delphi, I get the error "BDE is controlled by another .NET file". Any suggestions? http://www.delphicollection.com/public/GregLief/gl_q&a81.html === Restricting Mouse Cursor Movement: Q. Short of writing an OnMouseMove event, is there any way to restrict the range for moving the mouse cursor? http://www.delphicollection.com/public/GregLief/gl_q&a84.html === The Delphi Collection Buttons. http://www.specialady.com/TandR/DTips27.shtml === Accessing hidden properties. http://www.delphicollection.com/public/Tips/Latium/delphi008.html === Delphi Tips 'n' Tricks: http://www.delphicollection.com/public/Tips/PeterMorris/tips.htm =========================================== Delphi Top Sites http://www.sandbrooksoftware.com/TS/TS2/delphi.shtml --- Emiel Hollander's Delphi Tips http://www.delphicollection.com/public/Tips/Emiel/index.shtml =========================================== If this issue helped you then please vote for this mailing list here: All it takes is a simple click and you can the look at links and banners to many Delphi developer web sites. http://www.sandbrooksoftware.com/cgi-bin/TopSite2/rankem.cgi?id=James =========================================== If you have a Delphi tip that you would like to see here, please email [email protected] with the tip. If you know a Delphi developer who you think will find these Delphi tips useful, then do them a favour - let them know about this mailing list. Thank you! Mr Delphi Tips! James M Sandbrook Bringing you Delphi tips from all around the world! The Delphi Collection Web Site. http://www.delphicollection.com/public/index.shtml =========================================== Advertising Information: For information on advertising in the Delphi_Tips Issues and the Delphi Collection web site please send an email to: [email protected] =========================================== Note: This email is never sent unsolicited. You are receiving this email because you signed up for free "Delphi_Tips" from The Delphi Collection. If you do not wish to receive email from us please follow the simple removal instructions below. Subscribe: [email protected] Unsubscribe: [email protected] Other List owner: [email protected] Our Chat http://groups.yahoo.com/group/delphi_tips/chat Our Links Page http://groups.yahoo.com/group/delphi_tips/links Our Polls Page http://groups.yahoo.com/group/delphi_tips/polls =========================================== These Delphi Tips newsletters are compiled with SuperEd - Part of the Delphi Collection. =========================================== © Copyright Sandbrook Software 1998 - 2003. To Unsubscribe, send a blank message to: [email protected] Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/