Solved

Help:Changing Properities' Properities

Posted on 1997-07-02
1
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

696 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