Solved

Help:Changing Properities' Properities

Posted on 1997-07-02
1
223 Views
Last Modified: 2010-08-05
Hello, there!

I am working on a TStringGrid, I want to modify the
"TStringGrid.Options" 's goEditing properities on or off at runtime. I know it is possible to change like this:
StringGrid.Options := [] {Switch off all Options}
StringGrid.Options := [goEditing] {Switch on goEditing Options}

But it do require us to preset all the Options in the coding, is it possible(for example).(Of cource I know it do not work)
StringGrid.Options[goEditing] := False

Therefore I can only change one of the Options, but not affect other options.
Thanks, please tell me if you know a way to solve these.

James.
0
Comment
Question by:jhui
1 Comment
 
LVL 5

Accepted Solution

by:
ronit051397 earned 50 total points
ID: 1338089
if you want to omit the goEditing and leave the other options as they are, write:

procedure TForm1.Button1Click(Sender: TObject);
begin
  stringGrid1.Options:=stringGrid1.Options-[goEditing];
end;

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now