When ControlSize exceeds parent size
-
Hi all, Iam working with a ListControl whose parent is a dialog. In the cell (1,1),I want to place a tree control which on doubleclicking should open up(ie: the width & height of this tree control exceeds the dialog boundary). Will move the treecontrol & place it over the cell(1,1) position. Now If I fix & width & I height of my treecontrol,I want the same size to be displayed,even if the parent dialog is smaller. ie: If the childControl size is bigger than,the parentcontrol size ,it should overflow the parentcontrol boundary.(like if we click on a comboBox). How can I achive this behaviour. Any ideas Thanks..
-
Hi all, Iam working with a ListControl whose parent is a dialog. In the cell (1,1),I want to place a tree control which on doubleclicking should open up(ie: the width & height of this tree control exceeds the dialog boundary). Will move the treecontrol & place it over the cell(1,1) position. Now If I fix & width & I height of my treecontrol,I want the same size to be displayed,even if the parent dialog is smaller. ie: If the childControl size is bigger than,the parentcontrol size ,it should overflow the parentcontrol boundary.(like if we click on a comboBox). How can I achive this behaviour. Any ideas Thanks..
The dropdown listbox from a combobox is actually created as a top level window, a child of the desktop, and it is moved into place and shown when needed. You could do the same with your tree control.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!
-
The dropdown listbox from a combobox is actually created as a top level window, a child of the desktop, and it is moved into place and shown when needed. You could do the same with your tree control.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!
-
The dropdown listbox from a combobox is actually created as a top level window, a child of the desktop, and it is moved into place and shown when needed. You could do the same with your tree control.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!
Hi, I did as follows in that order & I get the child control to exceed the parent window. childControl.SetParent(GetDesktopWindow()); childControl.ShowWindow(true); childControl.BringWindowToTop(); childControl.SetFocus(); childControl.MoveWindow(500,300,400,200); But now the problem is ,I don't get the childControl as an activeWindow(Can't select,edit anything etc). Thanks..