Re: Getting Data Grid props

2009-04-08 Thread Paul Looney

Answering my own question:

put the dgProps [row height] of group Data Grid

works fine, but:

 put the dgProps [column margins] of group Data Grid

does not?
PL


On Apr 8, 2009, at 1:49 PM, Paul Looney wrote:

How does one get the column margins and the row height of a  
data grid via script. I have tried everything I can think of:


put the dgProp (column margins) of group Data Grid

etc.
etc.
Thanks in Advance,
Paul Looney
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Getting Data Grid props

2009-04-08 Thread Trevor DeVore

On Apr 8, 2009, at 5:50 PM, Paul Looney wrote:


Answering my own question:

put the dgProps [row height] of group Data Grid

works fine, but:

put the dgProps [column margins] of group Data Grid

does not?


Hi Paul,

I just dropped a data grid onto a card, selected it and executed the  
following in the message box:


put the dgProps[column margins] of selobj()

I saw 8 appear. Are you getting empty?

Regards,

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Developer Resources: http://revolution.bluemangolearning.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Getting Data Grid props

2009-04-08 Thread Paul Looney

Trevor,
It is working fine now?!?
Thank you,
PL
PS I've been working with the data grid almost non-stop since last  
Thursday. It is fantastic!!!



On Apr 8, 2009, at 7:05 PM, Trevor DeVore wrote:


On Apr 8, 2009, at 5:50 PM, Paul Looney wrote:


Answering my own question:

put the dgProps [row height] of group Data Grid

works fine, but:

put the dgProps [column margins] of group Data Grid

does not?


Hi Paul,

I just dropped a data grid onto a card, selected it and executed  
the following in the message box:


put the dgProps[column margins] of selobj()

I saw 8 appear. Are you getting empty?

Regards,

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Developer Resources: http://revolution.bluemangolearning.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Getting Data Grid props

2009-04-08 Thread Trevor DeVore

On Apr 8, 2009, at 11:29 PM, Paul Looney wrote:


Trevor,
It is working fine now?!?


Well that was easy then :-)

PS I've been working with the data grid almost non-stop since last  
Thursday. It is fantastic!!!


Glad to hear it!

Regards,

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Developer Resources: http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Getting Data Grid props

2009-04-08 Thread Paul Looney

Trevor,
You are keeping late hours.

The reason for my question about the margins is:
I use a 15 pixel dimension grid for laying out the objects in the  
stacks in my business system. Thus all fields have a line height of 15.
This is smaller than the default data grid, so I have to change  
change the row height to 15 and the margins to 5.
I was doing the margins with a repeat loop, but, obviously the  
column margins is faster. Thank you, again.


It would be nice to be able to set the column margins in the Text  
formatting panel of the Object Inspector - as one does with non-grid  
fields.

Paul Looney

On Apr 8, 2009, at 8:44 PM, Trevor DeVore wrote:


On Apr 8, 2009, at 11:29 PM, Paul Looney wrote:


Trevor,
It is working fine now?!?


Well that was easy then :-)

PS I've been working with the data grid almost non-stop since last  
Thursday. It is fantastic!!!


Glad to hear it!

Regards,

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Developer Resources: http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Getting Data Grid props

2009-04-08 Thread Trevor DeVore

On Apr 8, 2009, at 11:55 PM, Paul Looney wrote:


Trevor,
You are keeping late hours.


I've was traveling on the west coast for the last week and a half so  
my internal clock is all messed up.



The reason for my question about the margins is:
I use a 15 pixel dimension grid for laying out the objects in the  
stacks in my business system. Thus all fields have a line height of  
15.
This is smaller than the default data grid, so I have to change  
change the row height to 15 and the margins to 5.
I was doing the margins with a repeat loop, but, obviously the  
column margins is faster. Thank you, again.


It would be nice to be able to set the column margins in the Text  
formatting panel of the Object Inspector - as one does with non-grid  
fields.


Yes, there are still some properties that need to be added to the  
property inspector in a future version and some others that need to be  
fleshed out more.


For example, setting the color Header ('header background color') or  
Header hilite ('header background hilite color') of a data grid  
table in the Property Inspector allows for a single solid color. When  
using the API you can actually set those properties to:


a) a solid color
b) two colors, one per line
c) a fillGradient array

(a) is the standard way to set colors on a Rev control. (b) takes the  
two colors you pass in and creates a gradient for you automatically so  
you don't have to worry about working with the fillGradient property.  
(c) is for complete control as it allows you to customize the gradient  
displayed in the header using the fillGradient array.


It would be nice to have UI for (b) and (c), or at least for (b). For  
now you can just do something like this:


set the dgProps[header background color] of group Data Grid to  
125,125,125  cr  240,240,240


Regards,

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Developer Resources: http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution