Saturday, May 20, 2023

Sliding Button - 2

  Sliding Button - 2  
.
(Lucky number generator, Get your lucky number)
.
Version: 230504Th
.
Other versions
Version Link
nil No other versions so far.
.
About a decade ago I came up with an idea of creating a Windows Forums application having a special type of button. That button should be like such that whenever the user clicks on the button with the mouse, the button should slide from under the mouse pointer. That idea remained an idea and could not go any further.
.
Now! Few days ago, somehow, that idea again visited my brain and I decided to give it a try. For that very purpose I did some planning like what kind of windows forms application I should make for implementing that old idea of mine. After making a virtual list of work-wise application type candidates I selected a simple type and started developing the required application. In few hours I completed the 1st version of the application.
.
In this blog entry I am going to discus that application in some detail.
.
First I kept the working of the application as simple as possible. I named it "Slipping button". "Sliding button", "Get your lucky number" and "Lucky number generator" were other names in my consideration. I used "Lucky number generator" as text (display name, title) of the application. From applications's names it is obvious that it generates and displays a number as a lucky number. To keep things simple application randomly generates a lucky number between changeable two seed numbers.
.
Working of the application is simple and is as follows:
1)_Change seed number values or leave them as they are.
2)_Click "Get" button for getting lucky number.
*)__(This displays user's lucky number)
.
Fun starts when user clicks on the "Get" button because when user clicks on the "Get" button
either "Get" button remains on it's position and application displays the lucky number
or "Get' button simply and completely slides from under the mouse pointer and lucky number is not displayed.
Because of this behavior of the "Get" button user has to make multiple tries to get his/her lucky number. This behavior of the "Get" button can annoy, frustrate and entertain the user at the same time.
.
Following are some screen-shots of the above mentioned "Get your lucky number" application I made in c#.
.

.
[(*) Lucky number generater]
.
A view of the "Sliding Button", or "Slipping button" or "Get your luck number" or "Lucky number generater" application. First is name of this application and remaining three are it's nick names etc.
.
.
.
[ (0) Application loaded]
Application is loaded and is ready for use.
.
.
.
[(01) Seed number values are changed.]
User has changed booth seed numbers. Changing seed numbers is optional. User cand change both number, only one number or leave their values as it is.
.
.
.
[(02) Get button is clicked]
.
[(02a) "Get" button slided]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointer. Therefor no lucky number is displayed. In the following section different position on which "Get" button slided during the session are displayed.
.
[(02a1) "Get" button slided to the Bottom left corner.]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Bottom Left Corner. Lucky number is not displayed.
.
.
.
[(02a2) "Get" button slided to the Top right corner.]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Top Right Corner. Lucky number is not displayed.
.
.
.
[(02a3) "Get" button slided to the Top Left corner.]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Top Left Corner. Lucky number is not displayed.
.
.
.
[(02a4) "Get" button slided to the Center Left side]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Center Left Side. Lucky number is not displayed.
.
.
.
[(02a5) "Get" button slided to the Top Center side]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Top Center side. Lucky number is not displayed.
.
.
.
[(02a6) "Get" button slided to the Bottom Right corner.]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Bottom Right Corner. Lucky number is not displayed.
.
.
.
[(02a7) "Get" button slided to the Bottom Center side]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Bottom Center side. Lucky number is not displayed.
.
.
.
[(02a8) "Get" button slided to the Center Right corner.]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Center Right side. Lucky number is not displayed.
.
.
.
[(02b) Lucky number generated]
.
User clicked on the "Get" button and "Get" button remained on it's default position i.e Center, Center. Lucky number is generated and displayed.
.
.
.
[(03) Clear button clicked]
.
User clicked "Clear" button and form is cleared (reset to it's default state). First seed  number's valued is set to "1000" and Second seed number's value is set to "9999".
.
.
.
[(04) Help button clicked]
.
User clicked "Help" button and Help form is displayed. Help form displayes scrollable useful help information about this application.
.
.
.

.
Colors used for Border and Background of this post
Color HSL RGB Hex
 
60°, 20%, 35% 107, 107, 71 #6b6b47
 
60°, 19%, 85% 224, 224, 209 #e0e0d1
.

.
If there are any mistakes in this post then I will remove them whenever I will know about them.
.


No comments:

Post a Comment