Skip to content

newly created objects should get unique names #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: OpenXTalk-develop-1.963.1
Choose a base branch
from
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