Delphi_Tips Issue No# 67 - 30 December 2002

James M Sandbrook <[email protected]> Mon, 30 Dec 2002 23:05:18 +1300
Newsgroups gmane.comp.lang.delphi.tips,gmane.spam.detected
Organization Sandbrook Software
Message-ID <[email protected]>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/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# 67 - 30 December 2002
===========================================
===========================================
Special thanks to this weeks sponsor: SUIPack!

Do you want to make your application have MacOS
or WinXP or more COOL themes (Skins)?
Do you want to create a non-rectangular window bases
on a bitmap?
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
===========================================
===========================================

Hello all!

The new year is nearly with us.
We hope you have a good day planned for New
Years day.
We wish you all a Happy New Year and hope it will
be a prosperus one for you and your families.
Thank you all for your support this year, and we hope
you've enjoyed 2002 as much as we have.

Our New years resolution is to add 'hundreds' of
additional Delphi Tips to the Delphi Collection.

----------------------------------------------

Every computer programmer should know about keeping
his or her PC System in good order, here are some
simple tips to help you with this task.

The Keyboard

You would be amazed at what can be found inside
a computer keyboard.
The first rule is 'do not eat while you are
working at the computer', food crumbs can
easily get stuck inside a keyboard, and it is a
real hard job getting them all out.
Do not drink fizzy drinks or any drinks for
that matter while you are using your computer.
If you must drink, have a small table or
even a chair next to your computer table to
put your drink on.
It is very easy to spill a drink on a
keyboard, but it is not easy cleaning the
keyboard afterwards.

You can clean the keyboard and the tops of
the keys, with a cleaning fluid applied to a
clean cloth or swab, but you must make
sure you do not let any of the cleaning solution
drip (run) inside the keyboard case.

If your computer is used for games you may find
its a good idea to use a steering wheel or joy
stick instead of the keyboard because the constant
key pressing when playing a game can ruin a key,
and also cause RSI/OOS.

When you are not using a keyboard you can cover it
with a keyboard cover to reduce the amount of
dust etc getting inside the keyboard.

The links below cover many different areas of Delphi
programming and there may be a link that will
help you with your latest Delphi project.

Make sure you check out the
"Find Of The Week"!

Do you know a good computer/programming
joke? Send it in!

Hey, and don't forget to send your Delphi Tips to:
[email protected]

All the best from
Mr Delphi Tips
James M Sandbrook
[email protected]
The Delphi Collection
Sandbrook Software
===========================================
*************************************************
The Delphi Collection Private Web Site

The Delphi Collection Private Web Site includes:

Over 800 Delphi tips
Delphi tutorials
Tips, secrets and tricks
How to use the Delphi IDE, Code Editor and Form
Designer effectively
Lots of full source code examples links
Graphics - Images you can use in your applications.
Splash screen templates, button images etc.
Lots of Delphi/Programming FAQ links
A years free updates of tips and tutorials

Purchase today for the small investment of only $35

Very affordable! Click Here To Order Now!
And get yourself the best Delphi tips around.
http://www.delphicollection.com/MainOrdPg.htm

Sincerely,
Mr Delphi Tips
James M Sandbrook
P.S. I'm sure that by now you can see that you won't
find these benefits anywhere else. Not at this price.
Your order is 100% secure!
http://www.delphicollection.com/MainOrdPg.htm
*************************************************
===========================================
Sandbrooks Download Land!
http://www.sandbrooksoftware.com/SDC/index.shtml
*************************************************
===========================================
Delphi Top Sites
http://www.sandbrooksoftware.com/TS/TS2/delphi.shtml
===========================================
**** Delphi Hot Tips ****

Create A Backup File:

You use the ChangeFileExt function to change a files extension.

Example:

Add a TMemo (Memo1) component to a form (Form1).

Add a TButton (Button1), double-click on Button1 and add this code:

procedure TForm1.Button1Click(Sender: TObject);
begin
  Memo1.Lines.LoadFromFile('e:\KiwiWordPro\Hints.txt');
  Memo1.Lines.SaveToFile(ChangeFileExt('e:\KiwiWordPro\Hints.txt',
'.bak'));
end;

[function ChangeFileExt(const FileName, Extension: string): string;]

The example shows you how to load a file into
a memo and save the file as a .bak file.
===
How to use the Enter key instead of the tab
key to move to the next control with a TEdit
component:

procedure TForm1.Edit2KeyPress(Sender: TObject; var Key: Char);
begin
  if Key = Char(VK_RETURN) then
   begin
     SelectNext(ActiveControl, True, True);
   end;
end;
===========================================

