Skip to content

Give cursor radio buttons their own sequential IDs in propsheet#6231

Merged
DHowett merged 2 commits intomasterfrom
dev/miniksa/propsheet
May 28, 2020
Merged

Give cursor radio buttons their own sequential IDs in propsheet#6231
DHowett merged 2 commits intomasterfrom
dev/miniksa/propsheet

Conversation

@miniksa
Copy link
Member

@miniksa miniksa commented May 27, 2020

Summary of the Pull Request

For a radio button group to work properly, they need sequential IDs. This moves the cursor radio buttons on the conhost property sheet to be sequential.

References

PR Checklist

Detailed Description of the Pull Request / Additional comments

  • CheckRadioButton takes a contiguous group of IDs. It will set one item in the list and then uncheck the rest. When a new one was added to the group, it was added to the end of the segment in the IDs file, but not immediately after the existing radio buttons. This means it accidentally turned off all the other buttons in the middle.
  • To resolve this, I moved all the cursor buttons into their own sequential group number and I deprecated the old values.

Validation Steps Performed

  • Ensured that the "Discard Old Duplicates" value was set in the registry, walked through debugger as conhost packed the TRUE value into the property sheet blob, walked through the property sheet console.dll as it unpacked the TRUE, then observed that the checkbox was actually set instead of getting unset by the CheckRadioButton call that went from 107 to 119 and accidentally unchecked number 112, IDD_HISTORY_NODUP even though I swear it was just set.

… erasing other controls between them sequentially with the CheckRadioButton call.
@miniksa miniksa added Product-Conhost For issues in the Console codebase Issue-Bug It either shouldn't be doing this or needs an investigation. Area-Settings Issues related to settings and customizability, for console or terminal labels May 27, 2020
@miniksa miniksa self-assigned this May 27, 2020
Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

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

Whoops, my bad. Thanks for catching this!

@DHowett DHowett added the AutoMerge Marked for automatic merge by the bot when requirements are met label May 28, 2020
@ghost
Copy link

ghost commented May 28, 2020

Hello @DHowett!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@DHowett DHowett merged commit e390111 into master May 28, 2020
@DHowett DHowett deleted the dev/miniksa/propsheet branch May 28, 2020 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Settings Issues related to settings and customizability, for console or terminal AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Conhost For issues in the Console codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants