Thanks Again Trevor!

I have it working now. I shared it on revOnline, DataGrids_CheckBoxes_and MenuOptions.

The following is the specifics of what I did:

Option Menu Button Column Behavior-
on FillInData pData
  --set the text of field 1 of me to pData
-- Lock messages so that menuPick isn't fired when setting the menuHistory
   lock messages
set the menuhistory of button 1 of me to lineOffset(pData, the text of button 1 of me)
   unlock messages
end FillInData

getProp dgDataControl
   --required by library  so that it can locate your control.
   return the long id of me
end dgDataControl

on menuPick pChosenItem
   setDataOfIndex the dgIndex of me, the dgColumn of me, pChosenItem
end menuPick

----------------

Checkbox Button Column Behavior-
getProp dgDataControl
   return the long id of me
end dgDataControl

on mouseDown pMouseBtnNum
   dgMouseDown pMouseBtnNum
setDataOfIndex the dgHilitedIndexes of me, the dgColumn of the target, (the hilited of target)
end mouseDown


Thanks!

John Patten

---------------------snip--------------------------
Message: 3
Date: Wed, 31 Mar 2010 09:28:36 -0400
From: Trevor DeVore <li...@mangomultimedia.com>
Subject: Re: DataGrid Forms, checkboxes and Pull-Down buttons?
To: How to use Revolution <use-revolution@lists.runrev.com>
Message-ID: <1c56ffc2-a6a8-417f-93e6-92f83d36e...@mangomultimedia.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

On Mar 30, 2010, at 1:43 PM, John Patten wrote:

I have been searching the list and found those same resources you
describe. I'm closer, but still not quite getting the concept. I
noticed that tutorial examples are using Table and not Form
DataGrids.  I have been using the Form version of the DataGrid, are
the examples you mention only workable when the DataGrid is a Table
style?

Yes, the example will work with a form.

These are the steps you will go through when working with the data in
your data grid:

1) Assign data to data grid. Data grid stores internal array.

2) The FillInData handler in the row template inserts data from array
into UI controls.

3) User interacts with UI control (clicks on checkbox, makes selection
using option menu)

4) You store result of user interaction back in data grid array.

5) You ask the data grid for the value of the array using the
dgDataOfIndex/dgDataOfLine or GetDataOfIndex/GetDataOfLine.

At which point are you getting stuck?


_______________________________________________
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

Reply via email to