|
-
May 30th, 2007, 10:41 PM
#1
Thread Starter
New Member
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..
-
May 30th, 2007, 10:52 PM
#2
Re: change output text's font size
maybe i could help if i knew what ERD stood for?
-
May 30th, 2007, 11:14 PM
#3
Thread Starter
New Member
Re: change output text's font size
hmm..ERD is Entity Relationship Diagram which used for creating databases..
-
May 30th, 2007, 11:18 PM
#4
Re: change output text's font size
sorry i have never used that tool. I do my database development directly in office
-
May 30th, 2007, 11:35 PM
#5
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.
-
May 30th, 2007, 11:54 PM
#6
Thread Starter
New Member
-
May 31st, 2007, 12:02 AM
#7
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.
-
May 31st, 2007, 05:52 PM
#8
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|