Release 4
- Made the appearance cleaner by imitating a plain textbox so when you resize on form during design time, you will see the borders cleanly
- Fixed seeding initial Value via PEM
- Added seeding via ExtraValue property which displays the correct Value counterpart
- Used inherent Picture property for alternate icon. Removed icon property as that is just a waste of extra unneeded property. Although on form, when a picture for icon is selected, the icon image is shown tiled on the class
- Added ControlSource, PasswordChar, ReadOnly, FontBold and FontItalic properties
Release 3
Color Toggling on Enabling/Disabling the class - Fixed
Seeding the class via .Value does not perform an AutoComp resulting to .ExtraValue giving a wrong result. Fixed that. However, seeding values to other xBoxes on the form with each having an AutoComp feature enabled short-circuits it; as each tries to perform an AutoComp search during when values are changed.
Solution is to ensure that only the active xBox will perform an AutoComp search. So now, you can do something like this:
*xBox1's InterActiveChange
*
where search is made and seeding other xBoxes as we type
thisform.xBox2.Value = field2
thisform.xBox3.Value = field3
thisform.xBox4.Value
= field6
And only xBox1 will perform the AutoComp search and the others will simply receive the values. Anyway, there is no need for the record pointer to change on those 3 others.
Caveat:
When seeding an xBox where you want it to perform an AutoComp search, then you have to ensure it is the active object in the form. Something like this:
Thisform.xBox1.SetFocus
Thisform.xBox1.Value = 'Whatever'
Say like when you open another form where you want to seed an xBox some value from the calling form and later would also like to reflect the .ExtraValue back, then you have to set focus onto it before the value is seeded.
If you are not after the .ExtraValue though and is only after the .Value, then no need to SetFocus on the class.