Data Grids are working great fro me now, thanks to yhose who helped.
I have one more piece of the puzzle left. I have a handler that determines excatly what type of object is currently selected (field, list, combbobox, check box, etc) by looking at the object type in conjunction with things like the style property. I see that data grids are group objects but is there some other property I can check that will tell me it's a data grid?
Thanks,
Pete
Data Grid property names
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Hmm, I'd say your best bet is to check for the presence of the 'dgData' custom property set.
Jan Schenkel.
Code: Select all
function isDatagrid pLongId
if word 1 of pLongId is "group" and "dgData" is among the lines of the customPropertySets of pLongId
then return true
else return false
end isDatagrid
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Contact:
One small tweak Jan. Change dgData to dgProps and your handler should be good to go.
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
Or try this prop, which is meant for exactly this purpose
Best
Klaus

Code: Select all
function isDatagrid pLongId
return (the dgProps["control type"] of pLongID = "Data Grid")
end isDatagrid
Klaus