Loading ...
Sorry, an error occurred while loading the content.
 

Re: what is gui.border_width for?

Expand Messages
  • Bram Moolenaar
    ... Unfortunately it s very unclear how this is supposed to work. Perhaps Robert Webb can say something about this. I think he introduced these variables. --
    Message 1 of 2 , Apr 5, 2001
      Julian Kinraid wrote:

      > I was just looking at a minor problem with my photon port, and saw that
      > it in gui_update_scrollbars(), sometimes the gui.border_offset is added
      > to the height and y position of a scrollbar.
      >
      > With the way I've done the port, I have the border offset and width both
      > set to 6, but when positioning components, I want the top left to be
      > 0,0. So sometimes a scrollbar will end up 6 pixels lower down than it
      > should.
      >
      > So I changed border_offset to 0 and left border_width alone, but that
      > caused other problems, in that border_width is never used outside of the
      > gui_*.c files, and most of the time it's set to whatever border_width
      > is.
      >
      > Ideally, I would have border_offset at 0, which would be used when
      > positioning components, and border_width would be 6 (for example), which
      > would be used for drawing text, finding the total size of the text area,
      > etc. Is that how it's supposed to work?

      Unfortunately it's very unclear how this is supposed to work. Perhaps Robert
      Webb can say something about this. I think he introduced these variables.

      --
      hundred-and-one symptoms of being an internet addict:
      37. You start looking for hot HTML addresses in public restrooms.

      /// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
      ((( Creator of Vim - http://www.vim.org -- ftp://ftp.vim.org/pub/vim )))
      \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
    Your message has been successfully submitted and would be delivered to recipients shortly.