|
-
Sep 4th, 2001, 07:41 PM
#1
Thread Starter
Frenzied Member
Word Wrap + another questions
Ok..here are those questions..
1) how would you make a text box with vertical and horizontal scroll bars use word wrap?
2) How would you make the title of each text box Untitled and then for every new MDIwindow (like MSWord) whenever someone makes a new window it will start with Untitled to Untitled1 then Untitled2..does anyone understand that?
3) how would you make the caption of that title bar the document file name?
4) and how would you change the font in the text box? like bring up the font box and stuff? yeah.
does anyone understand this? i need help badly....
Last edited by SomethinCool; Sep 4th, 2001 at 07:44 PM.
-
Sep 4th, 2001, 08:12 PM
#2
Fanatic Member
Question 1 and 4) What's wrong with using a RichTextbox ?? Get the scrollbars and the fonts, wordwrap, etc. Textboxes don't support anything special with fonts.(bold, italic, etc)
2) From VB Application Wizard.
VB Code:
' each new MDI form
Private Sub LoadNewDoc()
Static lDocumentCount As Long
Dim frmD As frmDocument
lDocumentCount = lDocumentCount + 1
Set frmD = New frmDocument
frmD.Caption = "Document " & lDocumentCount
frmD.Show
End Sub
3) When they save the file. frmD.Cation = sfilename
-
Sep 4th, 2001, 08:15 PM
#3
PowerPoster
Re: Word Wrap + another questions
Originally posted by SomethinCool
Ok..here are those questions..
1) how would you make a text box with vertical and horizontal scroll bars use word wrap?
It does by default even with both scroll bars
2) How would you make the title of each text box Untitled and then for every new MDIwindow (like MSWord) whenever someone makes a new window it will start with Untitled to Untitled1 then Untitled2..does anyone understand that?
See your other post http://www.vbforums.com/showthread.p...hreadid=101388
3) how would you make the caption of that title bar the document file name?
Depends how you're loading it. There should be a string somewhere containing it because you have to use that to use the Open statement (if you are).
4) and how would you change the font in the text box? like bring up the font box and stuff? yeah.
Only with the RichTextBox...yeah...http://www.vbforums.com/showthread.p...hreadid=101338
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
|