Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Tony Vignone
  Where is Tony Vignone?
 St Augustine
 Florida - United States
 Tony Vignone
 Tags
Subject: Another Big Control (Final Revision)
Thread ID: 411778 Message ID: 411778 # Views: 224 # Ratings: 5
Version: Visual FoxPro 9 SP2 Category: Classes and Objects
Date: Monday, September 15, 2014 10:23:23 PM         
   


REVISIONS

(Revision 1 - Includes Class Builder: 9/16/2014 02:15 GMT) --- a mistake
(Revision 2 - Includes Expanded Class Builder, Fixes and Longer Title and Caption: 9/16/2014 07:01 PM GMT)
(Revision 3 - Fixes, mdots, and enhanced Class Builder: 9/18/2014 03:04 PM GMT)
(Revision 4 - Fixes, and addition to Builder - Ability to Change Size of Control 9/20/2014 07:56 PM GMT)
(Revision 5 - Fixes to the Spinner Builder only and some additions 9/21/2014 11:07 PM GMT)
(Final Revision - Fixes and Builders for all 3 Big Controls 9/24/2014 2:34 PM GMT)

https://www.foxite.com/uploads/8287d7d7-3a52-4fbf-a114-ff36f9669079.zip

Message ID 412286 below contains a consolidation of Usage Description of the Controls and Builders from both threads,


===================================================================================================

BIG CONTROLS FOR TOUCH TABLETS (with Big Fingers)

If you are designing for a Tablet in Desktop Mode, you might want to use big check boxes, big option buttons and big spinners for finger touching, especially big fingers. I have many of my applications on a Tablet and use these classes.

Included in the download is a Class Library with three classes:
A Big CheckBox Class, a Big Option Button Class and a the new Spinner Class.
You may freely alter their sizes. But keep the proportions the same.

A previous posting (Thread ID 411451) described the use of the big CheckBox and big OptionButton.

Here is a third one - the Big Spinner.

A sample form called "TestBigSpin.scx" is also included.

RULES FOR BIG SPINNER:

1. There is a title and caption for the Value Box that you may set.

2. There is a spinHighVaue, spinLowValue and Increment that must be set similar to VFP spinners.

3. The width of the Value Box is determined by the size of the High and Low Values and is done at run time (there is not builder for this class). The class shows the default size for up to 4 digits in the value. If the High or Low Value is more than 4 digits, then the width is increased at run time so plan for that when placing objects to its right.

4. Normally, the up/down arrows are not visible and become visible only when needed, by touching (clicking) the Value Box. However, you may make the arrows always visible by setting "ArrowsPersist" to TRUE.

5. For each click of the arrows, the value increments/decrements by the value of the "Increment".

6. If you hold down the arrows for more than one second, the value will repeatedly change every 100 milliseconds. This timing may be changed with the "SpinSpeed" property.

7. The mask for the display value is determined by the number of decimal places in the high/low/increment values but may be overridden by the value in the "DecPlaces" property.

Here is a repeat of Bernard's instructions on how to use it...

To activate the builder, drop an instance of your Spinner class on a form. Select the spinner and the Favorites Tab in Properties and select the property - _BigSpinnerBuilder. When you do, a button will appear above, same as the Anchor Builder. Clicking it opens the builder to set properties.

Tony

ENTIRE THREAD

Another Big Control (Final Revision) Posted by Tony Vignone @ 9/15/2014 10:23:23 PM
RE: Another Big Control for Tablets Posted by Bernard Bout @ 9/16/2014 1:24:10 AM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/16/2014 1:42:17 AM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/16/2014 3:40:38 AM
RE: Another Big Control for Tablets Posted by Bernard Bout @ 9/16/2014 6:17:09 AM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/16/2014 6:07:20 PM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/16/2014 9:24:30 PM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/16/2014 10:25:37 PM
RE: Another Big Control for Tablets Posted by Bernard Bout @ 9/17/2014 2:56:54 AM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/17/2014 3:15:10 AM
RE: Another Big Control for Tablets Posted by Bernard Bout @ 9/18/2014 1:17:37 AM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/18/2014 4:29:59 PM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/18/2014 5:11:47 PM
RE: Another Big Control for Tablets Posted by Tore Bleken @ 9/18/2014 8:48:12 PM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/18/2014 9:10:51 PM
RE: Another Big Control for Tablets Posted by Tore Bleken @ 9/18/2014 9:28:07 PM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/18/2014 9:43:01 PM
RE: Another Big Control for Tablets Posted by Tore Bleken @ 9/18/2014 9:48:18 PM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/18/2014 9:58:59 PM
RE: Another Big Control for Tablets Posted by Bernard Bout @ 9/19/2014 1:00:46 AM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/19/2014 3:41:35 AM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/19/2014 3:53:57 AM
RE: Another Big Control for Tablets Posted by Bernard Bout @ 9/19/2014 4:27:32 AM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/19/2014 5:44:28 PM
RE: Another Big Control for Tablets Posted by Bernard Bout @ 9/22/2014 2:40:49 AM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/19/2014 6:46:41 PM
RE: Another Big Control for Tablets Posted by Bernard Bout @ 9/22/2014 5:33:43 AM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/22/2014 5:48:00 PM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/19/2014 8:22:00 PM
RE: Another Big Control for Tablets Posted by Bernard Bout @ 9/22/2014 2:42:00 AM
RE: Another Big Control for Tablets Posted by Tony Vignone @ 9/21/2014 2:12:29 PM
RE: Another Big Control (Revision 3) Posted by Tony Vignone @ 9/20/2014 9:58:40 PM
RE: Another Big Control (Revision 4) Posted by Tony Vignone @ 9/22/2014 6:24:54 PM
RE: Another Big Control (Revision 4) Posted by Bernard Bout @ 9/23/2014 1:26:03 AM
RE: Another Big Control (Revision 4) Posted by Tony Vignone @ 9/23/2014 3:35:19 AM
RE: Another Big Control (Revision 4) Posted by Bernard Bout @ 9/23/2014 8:18:21 AM
RE: Another Big Control (Revision 4) Posted by Tony Vignone @ 9/23/2014 5:47:25 PM
RE: Another Big Control (Revision 4) Posted by Tony Vignone @ 9/24/2014 4:56:24 PM