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..
Re: change output text's font size
maybe i could help if i knew what ERD stood for?
Re: change output text's font size
hmm..ERD is Entity Relationship Diagram which used for creating databases..
Re: change output text's font size
sorry i have never used that tool. I do my database development directly in office :(
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.
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..:blush: :blush: :blush:
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.
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.