Forum Replies Created
-
AuthorPosts
-
August 23, 2020 at 1:44 pm in reply to: Hints on disabled controls may cause AV if modal form is freed #69319
HeDiBo
ParticipantTo clarify: none of the controls, for which hints are defined, are disabled in this case.
HeDiBo
ParticipantBecause of the awful mess this forum system makes of the user’s contributions, I had to redo the change request in #69317
HeDiBo
ParticipantDon’t remember exactly but I had to put a comment here:
procedure TsAlphaHints.OnCheckTimer(Sender: TObject); begin ... // Lasse Application.HintPause := Manager.FOldHintPause;
Otherwise I could not change it.
Which shows, timing of hints needs a overhaul.
At the end ofprocedure TsShowTimer.Init(HintForm: TacCustomHintWindow; w, h: integer);
there is a very suspicious:
Application.HintPause := 100;
HeDiBo
ParticipantI was mistaken. I changed the value form 5000 to 10000, to get a longer reading period.
That means two timing value properties could be added: the time for a first hint to appear (HintPause), the time between hints if moving over controls (HintShortPause).
The Application hint values can be set but they would be nicer as properties of TsAlphaHints.HeDiBo
ParticipantAs far as I can remember on my holiday, the 500 msec delay is the only timing that can be adjusted in TsHintManager. I have changed it to 1000. But that timing is not honored anymore, after the first time a hint is shown.
August 19, 2020 at 11:02 pm in reply to: AC15.13: TsMonthCalendar should have a function to reload #69299HeDiBo
ParticipantVCL has a lot of events implemented, but thre is no special properties for enabling/disabling them…
I’m not sure what you mean by that
HeDiBo
ParticipantI’m on holiday for a few days. When I’m back I’ll get to the bottom of this.
August 19, 2020 at 10:54 pm in reply to: Hints on disabled controls may cause AV if modal form is freed #69297HeDiBo
ParticipantIf I set HandleDisabledControls to False, the problem goes away
August 16, 2020 at 9:46 pm in reply to: AC15.13: TsMonthCalendar should have a function to reload #69274HeDiBo
Participant<p zoompage-fontsize=”14″>The RefreshAcceptedDates procedure will be available in the v15.14
Behavior of the ChecksActive is not obvious. Do you suggest to enable/disable calling of the OnAcceptDate event by this property?Yes. It gives the best of both worlds: 1. By setting it False at design time, no initial OnAcceptDate events will occur. Then setting it to True, it will do an OnAcceptDate for every day in that month. Leaving it to True, the TsMonthCalendar functions as it is now. But if you want all dates rechecked, set the property to False and to True again.
HeDiBo
ParticipantNo, this behavior is far from standard. Start an Explorer window and hoover over the top buttons. There is a delay of two seconds between the showing of the hints. In your implementation this is 0.1 second.
August 16, 2020 at 9:38 pm in reply to: Hints on disabled controls may cause AV if modal form is freed #69271HeDiBo
ParticipantI get the AV almost every time.
However I’m not able now to reproduce it in a simple sample project.
The enclosed project shows what the setup is. It uses a ShowPopupForm but this was a ShowModal. In both cases things went wrong.
In this simple project I cannot reproduce it, unfortunately.Attachments:
You must be logged in to view attached files.HeDiBo
ParticipantHere’s another example of how annoying these hints are.
Attachments:
You must be logged in to view attached files.HeDiBo
ParticipantThis little screen captured gif shows how annoying the quick recurrence of hints is.
Attachments:
You must be logged in to view attached files.HeDiBo
ParticipantI ran it in Delphi XE4 with debugging on and I received at least 10 in each configuration.
Very nice utility.
But I have no problems.
It makes no difference, 32 bit, 64 bit, with or without debugging: it’s always 10, sometimes starting off as 9.August 12, 2020 at 11:01 am in reply to: AC15.13: TsMonthCalendar should have a function to reload #69238HeDiBo
ParticipantEven if setting OnAcceptDate to non-nil would force a recheck of all month dates, there’s still the need for a RecheckCalendar procedure, in cases where the dates acceptable have changed.
August 12, 2020 at 9:09 am in reply to: AC15.13: TsMonthCalendar should have a function to reload #69237HeDiBo
ParticipantBy the way, setting OnAcceptDate to non-nil in code, does not recheck the dates as you would expect.
I say that, because that would also be a feasible solution: having the OnAcceptDate being set to nil normally and only set it to a checking procedure when you need that. But then checks should be redone at that moment.August 12, 2020 at 9:02 am in reply to: AC15.13: TsMonthCalendar should have a function to reload #69236HeDiBo
ParticipantOn second thoughts, a better solution would be a published property ChecksActive. That would be True by default, but being published can also be initialized to False. When False, all dates are OK and no calls to OnAcceptDate are done. When set to True, it will call OnAcceptDate for all dates in the current month and keep on working like it is now.
The benefit of this over a ReloadCalendar procedure would be that it will prevent 30 checks at component load time (a possibly costly operation), that would not lead to anything sensible any way.HeDiBo
ParticipantTo get a view of the problems switch off all effects in the TsSkinManager – Effects page.
HeDiBo
ParticipantI can add several other screen dumps of MegaDemo that are dead wrong.
-
AuthorPosts