Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3370,6 +3370,16 @@ on revIDECreateObject pObjectTypeID, pTarget, pLoc

__setPropertiesToDefaults tCreatedControlID, tObjPropsA

# 2023.06.06 MDW newly created objects should get unique names
if pObjectTypeID begins with "com.livecode.interface.classic.DataGrid" then
else
put 1 into tCount
repeat while there is a control (tObjectType & tCount)
add 1 to tCount
end repeat
set the name of tCreatedControlID to (tObjectType & tCount)
end if

## Set the size of the object to the size set in the Preferences
__setSizeToPreference tCreatedControlID, pObjectTypeID

Expand Down