Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Docking Properties: by Senthil

Docking Properties: by Senthil

Scheduled Pinned Locked Moved C#
helpquestioncomtutorial
10 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    amitmohanty
    wrote on last edited by
    #1

    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.

    A 1 Reply Last reply
    0
    • A amitmohanty

      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.

      A Offline
      A Offline
      amitmohanty
      wrote on last edited by
      #2

      Any help available Christian?

      C 1 Reply Last reply
      0
      • A amitmohanty

        Any help available Christian?

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        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++

        A 1 Reply Last reply
        0
        • C Christian Graus

          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++

          A Offline
          A Offline
          amitmohanty
          wrote on last edited by
          #4

          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

          C 1 Reply Last reply
          0
          • A amitmohanty

            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

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            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++

            A 1 Reply Last reply
            0
            • C Christian Graus

              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++

              A Offline
              A Offline
              amitmohanty
              wrote on last edited by
              #6

              Can I possibly use panel and write this.tabControl1.Width=this.ClientSize.Width/3; something like that..let me try and see

              C 1 Reply Last reply
              0
              • A amitmohanty

                Can I possibly use panel and write this.tabControl1.Width=this.ClientSize.Width/3; something like that..let me try and see

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                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++

                A 1 Reply Last reply
                0
                • C Christian Graus

                  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++

                  A Offline
                  A Offline
                  amitmohanty
                  wrote on last edited by
                  #8

                  lil more on onSize method may help me, Chris..I am not sure how I want to do that.

                  C 1 Reply Last reply
                  0
                  • A amitmohanty

                    lil more on onSize method may help me, Chris..I am not sure how I want to do that.

                    C Offline
                    C Offline
                    Christian Graus
                    wrote on last edited by
                    #9

                    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++

                    A 1 Reply Last reply
                    0
                    • C Christian Graus

                      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++

                      A Offline
                      A Offline
                      amitmohanty
                      wrote on last edited by
                      #10

                      Worked...Worked...Worked..:d...Actually, that is the Resize method. Thanks..Gotta work for the opacity of the shellcontrol..Regards..Amit

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups