dgColumnIsVisible

4 messages Options
Embed this post
Permalink
Bernard Devlin-2

dgColumnIsVisible

Reply Threaded More More options
Print post
Permalink
I tried to add this as a comment on the screensteps site, but after
telling me I got the captcha wrong, the captcha mechanism froze up and
I couldn't do anything.

I'm trying to make a column invisible by the following command (after
creating the cols & data by script):

set the dgColumnIsInvisible[6] of pViewLongID to false

Having the reference to the DataGrid in a variable is not a problem
for setting the columns and data of the DG, so I wouldn't expect it to
be a problem when setting this property either.  But even hard-coding
the explicit name of the DataGrid does not work.

If I toggle the visibility of column 6 in the inspector, then I can
see the dgColumnIsVisible message in the message watcher, but not when
I issue the command.

Strangely enough, I put a breakpoint in the setProp handler for the
DataGrid library, but nothing would seem to trigger that (not even
setting the propery in the inspector).  I thought I should be able to
step through the code in DataGrid library, but apparently not.

Bernard
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Trevor DeVore

Re: dgColumnIsVisible

Reply Threaded More More options
Print post
Permalink
On Jul 8, 2009, at 11:54 AM, Bernard Devlin wrote:

> I tried to add this as a comment on the screensteps site, but after
> telling me I got the captcha wrong, the captcha mechanism froze up and
> I couldn't do anything.
>
> I'm trying to make a column invisible by the following command (after
> creating the cols & data by script):
>
> set the dgColumnIsInvisible[6] of pViewLongID to false

Two things:

1) There is no dgColumnIsInvisible property. It is dgColumnIsVisible.

2) Do you have a column named "6" or are you trying to hide column  
number six? you need to pass in a column name to dgColumnIsInvisible.

Debugging - I imagine this is related to the fact that the data grid  
stack has a rev prefix "revdatagridlibrary".

Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com    -    www.screensteps.com
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Bernard Devlin-2

Re: dgColumnIsVisible

Reply Threaded More More options
Print post
Permalink
I feel like an idiot.

But I see that you also mix up "dgColumnIsVisible" and
"dgColumnIsInvisible" in your reply :-)  I'm pretty sure I'm going to
be responsible for others getting them mixed up too....

As an attempt to back away from my idiocy...  The list of column
properties on the screensteps site shows the first property taking a
"coumn_name", but the subsequent properties take "column".  I read
that as being a column number.

>>
set the dgColumnSortType [ COLUMN_NAME ] of group "Data Grid" to "numeric"

dgColumnAlignment [COLUMN]
- Get/set the alignment for a column. Valid values are 'left', 'right'
or 'center'.

dgColumnIsVisible [COLUMN]
- Get/set the visibility of the column.

dgColumnIsResizable [COLUMN]
- Get/set whether or not a column is resizable.
<<

In fact, a column name makes for a much better API  -- no need to use
lineOffset to find the position of the named column, as I was doing.

Incidentally, is there anyway of using the debugger on libraries
beginning with "rev..."?   Hopefully I can find out my own mistakes
that way rather than come parading my carelessness here.

Regards,

Bernard

On Wed, Jul 8, 2009 at 8:40 PM, Trevor DeVore<[hidden email]> wrote:

> On Jul 8, 2009, at 11:54 AM, Bernard Devlin wrote:
>
>> I tried to add this as a comment on the screensteps site, but after
>> telling me I got the captcha wrong, the captcha mechanism froze up and
>> I couldn't do anything.
>>
>> I'm trying to make a column invisible by the following command (after
>> creating the cols & data by script):
>>
>> set the dgColumnIsInvisible[6] of pViewLongID to false
>
> Two things:
>
> 1) There is no dgColumnIsInvisible property. It is dgColumnIsVisible.
>
> 2) Do you have a column named "6" or are you trying to hide column number
> six? you need to pass in a column name to dgColumnIsInvisible.
>
> Debugging - I imagine this is related to the fact that the data grid stack
> has a rev prefix "revdatagridlibrary".
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Trevor DeVore

Re: dgColumnIsVisible

Reply Threaded More More options
Print post
Permalink
On Jul 9, 2009, at 3:50 AM, Bernard Devlin wrote:

> But I see that you also mix up "dgColumnIsVisible" and
> "dgColumnIsInvisible" in your reply :-)  I'm pretty sure I'm going to
> be responsible for others getting them mixed up too....

Oops, sorry about that. I had copied and pasted your code and wrote  
point number 2 before noticing that you were using the wrong property.  
Move along, nothing to see here...

> The list of column
> properties on the screensteps site shows the first property taking a
> "coumn_name", but the subsequent properties take "column".  I read
> that as being a column number.

I just updated the docs so that they all use COLUMN and I point out  
that COLUMN refers to the name of the column that you are targeting.

> Incidentally, is there anyway of using the debugger on libraries
> beginning with "rev..."?   Hopefully I can find out my own mistakes
> that way rather than come parading my carelessness here.

I think there is a global you can set to true that allows for  
debugging of IDE scripts in general. Maybe gRevDevelopment? I don't  
remember exactly but maybe someone else can chime in.

Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com    -    www.screensteps.com
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution