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. Simulating the use of a splitter

Simulating the use of a splitter

Scheduled Pinned Locked Moved C#
question
4 Posts 3 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.
  • C Offline
    C Offline
    Clive D Pottinger
    wrote on last edited by
    #1

    Hello, I have a form set up so that it auto-magically resizes its controls when a horizontal splitter is moved. However, when the user resizes the form it is possible for some controls to end up being too small, or pushed out of the form's visible area altogether. I have found that just a click on the horizontal splitter fixes everything up. So I thought I would just add code to do invoke the splitter in the form's resize event. Only I can't find a way to do that. Is there a way to fake having the user move the splitter?

    Clive Pottinger Victoria, BC

    D R 2 Replies Last reply
    0
    • C Clive D Pottinger

      Hello, I have a form set up so that it auto-magically resizes its controls when a horizontal splitter is moved. However, when the user resizes the form it is possible for some controls to end up being too small, or pushed out of the form's visible area altogether. I have found that just a click on the horizontal splitter fixes everything up. So I thought I would just add code to do invoke the splitter in the form's resize event. Only I can't find a way to do that. Is there a way to fake having the user move the splitter?

      Clive Pottinger Victoria, BC

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      Sorry I haven't got an answer but i *HAD* to congratualte you on the word 'auto-magically'! :-D

      R 1 Reply Last reply
      0
      • D DaveyM69

        Sorry I haven't got an answer but i *HAD* to congratualte you on the word 'auto-magically'! :-D

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #3

        DaveyM69 wrote:

        the word 'auto-magically'!

        It's been around since the '70s. :) See this[^] link, for one. /ravi

        This is your brain on Celcius Home | Music | Articles | Freeware ravib(at)ravib(dot)com

        1 Reply Last reply
        0
        • C Clive D Pottinger

          Hello, I have a form set up so that it auto-magically resizes its controls when a horizontal splitter is moved. However, when the user resizes the form it is possible for some controls to end up being too small, or pushed out of the form's visible area altogether. I have found that just a click on the horizontal splitter fixes everything up. So I thought I would just add code to do invoke the splitter in the form's resize event. Only I can't find a way to do that. Is there a way to fake having the user move the splitter?

          Clive Pottinger Victoria, BC

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          cpotting wrote:

          Is there a way to fake having the user move the splitter?

          Would an Invalidate() followed by an Update() work instead? Looks like the window needs to be completely refreshed in order for the controls to render properly. This bug is in the Win32 layer and has been around for years. :( /ravi

          This is your brain on Celcius Home | Music | Articles | Freeware ravib(at)ravib(dot)com

          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