Properties is a Visual Basic term for all the qualities a control has to do what it is designed to do. For want of a better word that is the subject of this post.
Currently the list is (for adding a (New)Control to bas code under NewControl function:
ConType: Button=1, TextBox = 2, ListBox = 3, Label = 4, PictureBox = 5
X and Y for top left corner of box
W and H for width and height of box
Text for main string associated with control.
Additionally or internally there are:
N1 to N6 Long Type for addition numbers the control needs to do it's thing and can be used in code for further manipulation.
Text2 is 2nd string used internally to help the control do it's thing.
Proposed new Properties I've been sketching out:
FC and BC for Fore and Back colors of control to satisfy RNBW's request which is very fitting.
Also fitting, FontH for Coolman's request for readable Font size for his use and potential users, watching Fell's video, we may have to specify different Fonts. I am impressed that Font's and Font heights could be used in Fells text boxes and List boxes, because of the unstable print widths that have to be anticipated.
File for images (Button or Picture Box), data for List, and now I see Font. Hmm, might have to read file extension to use either as Font or image or data.... maybe have to parse file property to see if 2 files are listed for Picture Box?
TabStop - whether a control is important or not for user to Tab to or be next automatically activated control.
Hide/Hidden - whether the control should be shown/drawn in and is actively used in code section that is activated.
These seem to me to be next most important properties to add and already I am stuck on how to pass color values. I was first thinking of adding an opts$ parameter to NewControl but color numbers are complicated RGB needs 3 numbers, &H numbers need &H and probably ~& tacked onto an 8 digit text or number... ? Too much parsing of opts$ in my opinion, so probably just go with default set of values to get the control on board in code.
So is this the essential minimal list, it is going to go back and change something the farther we go adding properties.
Speaking of essential and minimal, I've ruled out Radio Buttons because a List box does the same thing, one selection from many. A check box is pretty much more than covered with Text Box which can not only do y/n for yes or no, but also single digits for numbers or letters... ie not essential controls also progress bars are just a special case of a picture box ie just require some sub or function routine to modify a picture box to function as a progress bar.
Back to the color Dilemma, if I am forced to create a routine to convert some text to a color, I could get by with a 3 digit number system each digit is a red, green, blue scale from 0-9. But can people live with only 1000 colors? 3 digits number is pretty simple and really about the limit the human eye could detect and name or guess with a 3 digit number ie guess the red value from 0 none to 9 all, green/yellow value 0 none and 9 to all, blue value 0 none to 9 all...???
Yesterday and Monday, I helped my brother change out a chandelier 18' up, it hangs nearly 90" long! He rented scaffolding (anticipated) and a truck (not anticipated because of a miss measure of his van) Rental BTW was 20$ for first 45 mins and additional fees for every 15 mins after that ABSOLUTELY NO OVERNIGHT rentals without huge, huge fine! Plus .40 milage, $300 security deposit but no extra insurance thing like Car Rental places. Anyway, at several points along the way 2 minds were better than one specially when both those minds had watched different You Tubes for putting up scaffolding. Several points along the way, I would have given up and we did just plain luck out and successfully completed the project without serious injury to ourselves or giant window and glass door we worked next to. This included an assembly of scaffold over a stairway due to another miss-measure that did not account for molding and wheel base of scaffolding increasing the width needed to fit in a hallway, sheez it's a miracle it all worked.
My point is, I can't and don't even want to try to do this alone!
Currently the list is (for adding a (New)Control to bas code under NewControl function:
ConType: Button=1, TextBox = 2, ListBox = 3, Label = 4, PictureBox = 5
X and Y for top left corner of box
W and H for width and height of box
Text for main string associated with control.
Additionally or internally there are:
N1 to N6 Long Type for addition numbers the control needs to do it's thing and can be used in code for further manipulation.
Text2 is 2nd string used internally to help the control do it's thing.
Proposed new Properties I've been sketching out:
FC and BC for Fore and Back colors of control to satisfy RNBW's request which is very fitting.
Also fitting, FontH for Coolman's request for readable Font size for his use and potential users, watching Fell's video, we may have to specify different Fonts. I am impressed that Font's and Font heights could be used in Fells text boxes and List boxes, because of the unstable print widths that have to be anticipated.
File for images (Button or Picture Box), data for List, and now I see Font. Hmm, might have to read file extension to use either as Font or image or data.... maybe have to parse file property to see if 2 files are listed for Picture Box?
TabStop - whether a control is important or not for user to Tab to or be next automatically activated control.
Hide/Hidden - whether the control should be shown/drawn in and is actively used in code section that is activated.
These seem to me to be next most important properties to add and already I am stuck on how to pass color values. I was first thinking of adding an opts$ parameter to NewControl but color numbers are complicated RGB needs 3 numbers, &H numbers need &H and probably ~& tacked onto an 8 digit text or number... ? Too much parsing of opts$ in my opinion, so probably just go with default set of values to get the control on board in code.
So is this the essential minimal list, it is going to go back and change something the farther we go adding properties.
Speaking of essential and minimal, I've ruled out Radio Buttons because a List box does the same thing, one selection from many. A check box is pretty much more than covered with Text Box which can not only do y/n for yes or no, but also single digits for numbers or letters... ie not essential controls also progress bars are just a special case of a picture box ie just require some sub or function routine to modify a picture box to function as a progress bar.
Back to the color Dilemma, if I am forced to create a routine to convert some text to a color, I could get by with a 3 digit number system each digit is a red, green, blue scale from 0-9. But can people live with only 1000 colors? 3 digits number is pretty simple and really about the limit the human eye could detect and name or guess with a 3 digit number ie guess the red value from 0 none to 9 all, green/yellow value 0 none and 9 to all, blue value 0 none to 9 all...???
Yesterday and Monday, I helped my brother change out a chandelier 18' up, it hangs nearly 90" long! He rented scaffolding (anticipated) and a truck (not anticipated because of a miss measure of his van) Rental BTW was 20$ for first 45 mins and additional fees for every 15 mins after that ABSOLUTELY NO OVERNIGHT rentals without huge, huge fine! Plus .40 milage, $300 security deposit but no extra insurance thing like Car Rental places. Anyway, at several points along the way 2 minds were better than one specially when both those minds had watched different You Tubes for putting up scaffolding. Several points along the way, I would have given up and we did just plain luck out and successfully completed the project without serious injury to ourselves or giant window and glass door we worked next to. This included an assembly of scaffold over a stairway due to another miss-measure that did not account for molding and wheel base of scaffolding increasing the width needed to fit in a hallway, sheez it's a miracle it all worked.
My point is, I can't and don't even want to try to do this alone!
b = b + ...