iwidgets::hyperhelp(1)
β¨ iwidgets::hyperhelp β the manual page, but make it cute β¨
okay bestie, you're reading the iwidgets::hyperhelp(1) page from the [incr Widgets] set, and I'm gonna walk you through it like we're texting at 2am π every single flag stays, I promise.
πΈ NAME πΈ
iwidgets::hyperhelp β Create and manipulate a hyperhelp widget. that's it, that's the whole vibe. a widget that does help. iconic.
π¦ SYNOPSIS π¦
iwidgets::hyperhelp pathName ?options?
π INHERITANCE π
like, the family tree fr fr:
itk::Toplevel <- iwidgets::Shell <- iwidgets::Hyperhelp
β¨ STANDARD OPTIONS β¨
these are the standard ones, the classics, no cap:
activeBackgroundbackgroundborderWidthclosecmdcursorexportSelectionforegroundhighlightColorhighlightThicknessinsertBackgroundinsertBorderWidthinsertOffTimeinsertOnTimeinsertWidthpadXpadYreliefrepeatDelayrepeatIntervalselectBackgroundselectBorderWidthselectForegroundsetGrid
go read the options manual entry if you want the details on any of these, she's the source of truth π
π ASSOCIATED OPTIONS π
these ones live next door, they're associated:
hscrollmodevscrollmodetextbackgroundfontnamefontsizefixedfontlinklinkhighlightwidthheightstatewrapunknownimage
the scrolledhtml widget manual entry has the tea on all of the above β
π INHERITED OPTIONS π
borrowed from the ancestors, as one does:
modalitytitle
check the shell manual entry for the deets on these π«Ά
π WIDGET-SPECIFIC OPTIONS π
these are hers, main character energy only:
π the topics option
- Name:
topics - Class:
Topics - Command-Line Switch:
-topics
Specifies a list of help topics in the form {?topic? ... }. A topic can be either just a topic name β and in that case the document for it should live at helpdir/topic.html β or it can be shaped like {name file}. In that second form, name is what shows up in the topic menu, and picking that name loads file. And if file has a relative path? it's assumed to be relative to helpdir. periodt.
π the helpdir option
- Name:
helpdir - Class:
Directory - Command-Line Switch:
-helpdir
Specifies the directory where the help files are located. literally where the help lives.
π the closeCmd option
- Name:
closeCmd - Class:
CloseCmd - Command-Line Switch:
-closecmd
Specifies the tcl command to be executed when the close option is selected from the topics menu. bye bye command π
π the maxHistory option
- Name:
maxHistory - Class:
MaxHistory - Command-Line Switch:
-maxhistory
Specifies the maximum number of entries stored in the history list.
π the beforelink option
- Name:
beforelink - Class:
BeforeLink - Command-Line Switch:
-beforelink
Specifies a command to be eval'ed before a new link is displayed. The path of the link to be displayed gets appended before evaling the command. A suggested use? busy the widget while a new page is being displayed. multitasking queen β¨
π the afterlink option
- Name:
afterlink - Class:
AfterLink - Command-Line Switch:
-afterlink
Specifies a command to be eval'ed after a new link is completely displayed. The path of the link that was displayed gets appended before evaling the command.
π DESCRIPTION π
The iwidgets::hyperhelp command creates a shell window with a pulldown menu showing a list of topics. The topics are displayed by importing a HTML formatted file named helpdir/topic.html. And if you wanna know which HTML tags are supported, go see scrolledhtml(n). iykyk π
π METHODS π
The iwidgets::hyperhelp command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations on the widget. It has the following general form:
pathName option ?arg arg ...?
Option and the args determine the exact behavior of the command. The following commands are possible for dialog widgets:
π§ INHERITED METHODS π§
handed down, still slaying:
activatecenterchildsitedeactivate
the shell manual entry has the details on the above inherited methods πΈ
β WIDGET-SPECIFIC METHODS β
pathName cget option
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the iwidgets::hyperhelp command.
pathName configure ?option? ?value option value ...?
Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the iwidgets::hyperhelp command.
pathName showtopic topic
Display html file helpdir/topic.html. Topic may optionally be of the form topicname#anchorname. In this form, either topicname or anchorname or both may be empty. If topicname is empty, the current topic is assumed. If anchorname is empty, the top of the document is assumed.
pathName followlink href
Display html file href. Href may optionally be of the form filename#anchorname. In this form, either filename or anchorname or both may be empty. If filename is empty, the current document is assumed. If anchorname is empty, the top of the document is assumed.
pathName forward
Display html file one forward in history list, if applicable.
pathName back
Display html file one back in history list, if applicable.
π EXAMPLE π
steal this, it works:
package require Iwidgets 4.0
iwidgets::hyperhelp .h -topics { Intro Help } -helpdir ~/help
.h showtopic Intro
π«Ά AUTHOR π«Ά
Kris Raney β shoutout, legend behavior π
π₯ KEYWORDS π₯
hyperhelp, html, help, shell, widget
and that's the whole page bestie π it comes from the Tk crew, hanging out in section 1 of the manual, right next to iwidgets::hyperhelp(1). go forth and hyperhelp, you got this πβ¨
π¦ where this page comes from
- debian bookworm: iwidgets4-doc 4.1.1-2.1
- debian trixie: iwidgets4-doc 4.1.1-4
- ubuntu jammy: iwidgets4-doc 4.1.1-2.1
- ubuntu noble: iwidgets4-doc 4.1.1-2.1
- ubuntu resolute: iwidgets4-doc 4.1.1-4
- ubuntu stonking: iwidgets4-doc 4.1.1-4
- Copyright (c) 1996 DSC Technologies Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms