Docking Properties: by Senthil
-
Hi, I think I am not sure how to set the docking properties in an application may be. I am using the ShellControl control [^]which was written by Senthil. I have created an application and I am using a splitter in this application and pn the right side of the application is a tab control for displaying one treeview and one listview.(it is still not there in the application though) My Problem is that I am not able to fix the width of the different parts. I want the table control be the 1/3 of the application window and the shellcontrol window be 2/3 of the width. How I do it? Because when I maximize the application window, the application looks funny. You can find the application I wrote here. http://web.ics.purdue.edu/~amohanty/4_ShellControl.zip Also, I want to add the opacity property to the ShellControl[http://www.codeproject.com/cs/miscctrl/shellcontrol.asp] control. How do I do it? Senthil has not set the opacity property. I want my application to look little cool. So I want to have the opacity, which I can control. I guess it is possible to control the opacity of the elements of an application, which doees not affect the opacity of the whole application window.
-
Hi, I think I am not sure how to set the docking properties in an application may be. I am using the ShellControl control [^]which was written by Senthil. I have created an application and I am using a splitter in this application and pn the right side of the application is a tab control for displaying one treeview and one listview.(it is still not there in the application though) My Problem is that I am not able to fix the width of the different parts. I want the table control be the 1/3 of the application window and the shellcontrol window be 2/3 of the width. How I do it? Because when I maximize the application window, the application looks funny. You can find the application I wrote here. http://web.ics.purdue.edu/~amohanty/4_ShellControl.zip Also, I want to add the opacity property to the ShellControl[http://www.codeproject.com/cs/miscctrl/shellcontrol.asp] control. How do I do it? Senthil has not set the opacity property. I want my application to look little cool. So I want to have the opacity, which I can control. I guess it is possible to control the opacity of the elements of an application, which doees not affect the opacity of the whole application window.
Any help available Christian?
-
Any help available Christian?
LOL The general way to control the size of objects is the Anchor property. I set the right control to anchor in all four directions and got what I thought was acceptable. If you can't get what you want using these properties, then you need to override the OnSize event and size your controls manually. I'm looking at the other problem now. As you say, the control does not support transparent colors. Not sure there's anything you can do about it. Christian Graus - Microsoft MVP - C++
-
LOL The general way to control the size of objects is the Anchor property. I set the right control to anchor in all four directions and got what I thought was acceptable. If you can't get what you want using these properties, then you need to override the OnSize event and size your controls manually. I'm looking at the other problem now. As you say, the control does not support transparent colors. Not sure there's anything you can do about it. Christian Graus - Microsoft MVP - C++
Thanks..I think I will ask Senthil if anything can be done about the opacity property. Basically i think now I have to learn how to write a windows control library. Am I right? But I am not able to find a good tutorial to start with.. Anyway, great job, Chris..I really appreciate it. If I ever develop a commercial application I think I sud give you half of my money ;).. Regards, Amit
-
Thanks..I think I will ask Senthil if anything can be done about the opacity property. Basically i think now I have to learn how to write a windows control library. Am I right? But I am not able to find a good tutorial to start with.. Anyway, great job, Chris..I really appreciate it. If I ever develop a commercial application I think I sud give you half of my money ;).. Regards, Amit
I have the vaguest recollection of being able to send a message to a control in the past where I got this error message for trying to set opacity, but I just can't remember the details. I hope it works out for you. Christian Graus - Microsoft MVP - C++
-
I have the vaguest recollection of being able to send a message to a control in the past where I got this error message for trying to set opacity, but I just can't remember the details. I hope it works out for you. Christian Graus - Microsoft MVP - C++
Can I possibly use panel and write this.tabControl1.Width=this.ClientSize.Width/3; something like that..let me try and see
-
Can I possibly use panel and write this.tabControl1.Width=this.ClientSize.Width/3; something like that..let me try and see
Yes, you can do that in your OnSize, for sure. That's the sort of thing I had in mind when I said to use OnSize. Christian Graus - Microsoft MVP - C++
-
Yes, you can do that in your OnSize, for sure. That's the sort of thing I had in mind when I said to use OnSize. Christian Graus - Microsoft MVP - C++
lil more on onSize method may help me, Chris..I am not sure how I want to do that.
-
lil more on onSize method may help me, Chris..I am not sure how I want to do that.
Your form has an onsize event. It is fired when the form is resized. If you set up your code as you said to resize stuff in that event, then when the form is resized, the controls will be sized by your code. Christian Graus - Microsoft MVP - C++
-
Your form has an onsize event. It is fired when the form is resized. If you set up your code as you said to resize stuff in that event, then when the form is resized, the controls will be sized by your code. Christian Graus - Microsoft MVP - C++
Worked...Worked...Worked..:d...Actually, that is the Resize method. Thanks..Gotta work for the opacity of the shellcontrol..Regards..Amit