RE: Grid class defined as read-only, but editing is allowed

2006-12-06 Thread Rick Schummer
You need to determine when the ReadOnly property is getting set to .F.

It could be code in the grid superclass hierarchy, or it could be code outside 
of the grid in the
form. What I would do is open up the debugger and set a breakpoint on the value 
changing for
mygrid1.ReadOnly (with the full containership included in the object 
reference). You might find each
of the columns' ReadOnly attribute is getting set individually as well.


Rick
White Light Computing, Inc.

www.whitelightcomputing.com
www.rickschummer.com
586.254.2530 - office
586.254.2539 - fax
  


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John J.
Mihaljevic
Sent: Wednesday, December 06, 2006 10:19 AM
To: [EMAIL PROTECTED]
Subject: Grid class defined as read-only, but editing is allowed

Hi all,

I created a grid class for the forms I'm designing with ReadOnly=.t..  When I 
pop this grid into one
of the tabs in the pageframe in my form, I look at it's properties and see that 
ReadOnly is still
.t..  But when I run the form, I'm able to edit records in the grid.  If I put
this.mygrid1.ReadOnly=.t. in the tab's Activate property, the grid becomes 
read-only.

Why is the read-only aspect of this grid going away when I run the form?
I've got no code in there that changes it to ReadOnly=.f..

Thanks very much,

John
The difference between a successful person and others is not a lack of 
strength, not a lack of
knowledge, but lack of will. - Vince Lombardi

* All mail scanned by Norton AntiVirus.  No AV software on your computer?
Remove me from your address book, please.

* Please respect my privacy.  Do not forward my address to anyone else or 
include me in emails sent
to multiple recipients.  Use BCC.



