Skip to content
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

Shakedown of field menu items #1957

Merged
merged 13 commits into from
Jan 15, 2025
Merged

Shakedown of field menu items #1957

merged 13 commits into from
Jan 15, 2025

Conversation

rmkaplan
Copy link
Contributor

@rmkaplan rmkaplan commented Jan 5, 2025

This addresses field menu-item issues:
#1953
#1952
#1950
#1949

It now validates the IDENTIFIER, raising an error if it is not a string or non-NIL atom. And it uppercases, for consistency.

MB.ADD has an extra argument INCREMENTALUPDATES. If defaulted to NIL, the screen will not be updated at all until all the items are added. If T, the update will happen after each insertion, as before.

The last inserted items is not highlighted at the end of the MB.ADD, and the selection is disabled.

@rmkaplan
Copy link
Contributor Author

rmkaplan commented Jan 6, 2025

I added a small change to to non-field menu items to suppress copy-selecting, cf #1297

@fghalasz
Copy link
Member

fghalasz commented Jan 9, 2025

@rmkaplan The first two arguments to the call to TEDIT.INSERT.OBJECT in the INITSTATE portion of MB.FIELD.CREATE are in the wrong order.

Also, from Notecards standpoint, uppercasing all IDENTIFIERS is not ideal. In the original code, Property Names are case sensitive. And I don't know which of the many Notecards extensions and applications depend on that case sensitivity. Currently I am using the Property Names as IDENTIFIERS, so if IDENTIFIERS are all U-CASEd I loose case sensitivity. My alternative is a relatively complicated mapping where I keep a permanent record of the Property Name to IDENTIFIER map.

@rmkaplan
Copy link
Contributor Author

rmkaplan commented Jan 9, 2025 via email

Copy link
Member

@fghalasz fghalasz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TEdit Menu Fields are all working as expected in Notecards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants