Resizing code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Winterbottom

    #1

    Resizing code

    Has anyone seen any generic code to re-size controls on a form when the
    form resizes, not simply stretching them per ADH or Peters Software, but
    using the width and height properties to actually see more information? I'm
    thinking primarily of lists and contuous subforms here. I have never seen
    much point simply making the form and it's controls bigger. But code that
    could dynamically change the height and width of a list box, together with
    the adjusting the column widths property as the form resizes would be very
    useful, and I dont think too difficult, even for someone of my limited VB
    coding skills. Just wondered if anyone already has such a thing before I go
    off and write my own.


  • Trevor Best

    #2
    Re: Resizing code

    John Winterbottom wrote:[color=blue]
    > Has anyone seen any generic code to re-size controls on a form when the
    > form resizes, not simply stretching them per ADH or Peters Software, but
    > using the width and height properties to actually see more information? I'm
    > thinking primarily of lists and contuous subforms here. I have never seen
    > much point simply making the form and it's controls bigger. But code that
    > could dynamically change the height and width of a list box, together with
    > the adjusting the column widths property as the form resizes would be very
    > useful, and I dont think too difficult, even for someone of my limited VB
    > coding skills. Just wondered if anyone already has such a thing before I go
    > off and write my own.
    >
    >[/color]

    I usually modify the ADH code to look for somthing in the tag, then say
    for listboxes, resize it but don't resize the fonts, for subforms,
    resize the subform control but not the form itself, etc.

    --
    Error reading sig - A)bort R)etry I)nfluence with large hammer

    Comment

    • John Winterbottom

      #3
      Re: Resizing code

      "Trevor Best" <nospam@localho st> wrote in message
      news:40d72718$0 $8728$afc38c87@ auth.uk.news.ea synet.net...[color=blue]
      > John Winterbottom wrote:[color=green]
      > > Has anyone seen any generic code to re-size controls on a form when the
      > > form resizes, not simply stretching them per ADH or Peters Software, but
      > > using the width and height properties to actually see more information?[/color][/color]
      I'm[color=blue][color=green]
      > > thinking primarily of lists and contuous subforms here. I have never[/color][/color]
      seen[color=blue][color=green]
      > > much point simply making the form and it's controls bigger. But code[/color][/color]
      that[color=blue][color=green]
      > > could dynamically change the height and width of a list box, together[/color][/color]
      with[color=blue][color=green]
      > > the adjusting the column widths property as the form resizes would be[/color][/color]
      very[color=blue][color=green]
      > > useful, and I dont think too difficult, even for someone of my limited[/color][/color]
      VB[color=blue][color=green]
      > > coding skills. Just wondered if anyone already has such a thing before I[/color][/color]
      go[color=blue][color=green]
      > > off and write my own.
      > >
      > >[/color]
      >
      > I usually modify the ADH code to look for somthing in the tag, then say
      > for listboxes, resize it but don't resize the fonts, for subforms,
      > resize the subform control but not the form itself, etc.
      >[/color]

      Thanks Trevor - this will work? I had no idea. I will abandon my pathetic
      attempts at writing a resize class and go and dig out my ADH code samples..



      Comment

      Working...