Integrating Applications with RoboHelp for the web

by timvasil 12/21/2007 7:59:00 PM

Documentation on integrating with RoboHelp is sparse.  Here are some things I discovered by reading the JavaScript source (which looks like Win32 UI code out of the 1990s):

To link directly to a topic for context-sensitive help:

index.html#page.name.htm

To show the Index pane:

index.html#>>pdb=ndx

To show the Search pane:

index.html#>>pdb=nls

To show the Glossary pane:

index.html#>>pdb=gls

With these links, you can create a Help menu in your application with links to all of the appropriate pages:

If you have the patience, you can tweak the RoboHelp source to provide some pretty cool value-adds.  For example, I was able to add keyword search highlighting:

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

JavaScript | RoboHelp

Configuring SVN with Eclipse on Windows

by timvasil 12/20/2007 11:09:00 PM

I usually use CVS as the revision control system with Eclipse.  Recently, I tried using Subversion via the Subclipse plugin.

Hooking up to a Subversion repository takes a bit more attention than doing so with CVS.  Here are the steps:

  1. Download Subclise from http://subclipse.tigris.org/
  2. Use the Help > Software Updates > Find and Install feature of Eclipse to point to the downloaded ZIP file as an "Archived Site."
  3. Also check "The Eclipse Project Updates," as Eclipse will probably complain that various dependencies are needed.
  4. Choose the appropriate features to make the error messages go away.  I wish Eclipse had a feature to auto-select auto-dependenices.  This is a pain!
  5. Follow these instructions to generate a public/private key pair for SSH so you can login to the Subversion server without a password:  http://silenceisdefeat.org/wiki/index.php/SSH_Key_Authentication
  6. Configure svn+ssh connections by following the steps here:  http://subclipse.tigris.org/servlets/ReadMsg?list=users&msgNo=3334
    IMPORTANT:  Don't put spaces in the paths you specify (use 8.3 names if you have to), and make sure you use forward slashes, not backslashes!  Changes you make to the file take effect immediately; no need to restart Eclipse.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Eclipse | Subversion | Subclipse

Nested master page bug

by timvasil 12/6/2007 7:43:00 PM

Well, I stumbled upon a bug with nested master pages in .NET 2.0.

 Apparently it's a very bad idea to declare your own method called Master as follows:

        public new MyClass Master
        {
            get { return (MyClass)base.Master; }
        }

This compiles, of course, but any page that uses this master does not get its content inserted into the content placeholders.  Booo.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

ASP.NET

Setting a property based on a custom control's inner content

by timvasil 12/3/2007 11:38:00 AM

I want to define a custom ASP.NET control whose default property, say Text, gets set to the inner content the tag:

<prefix:MyTag runat="server" id="myTag">

    Inner content

</prefix:MyTag>

makes myTag.Text == "Inner content" true.

There are several approaches:

  • Override AddParsedSubObject and extract the text from added LiteralControls, throwing exceptions for other conditions, or
  • Override Render to use the Text getter, and implement the Text getter to render the contained controls into a StringWriter wrapped in an HtmlTextWriter.
  • Use special attributes:

    [ParseChildren(true, "Text")]
    [PersistChildren(false)]
    public class MyTag : Control
    {
        private string _text

        public ScriptVariableDefinition()
        {
        }

        [PersistenceMode(PersistenceMode.InnerDefaultProperty)]
        public string Text
        {
            get { return _text}
            set { _text= value; }
        }
    }

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

ASP.NET

 

About the author

Tim Vasil Tim Vasil
I'm a software engineer living in Cambridge, MA.

E-mail me Send mail

Search

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Recent comments