Forum Replies Created
-
AuthorPosts
-
HeDiBoParticipant
Behavior should not be hard coded, I agree completely.
But you are looking at the control being changed. That’s not correct. You should look at the control being changed by the user. Even if modified is False and the focus moves away from the control, minmax checking should occur. That’s the moment for OnValidateError.
Of course, if a new record is inserted and its values are all wrong, only doing the right thing is at the data event can prevent this.
Have a look at https://www.alphaskins.com/forum/?topic=tsdbcalcedit-should-not-honor-min-and-max-on-displaying-values&paged=2#post-69656
It shows that effortless I can enter a wrong value- This reply was modified 4 years, 1 month ago by HeDiBo.
HeDiBoParticipantI still think you should come up with a solution for the placement of hints on grid headers with AutoAlignment set to True. Maybe don’t honor it if the hint is for a grid header?
September 25, 2020 at 2:54 pm in reply to: Calendar week numbers invisible in Windows 10 Dark skin #69665HeDiBoParticipantIt is changed, indeed. But I think those week numbers are very hard to read in any skin. The title “W” is almost invisible.
September 25, 2020 at 2:48 pm in reply to: Empty or invisible Hints if TsAlphaHints.HandleDisabledCtrls set #69664HeDiBoParticipantProblem solved in AC 15.16
Please close this topicHeDiBoParticipantHave a look at these two GIF’s.
GIF Screen2Gif15 shows the timing if HandleDisabledCtrls is False. That timing look OK.
GIF Screen2Gif16 shows the timing if HandleDisabledCtrls is True. That timing is totally wrong. Having timing like that clobbers the screen with hints.
I strongly advise to redesign the timing of hints. Especially a hint timing that allows reading long hints (a timing dynamically adjusted to the amount of text) would be enormously beneficial.What also shows is the changed position of the hint. If HandleDisabledCtrls is True the hint is much more to the right.
- This reply was modified 4 years, 2 months ago by HeDiBo.
Attachments:
You must be logged in to view attached files.HeDiBoParticipantIt’s no better in 15.16 😒
HeDiBoParticipantSolved in AC 15.16 🎶
Please close this topicSeptember 25, 2020 at 2:00 pm in reply to: TsDBCalcEdit should not honor Min and Max on displaying values #69656HeDiBoParticipantThe double activation of OnValidateError is eliminated 👍
The GIF below shows how to enter an invalid value (values must be >= 1000 in this case). It was no problem inserting a record with value 500
It shows the problem already discussed in #69607
Again this problem can be overcome with an extra check in DoExit.Attachments:
You must be logged in to view attached files.September 25, 2020 at 1:37 pm in reply to: TsPageControl problem with tab’s highlight if OnChanging AllowChange is False #69652HeDiBoParticipantProblem solved in AC 15.16 😎
Please close this topicHeDiBoParticipantA week later, no improvement 😯
HeDiBoParticipantIn AC 15.16 the hints are positioned OK, but now they are not skinned anymore 😢
HeDiBoParticipantIt’s fixed in 15.16 🎂
Please close this topic- This reply was modified 4 years, 2 months ago by HeDiBo.
HeDiBoParticipantNo change in 15.16 😢
HeDiBoParticipantDon’t change it automatically. Don’t focus on the field being changed, focus on the field being changed by the user. Prevent leaving the field’s focus when the dataset is in Edit/Insert mode and the value is outside the limits. That’s all. Override the DoExit procedure.
HeDiBoParticipantNo, don’t change. Just check and throw event. User was in the field while the dataset was in insert/edit mode. That’s a big difference!
In general, when the dataset is in insert/edit mode, any change must be checked against min/max values and even when no change was made: a field set with the wrong values must not be possible. The GIF shows the problem: a dataset with fields having an impossible value!!HeDiBoParticipantOn leaving the field, check whether the underlying dataset is in Edit or Insert mode. Then apply strict min/max rules.
HeDiBoParticipantIf the user action leaves the field, he was obviously in the field. Then the check should be made.
You saw the devastating effect of accepting a blank/zero value in the GIF. So, it must be solved.HeDiBoParticipantThe property can be named SkinBW and it is active only for imagelists consisting of only B&W images. As soon as an image is added to the imagelist with more than two colors, the property is disabled. Images that are not transparent but still B&W can simply be inverted.
HeDiBoParticipant<p zoompage-fontsize=”14″>‘0’ is not checked because “Modified” is False there.
Value has not been changed by user and was not checked.
Searching a solution..When the cursor leaves the field by a user action, the min/max values should be checked.
-
AuthorPosts