-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Rule “set-the-scrollbars-property-if-the-textbox-is-multiline/…
…rule” (#8235)
- Loading branch information
Showing
4 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+16.5 KB
rules/set-the-scrollbars-property-if-the-textbox-is-multiline/multiline_bad.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.93 KB
rules/set-the-scrollbars-property-if-the-textbox-is-multiline/multiline_good.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.8 KB
rules/set-the-scrollbars-property-if-the-textbox-is-multiline/multilinetextbox.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions
27
rules/set-the-scrollbars-property-if-the-textbox-is-multiline/rule.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
type: rule | ||
title: Do you set the ScrollBars property if the TextBox is Multiline? | ||
uri: set-the-scrollbars-property-if-the-textbox-is-multiline | ||
authors: | ||
- title: Adam Cogan | ||
url: https://ssw.com.au/people/adam-cogan/ | ||
created: 2014-03-14T02:02:00.000Z | ||
guid: e5c31a04-6a24-4b9d-a657-8c10a7e0bc8d | ||
--- | ||
If a TextBox has Multiline set to true, then the ScrollBars property should be set to "Both" or at least "Vertical". | ||
|
||
<!--endintro--> | ||
|
||
::: bad | ||
![Figure: Bad example - Multiline TextBox without "Vertical" scroll bar.](multiline_bad.gif) | ||
::: | ||
|
||
:::good | ||
![Figure: Good example - Multiline TextBox with "Vertical" scroll bar](multiline_good.gif) | ||
::: | ||
|
||
:::good | ||
![Figure: Good example - Set the ScrollBars property to "Vertical" if the TextBox is Multiline](multilinetextbox.gif) | ||
::: | ||
|
||
We have a program called [SSW Code Auditor](https://ssw.com.au/ssw/CodeAuditor/) to check for this rule. |