[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: Grid class defined as read-only, but editing is allowed

2006-12-06 Thread Tristan Leask
Rick why is it every post you make seems to come through twice!?

Tristan

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Rick Schummer


--
This email was sent to [EMAIL PROTECTED] Unless otherwise agreed expressly in 
writing by Marine Software Limited, 
this communication and attachments are to be treated as confidential 
and the information in it may not be used or disclosed except for the 
purpose for which it was sent.
If you are not the intended recipient of this  communication  you should 
destroy it without copying, disclosing or otherwise using its contents.
Please notify the sender immediately of the error. 
[EMAIL PROTECTED]
--



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: Grid class defined as read-only, but editing is allowed

2006-12-06 Thread John J. Mihaljevic
 You need to determine when the ReadOnly property is getting set to .F.

I set up break points, and ReadOnly is always .t. for the grid.  But I've
noticed in the form, after using the Builder to create all the columns in
the grid, that ReadOnly is .f. for each Column and Text in the grid.  So,
even though the grid itself is read-only (as defined in my class and as it
remains in the form), it appears as though the fact that the Columns and
Texts are defaulting to ReadOnly=.f. allows me to edit data in the grid.

So, I guess my next question is this.  Is there a way to make all columns in
a grid default to ReadOnly=.t.?  I could go through the grid (after I build
it with the builder) and change each column to ReadOnly=.f., but if there's
a quicker  easier way, I'd prefer that.  Especially if it can be done in
the grid class I created so any grid I build with the class will have that
built into it.

Thanks!

John
The difference between a successful person and others is not a lack of
strength, not a lack of knowledge, but lack of will. - Vince Lombardi

* All mail scanned by Norton AntiVirus.  No AV software on your computer?
Remove me from your address book, please.

* Please respect my privacy.  Do not forward my address to anyone else or
include me in emails sent to multiple recipients.  Use BCC.




___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Grid class defined as read-only, but editing is allowed

2006-12-06 Thread Peter Cushing
John J. Mihaljevic wrote:
 So, I guess my next question is this.  Is there a way to make all columns in
 a grid default to ReadOnly=.t.?  I could go through the grid (after I build
 it with the builder) and change each column to ReadOnly=.f., but if there's
 a quicker  easier way, I'd prefer that.  
Have you tried setting the grid itself to readonly after using the 
builder.  I have a few readonly grids on forms that seems to work fine.

Peter



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: Grid class defined as read-only, but editing is allowed

2006-12-06 Thread John J. Mihaljevic
Yeah, I have.  And for some reason, that works.

The grid class which I created (MyGrid) is ReadOnly=.t.

I put in several WAIT WINDOWS in the form - whenever I change tabs,
whenenever I enter the grid, etc., to show me the current status of the
grid's ReadOnly attribute, and it's always .t..

But when I enter the grid itself, I'm able to edit data.

But when I do as you mentioned (putting
thisform.mypageframe1.browse.mygrid1.readonly=.t.) in the form's Activate
method, I can't edit anything in the grid.

 Have you tried setting the grid itself to readonly after 
 using the builder.  I have a few readonly grids on forms that 
 seems to work fine.





___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Grid class defined as read-only, but editing is allowed

2006-12-06 Thread MB Software Solutions
John J. Mihaljevic wrote:
 Hi all,

 I created a grid class for the forms I'm designing with ReadOnly=.t..  When
 I pop this grid into one of the tabs in the pageframe in my form, I look at
 it's properties and see that ReadOnly is still .t..  But when I run the
 form, I'm able to edit records in the grid.  If I put
 this.mygrid1.ReadOnly=.t. in the tab's Activate property, the grid becomes
 read-only.

 Why is the read-only aspect of this grid going away when I run the form?
 I've got no code in there that changes it to ReadOnly=.f..

 Thanks very much,

 John
   

Hi John!

This happens if you add columns after you've set the grid's ReadOnly 
property.  Easiest thing to do:  Reset the ReadOnly property 
(right-click it in the Properties dialog box and select Reset To 
Default) and then set it to .T.   This will cascade the .T. to all 
columns in the grid (rather than you having to visit each individual 
column).

hth!
--Michael

-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
Work smarter, not harder, with MBSS custom software solutions!



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Grid class defined as read-only, but editing is allowed

2006-12-06 Thread MB Software Solutions
John J. Mihaljevic wrote:
 I set up break points, and ReadOnly is always .t. for the grid.  But I've
 noticed in the form, after using the Builder to create all the columns in
 the grid, that ReadOnly is .f. for each Column and Text in the grid.  So,
 even though the grid itself is read-only (as defined in my class and as it
 remains in the form), it appears as though the fact that the Columns and
 Texts are defaulting to ReadOnly=.f. allows me to edit data in the grid.

 So, I guess my next question is this.  Is there a way to make all columns in
 a grid default to ReadOnly=.t.?  I could go through the grid (after I build
 it with the builder) and change each column to ReadOnly=.f., but if there's
 a quicker  easier way, I'd prefer that.  Especially if it can be done in
 the grid class I created so any grid I build with the class will have that
 built into it.

 Thanks!

 John
   

There is a quicker way...see my last post (which I see hasn't posted 
yet!).  A couple clicks in the property box and you should be good to go!

-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
Work smarter, not harder, with MBSS custom software solutions!



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: Grid class defined as read-only, but editing is allowed

2006-12-06 Thread Dave Crozier
Tristan,
I only see one post for Rick.

Dave Crozier

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Tristan Leask
Sent: 06 December 2006 16:01
To: profox@leafe.com
Subject: RE: Grid class defined as read-only, but editing is allowed

Rick why is it every post you make seems to come through twice!?

Tristan

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Rick Schummer



--
This email was sent to [EMAIL PROTECTED] Unless otherwise agreed expressly
in writing by Marine Software Limited, 
this communication and attachments are to be treated as confidential 
and the information in it may not be used or disclosed except for the 
purpose for which it was sent.
If you are not the intended recipient of this  communication  you should 
destroy it without copying, disclosing or otherwise using its contents.
Please notify the sender immediately of the error. 
[EMAIL PROTECTED]

--



[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: Grid class defined as read-only, but editing is allowed

2006-12-06 Thread Tracy Pearson
I'm on the Tech list, I see 2 posts from Rick.

Tracy


 -Original Message-
 From: Dave Crozier
 Sent: Wednesday, December 06, 2006 11:49 AM

 Tristan,
 I only see one post for Rick.

 Dave Crozier

 -Original Message-
 From: Tristan Leask
 Sent: 06 December 2006 16:01

 Rick why is it every post you make seems to come through twice!?

 Tristan




___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


[NF] Rick Schummer's double posts (was Re: Grid class defined as read-only, but editing is allowed)

2006-12-06 Thread MB Software Solutions
Dave Crozier wrote:
 Tristan,
 I only see one post for Rick.

 Dave Crozier
   

Dave -- I get dupes of his like Tristan does.

-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
Work smarter, not harder, with MBSS custom software solutions!



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Grid class defined as read-only, but editing is allowed

2006-12-06 Thread Ed Leafe
On Dec 6, 2006, at 11:52 AM, Ed Leafe wrote:

   There is supposed to be a filter to block direct posting to
 ProFoxTech, but apparently it didn't make it intact through the
 server upgrade, and I hadn't thought of looking at it until now.

OK, I think that this is working correctly now. I just sent several  
emails directly to [EMAIL PROTECTED], and the filter caught them all.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.