Solved

Help:Changing Properities' Properities

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
code issue 8 129
Delphi Yen format 3 34
TEMBEDDEDWB how can i change its user agent ? 8 58
Need Help Delphi 2010 CheckBox1 Stored value in memo 13 66
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 The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 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