More DataGrid Questions...
Posted: Tue May 14, 2013 11:39 pm
I am really trying to mentally grasp what goes on with the DataGrid. I feel that I really get it, and I am doing everything that the tutorials, lessons, and other RunRev material advise, however, they still are not listening to me.
First of all, I have been more concerned with using Forms, not Tables. I have created a file dedicated strictly to testing out the DG, and am currently operating a VERY simple process of positioning and filling data (3 records with 2 items each) into 2 controls on the Row Template.
When I push the "Row Behavior" button in the Property Inspector after creating a DataGrid on my card, nothing happens. Rather, the first time I push the button, an invisible button "Behavior Script" is created on the Row Template card in the respective stack, but it does not bring up the script window, as the tutorials seem to imply it will. Furthermore, once I have pressed the "Row Behavior" button for the first time, and the button exists on the Row Template, the button in the Property Inspector does nothing on any subsequent click. Is this the way it is supposed to function?
Next question: when I am trying to lay out my control, using the LayoutControl handler built into the "Behavior Script", I expect that the default parameter pControlRect will be somehow passed into the handler. This does not appear to be the case; when I use the variable watcher to observe what happens, four seemingly unimportant number are placed in the variable, if it gets populated at all. Do I have to do something other than simply using the " set the dgData of group "My DataGrid" of me to theArray " code in the card script? I am not expressly calling LayoutControl, but I know there is a lot going on behind the scenes, and none of the examples does so.
So, I know this is long; I am trying to include all the necessary details; to recap, my two questions are as follows:
1. My "Row Behavior" button on the Property Inspector is not calling up the script window for any stack I open with a DataGrid Form. Is this normal/what is the function of this button supposed to be?
2. What calls the LayoutControl handler in the behavior script, and where does the pControlRect parameter come from? Mine is not being passed any useful information, even though I have followed all steps presented in the lessons.
Thanks so much. These answers will be my breakthrough!
Phil E.
First of all, I have been more concerned with using Forms, not Tables. I have created a file dedicated strictly to testing out the DG, and am currently operating a VERY simple process of positioning and filling data (3 records with 2 items each) into 2 controls on the Row Template.
When I push the "Row Behavior" button in the Property Inspector after creating a DataGrid on my card, nothing happens. Rather, the first time I push the button, an invisible button "Behavior Script" is created on the Row Template card in the respective stack, but it does not bring up the script window, as the tutorials seem to imply it will. Furthermore, once I have pressed the "Row Behavior" button for the first time, and the button exists on the Row Template, the button in the Property Inspector does nothing on any subsequent click. Is this the way it is supposed to function?
Next question: when I am trying to lay out my control, using the LayoutControl handler built into the "Behavior Script", I expect that the default parameter pControlRect will be somehow passed into the handler. This does not appear to be the case; when I use the variable watcher to observe what happens, four seemingly unimportant number are placed in the variable, if it gets populated at all. Do I have to do something other than simply using the " set the dgData of group "My DataGrid" of me to theArray " code in the card script? I am not expressly calling LayoutControl, but I know there is a lot going on behind the scenes, and none of the examples does so.
So, I know this is long; I am trying to include all the necessary details; to recap, my two questions are as follows:
1. My "Row Behavior" button on the Property Inspector is not calling up the script window for any stack I open with a DataGrid Form. Is this normal/what is the function of this button supposed to be?
2. What calls the LayoutControl handler in the behavior script, and where does the pControlRect parameter come from? Mine is not being passed any useful information, even though I have followed all steps presented in the lessons.
Thanks so much. These answers will be my breakthrough!
Phil E.