Results 1 to 8 of 8

Thread: change output text's font size

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    7

    change output text's font size

    hi all,

    i have a problem here.actually im developing a Normalization Tool using Vb 6.0. the main function of this tool is user can draw ERD using drawing toolbar and then this tool will help to narmalized it.for sure,user must input attributes for each entity when drawing ERD.

    the entity's name and attribute's name will be appear on the notation of Entity.is it possible if i wan to change the font size of attribute's name?and can give any ideas to do it?

    thanks a lots..

  2. #2
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: change output text's font size

    maybe i could help if i knew what ERD stood for?
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    7

    Re: change output text's font size

    hmm..ERD is Entity Relationship Diagram which used for creating databases..

  4. #4
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: change output text's font size

    sorry i have never used that tool. I do my database development directly in office
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  5. #5
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: change output text's font size

    If you've drawn the entities on a picturebox or something, then you have no other way but erasing the text (which is actually a bitmap) and redraw it again.

    I recommend you make a designer like VB's form designer or Visio's designer.

    There are not many symbols used in ERD. You can make them as user controls (with size/fontsize/fontcolor etc properties) and yor user will add them from a toolbox. Something like Visio.

    or, you can crete a generic usercontrol (like VB's Shape control) and your users can add the control from a toolbox and change its shape (circle/rectangle etc) and font/size etc from a properties window.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  6. #6

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    7

    Re: change output text's font size

    thanks iPrank..

    but i do not have much time because have to present to my lecturer tomorrow..can i hard code it as if user input more than 5 attributes,then d font size will automatically change?because my notation's size is fix,so when user input more than 5 attributes,the text will out of the notation..

  7. #7
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: change output text's font size

    You can use the form's/picturebox's TextHeight and TextWidth methods to determine the fontsize you'll need to fit.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  8. #8
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: change output text's font size

    You could put an event in the same picturebox that checks its own text length and reduces the font size automatically if it is too long.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width