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. Windows Forms
  4. Fluid Layout By Custom Polygon Shapes

Fluid Layout By Custom Polygon Shapes

Scheduled Pinned Locked Moved Windows Forms
csharpwinformsquestion
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.
  • S Offline
    S Offline
    Som Shekhar
    wrote on last edited by
    #1

    Like we have FlowLayoutPanel, where controls can automatically get laid out according to their sizes and sequence, I have a requirement of a fluid layout. In a rectangle or area (say 500w X 100h), there are some fixed small controls. lets say a rectangle control of (100w X 30h) is fixed at point (0 top , 150 left) Now, I need to fill this bigger rectangle with small shaped controls with constant areas but variable widths. Height can be maximum wherever possible. The controls not adjacent to fixed control will be rectangles So, no problems. The controls adjacent to fixed controls will need to take polygon shape of variable heights to fit in the balance space. Any logic already existing? Any approaches? And yes, this is for winforms.

    L 1 Reply Last reply
    0
    • S Som Shekhar

      Like we have FlowLayoutPanel, where controls can automatically get laid out according to their sizes and sequence, I have a requirement of a fluid layout. In a rectangle or area (say 500w X 100h), there are some fixed small controls. lets say a rectangle control of (100w X 30h) is fixed at point (0 top , 150 left) Now, I need to fill this bigger rectangle with small shaped controls with constant areas but variable widths. Height can be maximum wherever possible. The controls not adjacent to fixed control will be rectangles So, no problems. The controls adjacent to fixed controls will need to take polygon shape of variable heights to fit in the balance space. Any logic already existing? Any approaches? And yes, this is for winforms.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You ave posted this question in at least FOUR forums, where I suggested you post ONLY in the algorithms forum. Please do not mult-post your question; use one forum and stick to it.

      S 1 Reply Last reply
      0
      • L Lost User

        You ave posted this question in at least FOUR forums, where I suggested you post ONLY in the algorithms forum. Please do not mult-post your question; use one forum and stick to it.

        S Offline
        S Offline
        Som Shekhar
        wrote on last edited by
        #3

        This question is different from fluid column heights. Its a different approach.

        S L 2 Replies Last reply
        0
        • S Som Shekhar

          This question is different from fluid column heights. Its a different approach.

          S Offline
          S Offline
          Som Shekhar
          wrote on last edited by
          #4

          But I take your point. I may have made a mistake.

          1 Reply Last reply
          0
          • S Som Shekhar

            This question is different from fluid column heights. Its a different approach.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            But you also posted this question once already.

            S 1 Reply Last reply
            0
            • L Lost User

              But you also posted this question once already.

              S Offline
              S Offline
              Som Shekhar
              wrote on last edited by
              #6

              As I said, I may have made a mistake. It was a question with requirement of Algorithm, Windows Form, Layout Managers. and Graphics. I am still learning to learn from CP hence the problem. I will take care in future.

              L 1 Reply Last reply
              0
              • S Som Shekhar

                As I said, I may have made a mistake. It was a question with requirement of Algorithm, Windows Form, Layout Managers. and Graphics. I am still learning to learn from CP hence the problem. I will take care in future.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                That is why there is a guideline document like this[^] at the top of each forum, to guide you how to post a question. [edit]I see from your home page that you have been a CP member for 1 year 9 months; I think you should know the protocols by now![/edit]

                S 1 Reply Last reply
                0
                • L Lost User

                  That is why there is a guideline document like this[^] at the top of each forum, to guide you how to post a question. [edit]I see from your home page that you have been a CP member for 1 year 9 months; I think you should know the protocols by now![/edit]

                  S Offline
                  S Offline
                  Som Shekhar
                  wrote on last edited by
                  #8

                  I said I am sorry. Now, can i get some answers?

                  S 1 Reply Last reply
                  0
                  • S Som Shekhar

                    I said I am sorry. Now, can i get some answers?

                    S Offline
                    S Offline
                    Som Shekhar
                    wrote on last edited by
                    #9

                    On your suggestions, I read the document too.

                    Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.

                    Now, where does it say? you cannot post at different forums? My question can have different audiences. I am trying to reach the right kind of people and this can come from various kind of people. In any case, I am not being rude or anything. I am sorry as i said earlier too. However, I could do with a little less of leg pulling.

                    L 1 Reply Last reply
                    0
                    • S Som Shekhar

                      On your suggestions, I read the document too.

                      Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.

                      Now, where does it say? you cannot post at different forums? My question can have different audiences. I am trying to reach the right kind of people and this can come from various kind of people. In any case, I am not being rude or anything. I am sorry as i said earlier too. However, I could do with a little less of leg pulling.

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #10

                      Well I would assume that "Choose the correct forum" means just one. And, as I said you have been a member here for long enough to know the generally accepted protocols.

                      Som Shekhar wrote:

                      I could do with a little less of leg pulling.

                      This isn't leg pulling, it's explanation.

                      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