Special thanks to this weeks sponsor:  JFControls.

JFControls is a powerful integrated group of components
written  for Delphi and C++Builder.

Click here to learn more!
http://www.delphicollection.com/public/JFControls.htm
===========================================
More Delphi Tips from Greg Lief:
==========

REGISTERING INVISIBLE COMPONENTS

Q. I am creating two components, one of which
I am intending to use as a sub-component of
the other.
This second component will never be created
visually, so it really doesn't need to be
installed on the component palette.
In fact, I would prefer not to install on
the component palette.
But whenever I use the RegisterComponents
procedure it shows up.
Is there some way to prevent this from happening?

http://www.delphicollection.com/public/GregLief/gl_q&a154.html
---
DYNAMICALLY MOVING COLUMNS IN A DBGRID

Download accompanying example

Q. Being from a Paradox background, my users
are accustomed to using Control-R to rotate
columns around in a table so that the columns
they want to view are in the order they desire.
Can you recommend how this might be accomplished
in a grid even by just using cursor keys or
the tab key?
I am aware of the ColumnMoved method but it
does not seem to apply.

http://www.delphicollection.com/public/GregLief/gl_q&a155.html
---
CONVERTING A STRING TO A CHAR

Q. I have a set which is defined as ['F', 'S'].
I have a string variable called sItemCode that
has a value of, say, 'SLW'.
I want to see if the first position of sItemCode
is in the set.
How can I convert Copy(sItemCode, 1, 1) to a char
to see if it is in my set?

http://www.delphicollection.com/public/GregLief/gl_q&a156.html

===========================================
The Peter Morris Delphi Web Pages!

http://www.delphicollection.com/public/Tips/PeterMorris/index.shtml
---
Have a look at the very good DIB Components
from Peter Morris:

http://www.stuckindoors.com/dib/
---
G.L..A.D Components:
The excellent components from Greg Lief.
Have a look at the database components Greg
has done a great job with the G.L.A.D VCL.

http://callatg.com/~glief/glad/
---
Delphi & Programming/Web/OS/Linux/Kylix News!
Just updated!

http://www.delphicollection.com/public/Articles/DNews.shtml
---
Creating Custom Components

http://www.delphicollection.com/public/glcc/intro.htm
---
Emiel Hollander's Delphi Tips

http://www.delphicollection.com/public/Tips/Emiel/index.shtml
---
Oleg Zavgorodnij's Delphi Tips

http://www.delphicollection.com/public/Tips/BTips/Zavgorodnij.shtml
===========================================
Find Of The Week!

About New Years Day, Around the World:

Babylonia, The Romans, The Celts, Jewish New Year,
Muslim New Year, Hindu New Year, Vietnam, Japan,
Chinese New Year, New Year in the West.
http://www.geocities.com/Heartland/Plains/7214/newyear.htm

New Years Day Trivia History:
http://www.noahark.com/1/triviaholiday/trivianewyear.htm

Annie's New Year History Page:
http://www.annieshomepage.com/newyearshistory.html

New Years:
http://newyears.holiday.com/

Happy New Year:
http://wilstar.com/holidays/newyear.htm

Happy New Year 2003:
http://www.fathertimes.net/

Auld Lang Syne:
http://www.robertburns.org/encyclopedia/AuldLangSyne.5.html

Google:
http://directory.google.com/Top/Society/Holidays/New_Year/
===========================================
News:

News 2001
http://www.delphicollection.com/public/Articles/2001News.shtml

News 2002
http://www.delphicollection.com/public/Articles/DNews.shtml

Borland History News
http://www.delphicollection.com/public/Articles/BHistory.shtml
===========================================
**** Delphi Hot Tip ****

When using the Project Manager in Delphi 4+, you can
have small or large Project Manager ToolBar buttons.
To change the size of the buttons you drag the
bottom of the Project Managers ToolBar, up for
small buttons and down for large buttons.
===========================================
Joke Of The Week!

Q: What does a proud computer call his little son?
A: A microchip off the old block.
===========================================
Home Tip

If you need to keep curtains down so they
don't blow upwards in the wind you can sew
into the hem something metal like a small
steel rode (not sharp) or an old key etc.
===========================================
If you have a Delphi tip that you would like to
see here, please email
[email protected]
with the tip.
===========================================
A friend is a person with whom I may be sincere.
Before him I may think aloud.
-- Ralph Waldo Emerson, from Essays,
First Series. Friendship
===========================================
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!
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
===========================================
© Copyright Sandbrook Software 1998 - 2002.




To Unsubscribe, send a blank message to: [email protected]
 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/