Images and Hyperlinks
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngrichtextbox' list.


Rob Richmond
Question...

I guess I am not reading the Documentation correctly, so I got a couple
questions.

The image button on the default RichTextBox Control, if selected comes
up with the dialog with a browse button. The browse button basically
allows you to browse your own hard drive, not that of the webserver
image directory. I have tried to set the ImageMenuPath, to no avail (no
matter what I put in it always shows up with file:// in the html).
Maybe I just don't understand. What I would like to do, or what I think
it is suppose to do, is show the images that are in the directory that I
have entered?

The other question is about the Hyperlink button, when selected it only
allows for you to enter the URL, not the alternative text as well.
Aside from going into the html to correct this, what other way can this
be accomplished?

Rob Richmond

Reply to this message...
 
    
Ollie Cornes

Hi Rob,

The ImageMenuPath applies to the image menu, not the dialog that opens when
you click the image insertion button. If you want to show images from the
server in a list so the user can insert them, check out the insert image
menu. You can see an example here (the right-hand drop-down list):
http://www.richtextbox.com/richtextbox/demos/2/

To enable it, do this:
myRTB.EnableToolbarItem(ToolbarItem.InsertImageMenu)

With hyperlinks that you insert, the easiest way to set the text is to type
it into the document, select it, and then set the URL by clicking the
hyperlink button.

Does that give you what you need?

Ollie
--
http://www.richtextbox.com/

-----Original Message-----
From: Click here to reveal e-mail address
[mailto:Click here to reveal e-mail address]On Behalf Of Rob
Richmond
Sent: 17 June 2002 14:39
To: aspngrichtextbox
Subject: [aspngrichtextbox] Images and Hyperlinks

Question...

I guess I am not reading the Documentation correctly, so I got a couple
questions.

The image button on the default RichTextBox Control, if selected comes
up with the dialog with a browse button. The browse button basically
allows you to browse your own hard drive, not that of the webserver
image directory. I have tried to set the ImageMenuPath, to no avail (no
matter what I put in it always shows up with file:// in the html).
Maybe I just don't understand. What I would like to do, or what I think
it is suppose to do, is show the images that are in the directory that I
have entered?

The other question is about the Hyperlink button, when selected it only
allows for you to enter the URL, not the alternative text as well.
Aside from going into the html to correct this, what other way can this
be accomplished?

Rob Richmond

| [aspngrichtextbox] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp = JOIN/QUIT

Reply to this message...
 
    
Rob Richmond
Ollie,

Thanks for the comments on the hyperlink.

About the Image question...so is there any way to enter a relative path
or persistant path in the picture source and not have it put file://?

Rob

-----Original Message-----
From: Ollie Cornes [mailto:Click here to reveal e-mail address]
Sent: Monday, June 17, 2002 11:03 AM
To: aspngrichtextbox
Subject: [aspngrichtextbox] RE: Images and Hyperlinks

Hi Rob,

The ImageMenuPath applies to the image menu, not the dialog that opens
when you click the image insertion button. If you want to show images
from the server in a list so the user can insert them, check out the
insert image menu. You can see an example here (the right-hand drop-down
list): http://www.richtextbox.com/richtextbox/demos/2/

To enable it, do this:
myRTB.EnableToolbarItem(ToolbarItem.InsertImageMenu)

With hyperlinks that you insert, the easiest way to set the text is to
type it into the document, select it, and then set the URL by clicking
the hyperlink button.

Does that give you what you need?

Ollie
--
http://www.richtextbox.com/

-----Original Message-----
From: Click here to reveal e-mail address
[mailto:Click here to reveal e-mail address]On Behalf Of Rob
Richmond
Sent: 17 June 2002 14:39
To: aspngrichtextbox
Subject: [aspngrichtextbox] Images and Hyperlinks

Question...

I guess I am not reading the Documentation correctly, so I got a couple
questions.

The image button on the default RichTextBox Control, if selected comes
up with the dialog with a browse button. The browse button basically
allows you to browse your own hard drive, not that of the webserver
image directory. I have tried to set the ImageMenuPath, to no avail (no
matter what I put in it always shows up with file:// in the html). Maybe
I just don't understand. What I would like to do, or what I think it is
suppose to do, is show the images that are in the directory that I have
entered?

The other question is about the Hyperlink button, when selected it only
allows for you to enter the URL, not the alternative text as well. Aside
from going into the html to correct this, what other way can this be
accomplished?

Rob Richmond

| [aspngrichtextbox] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp = JOIN/QUIT

| [aspngrichtextbox] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp = JOIN/QUIT

Reply to this message...
 
    
Ollie Cornes

Hi Rob,

To persuade the insert image dialog box to leave the URL as you type it, use
a fully qualified location like http://www.domain.com/images/pic.gif. If
your users are not net-savvy or expect a cleaner interface, I'd recommend
looking at the insert image menu instead. The dialog box that inserts the
"file://" tags is the standard IE insert image dialog and it doesn't work so
well in some scenarios. I think to be honest I underestimated the problems
it would cause, and I expect down the line there will be some better options
available.

Something else you can do is have the images displayed in a gallery on the
page and instruct your users to do some drag-and-drop to place them in the
document. I'll post a message up here sometime soon about a sample that
shows you how to do that and will save you writing the code.

Ollie
--
http://www.richtextbox.com/

-----Original Message-----
From: Click here to reveal e-mail address
[mailto:Click here to reveal e-mail address]On Behalf Of Rob
Richmond
Sent: 17 June 2002 16:21
To: aspngrichtextbox
Subject: [aspngrichtextbox] RE: Images and Hyperlinks

Ollie,

Thanks for the comments on the hyperlink.

About the Image question...so is there any way to enter a relative path
or persistant path in the picture source and not have it put file://?

Rob

-----Original Message-----
From: Ollie Cornes [mailto:Click here to reveal e-mail address]
Sent: Monday, June 17, 2002 11:03 AM
To: aspngrichtextbox
Subject: [aspngrichtextbox] RE: Images and Hyperlinks

Hi Rob,

The ImageMenuPath applies to the image menu, not the dialog that opens
when you click the image insertion button. If you want to show images
from the server in a list so the user can insert them, check out the
insert image menu. You can see an example here (the right-hand drop-down
list): http://www.richtextbox.com/richtextbox/demos/2/

To enable it, do this:
myRTB.EnableToolbarItem(ToolbarItem.InsertImageMenu)

With hyperlinks that you insert, the easiest way to set the text is to
type it into the document, select it, and then set the URL by clicking
the hyperlink button.

Does that give you what you need?

Ollie
--
http://www.richtextbox.com/

-----Original Message-----
From: Click here to reveal e-mail address
[mailto:Click here to reveal e-mail address]On Behalf Of Rob
Richmond
Sent: 17 June 2002 14:39
To: aspngrichtextbox
Subject: [aspngrichtextbox] Images and Hyperlinks

Question...

I guess I am not reading the Documentation correctly, so I got a couple
questions.

The image button on the default RichTextBox Control, if selected comes
up with the dialog with a browse button. The browse button basically
allows you to browse your own hard drive, not that of the webserver
image directory. I have tried to set the ImageMenuPath, to no avail (no
matter what I put in it always shows up with file:// in the html). Maybe
I just don't understand. What I would like to do, or what I think it is
suppose to do, is show the images that are in the directory that I have
entered?

The other question is about the Hyperlink button, when selected it only
allows for you to enter the URL, not the alternative text as well. Aside
from going into the html to correct this, what other way can this be
accomplished?

Rob Richmond

| [aspngrichtextbox] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp = JOIN/QUIT

| [aspngrichtextbox] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp = JOIN/QUIT

| [aspngrichtextbox] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp = JOIN/QUIT

Reply to this message...
 
 
System.Windows.Forms.RichTextBox




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com