Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TreeView Event Handler Issue



Permlink Replies: 2 - Last Post: Feb 28, 2018 2:02 AM Last Post By: Andrew Sowerby
Andrew Sowerby

Posts: 48
Registered: 8/19/01
TreeView Event Handler Issue
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 27, 2018 1:28 AM
I assign an event handler to a TreeView component's OnChange event and
save the change. Checking the dfm code shows the assignment has been
saved correctly. I close and re-open Tokyo 10.2.2 - the OnChange
assignment has disappeared. the event handler is:

procedure TFormCloudStorage.TreeView1Change(Sender: TObject; Node:
TTreeNode);
begin
Screen.Cursor := crHourGlass;
ShowItem;
Screen.Cursor := crDefault;
end;

I can make the assignment in the Form's OnCreate event handler and the
it works correctly. What could cause the component's OnChange event's
assignment not to 'stick'?

Using Tokyo 10.2.2 with W10 Pro.

Andrew
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: TreeView Event Handler Issue
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 27, 2018 9:31 AM   in response to: Andrew Sowerby in response to: Andrew Sowerby
Andrew Sowerby wrote:

What could cause the component's OnChange event's assignment not to
'stick'?

Probably a regression bug in the IDE or the DFM streaming system.
Please report it to Quality Portal.

--
Remy Lebeau (TeamB)
Andrew Sowerby

Posts: 48
Registered: 8/19/01
Re: TreeView Event Handler Issue
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 28, 2018 2:02 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Filed:

https://quality.embarcadero.com/browse/RSP-20019

and then replaced the Treeview again for the 4th time (and on a new
day) and, lo and behold, the handler now sticks! A transient glitch I
suppose.

Andrew
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02