Inserting Images

92 views
Skip to first unread message

Jim Losi

unread,
Aug 2, 2010, 11:22:44 AM8/2/10
to ModelText
Is there a way to drag/drop or otherwise insert images using this
control? if not, it would be a fantastic addition as well as a toolbar
button that displays the html markup in the same textbox. These would
make this feature complete for me to use. Other than that, this is a
fantastic control!

Christopher Wells

unread,
Aug 3, 2010, 8:39:47 AM8/3/10
to ModelText, Jim Losi


On Aug 2, 5:22 pm, Jim Losi <jiml...@gmail.com> wrote:
> Is there a way to drag/drop or otherwise insert images using this
> control? if not, it would be a fantastic addition

In a word, no, there isn't.

I'd love to develop that support. I have considered it, and I expect
it would take me a few weeks (less than a month) to complete.

Might your company be willing to pay/sponsor me to develop that new
functionality (support for inserting images)? If so then I'd be
grateful if you could tell me what it might be worth to them, to have
that functionality.

Otherwise I should spend the next few months, looking for ways to
monetize the software that I've finished, and/or looking for paid
employment contracts: which would probably leave me time to support
the existing ModelText software but not to develop new and desirable
functionality.


> as well as a toolbar
> button that displays the html markup in the same textbox.

You can get most of the way there with the existing control:

* See the FileOpenAndSave sample program for an example of how to get
the HTML markup from the control, as text
* Display the html markup text yourself, e.g. by inserting it into a
textbox control of your own (which you could if you like create on top
of the ModelText HTML control, so that it temporarily hides it)

What you cannot do at the moment is add a new button to the existing
toolbar:

* You can create your own menu item (instead of a toolbar button)
* You can use the control's event notification mechanism to watch for
a user's hotkey combination (like, I don't know, <Ctrl>-M or
something)
* You can add a toolbar button to your own toolbar (owned by your
form, not by the control)

If you did want to customize the toolbar though, then I would need to
do further development to expose the APIs to do that (and doing that
wouldn't be on my to do list, unless you were to hire me to do that).


> These would
> make this feature complete for me to use. Other than that, this is a
> fantastic control!

Thank you, for writing to say so. If you'd like to tell me any more
(what you're using it for, what you think is fantastic about it, any
alternatives you may have tried, and how or where you looked for the
control before you found it), then I'd be grateful and might find that
useful.

Jim Losi

unread,
Aug 3, 2010, 9:24:39 AM8/3/10
to Christopher Wells, ModelText
I wish I could offer monetary support from the company I work for, but they
are pretty stingy. A multi-million dollar company that doesn't even want to
spend money on a dedicated software tester or enterprise level mock
frameworks. Then they get mad when something doesn't work perfectly in
beta(??).

All I'm doing is a building an internal utility that has the ability to slap
some html in a box and then we pull that html out to a help doc.

This is the other box I'm using:
http://winformhtmltextbox.codeplex.com/releases/view/22179

It works really well, but again, not for images (I had to add that) and the
drawback is that it uses IE's engine. I was hoping to find something (like
yours) that didn't rely on that (for obvious reasons). I like the purity of
your control in that regard.

Other than that, I feel your pain as a fellow software developer. I get the
feeling that we are the new starving artists of the 21st century.

Thanks for taking the time to reply. I appreciate it.

-Jim

wieger

unread,
Sep 2, 2010, 9:13:19 AM9/2/10
to ModelText
I'm in the same boat here. I've tried telling our company to just get
our clients to use google docs to edit the document/html. Of course,
one more click is one click to many.
Reply all
Reply to author
Forward
0 new messages