J
Jason Yu
Hi,
this problem looks quite simple but it has bugged me for several days, and i
just can't get out of it.
i have a custom Control on a Form, and the Form has a Toolbar as well. when
user clicks on the Control, the Toolbar appears; when user's focus left the
Control, the Toolbar disappears. it's something like in MS Word when you
select an embedded Picture, a Drawing Toolbar will appear and when you
disselect it, the toolbar disappears.
The difficulty is, in my case the Toolbar button states are determined by
one of the Property of the Control, say if the Property is set to "True"
then one button will appear in the Toolbar and vice versa.
since the Control and the Toolbar are from two different classes, so how do
they interact with each other? i want to get property information of the
Control from Toolbar class and get property information of the Toolbar from
the Control class.
Is there any standard way to handle this cross-class issue? I have searched
this on web but didnt get any piece of information on it.
Appreciate any light that can be shed on this subject.
Thanks.
Jason Yu
this problem looks quite simple but it has bugged me for several days, and i
just can't get out of it.
i have a custom Control on a Form, and the Form has a Toolbar as well. when
user clicks on the Control, the Toolbar appears; when user's focus left the
Control, the Toolbar disappears. it's something like in MS Word when you
select an embedded Picture, a Drawing Toolbar will appear and when you
disselect it, the toolbar disappears.
The difficulty is, in my case the Toolbar button states are determined by
one of the Property of the Control, say if the Property is set to "True"
then one button will appear in the Toolbar and vice versa.
since the Control and the Toolbar are from two different classes, so how do
they interact with each other? i want to get property information of the
Control from Toolbar class and get property information of the Toolbar from
the Control class.
Is there any standard way to handle this cross-class issue? I have searched
this on web but didnt get any piece of information on it.
Appreciate any light that can be shed on this subject.
Thanks.
Jason Yu