Inheritance: ComponentAdapter, Atk.ITextImplementor
Esempio n. 1
0
		internal override void PostInit ()
		{
			base.PostInit ();
			if (balloonWindow) {
				fakeLabel = AutomationBridge.CreateAdapter<TextLabel> (Provider);
				if (fakeLabel != null)
					AddOneChild (fakeLabel);
				fakeImage = AutomationBridge.CreateAdapter<Image> (Provider);
				if (fakeImage != null)
					AddOneChild (fakeImage);
			} else {
				if (RefStateSet ().ContainsState (Atk.StateType.Modal))
					Role = Atk.Role.Dialog;
			}
		}
Esempio n. 2
0
		protected override void RemoveUnmanagedChildren ()
		{
			if (fakeLabel != null)
				RemoveChild (fakeLabel);
			if (fakeImage != null)
				RemoveChild (fakeImage);
			fakeLabel = null;
			fakeImage = null;
		}