Sitemap Sitemap  |  Contact Us Contact Us  |  Clients Clients
   AddLocationBar
  Home |  WebHare Lite |  Downloads |  HareScript |  Websites/CMS |  Applications
Search for:  in: 
Applications
Module development
GUI development
 
Base interface elements
Dual column pages
Feedback handling
Form actions
Forms
Lists
AddLocationBar
  Add a location bar to the page
 
Library module::system/webui/core.whlib
 
Syntax PUBLIC MACRO AddLocationBar (RECORD ARRAY location,STRING imageloc,STRING imagedescription,STRING backlink)
 
Description A location bar is divided into different location parts (for example /root/folder/subfolder/). Setting a location bar replaces the Back button with an Up or Back button controlled by the location bar (you don't need to use SetBackLink when using a location bar)
 
Parameters
location Record Array with Location which is displayed in the bar
  The record contains the following cells:
title Name of the subfield of a location
link Location to link to when this link is selected
imageloc Location of the image preceeding the location bar
imagedescription Description of the image
backlink Link to go to after clicking the navigation image
 
Example
// Create a location bar record array with items
RECORD ARRAY location;
INSERT INTO location(title, link)
VALUES("root", "index.shtml?dir=/root/");
INSERT INTO location(title, link)
VALUES("folder", "index.shtml?dir=/root/folder/");
INSERT INTO location(title, link)
VALUES("sub", "index.shtml?dir=/root/folder/sub/");

// And add the location bar to the page
AddLocationBar(location,
'/img/foldericons/overlappingfolder.gif',
"Back to the normal browser", "index.shtml");
 
In library 'core'
AddApplicationButton
AddButtonSeparator
AddCustomTabsBar
AddExternalButton
AddLinkButton
AddLocationBar
AddPreviewButton
AddTextBullet
AddTextPlain
DisableButton
GetLinkToSelf
GetSelectedTab
HideButton
HideLegend
IsUserSysop
MakeTabitem
MakeYesNo
OverrideLanguage
SetBackLink
SetPageSaveQuestion
SetPageTitle
SetSlowRedirect
SetSlowSubmit
SetStatusBar
ShortenFolderName
ShortenName
WebuiFormatDate
WebuiFormatDateCustom
WebuiFormatDatetime
WebuiFormatMoney
WebuiFormatTime
WebuiFormatTimeCustom
WebuiFormatTimespan
WebuiLocalToUTC
WebuiUTCtoLocal
 
Top To top of page