Solved

Help:Changing Properities' Properities

Posted on 1997-07-02
1
217 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 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

11 Experts available now in Live!

Get 1:1 Help Now