Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Help:Changing Properities' Properities

Posted on 1997-07-02
1
Medium Priority
?
276 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 200 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

618 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