Description: One or more errors occurred during the compilation of a resource required to build this page. Please review the following specific error details and modify your source code appropriately.
CXP File: C:\inetpub\wwwroot\webdoc-v2-standalone\v2\content\cls_xppcref_xbpstatusbar.cxp
Intermediate Xbase++ Code: C:\inetpub\wwwroot\webdoc-v2-standalone\v2\content\cxp-application\cls_xppcref_xbpstatusbar.cxp.20251015-35550592.dll
Compiler: error XBT0523: Length of input line exceeds input buffer length in Line 0
A single line of code which is broken down into several lines using the line continuation character (;) exceeds the limit of 20kB characters. This line must be split into several lines without line continuation, or blank spaces must be converted into tabs.
(No Source Code Location Determinable)
The builder was invoked with the following parameters, the output is shown below.
Current Directory:
C:\Program Files (x86)\Alaska Software\cxp20\bin
Command:
C:\Program Files (x86)\Alaska Software\cxp20\bin\cxc-builder.exe
Parameters:
"@C:\inetpub\wwwroot\webdoc-v2-standalone\v2\content\cxp-application\cls_xppcref_xbpstatusbar.cxp.20251015-35550592.lst"
Output:
c:\inetpub\wwwroot\webdoc-v2-standalone\v2\content\cxp-application\cls_xppcref_xbpstatusbar.cxp.prg(0:0): error XBT0523: Length of input line exceeds input buffer length
In the following the full source code of your resource is shown.
0001 <%#page implements="PageClass_F6794F854D52D3C329195342311782FCC6B8BFE9" layout="/layouts/class.layout" %>
0002
0003 @SECTION meta-title
0004 <title>Class XbpStatusBar() | Xbase++ - </title>
0005
0006 @SECTION meta-description
0007 <meta name="description" content="Class XbpStatusBar() - Class function of the XbpStatusBar() class" />
0008
0009 @SECTION menu-sidebar
0010 <div id="sidebar-menu-placeholder"><div class="ui blue inverted left vertical menu sidebar mobile only" id="sidebar-menu">
0011 <div class="item" id="wdg-sidebar-left-menu">
0012 <div class="header" >Class XbpStatusBar()</div>
0013 <div class="menu" >
0014 <a class="item active" href="#">XbpStatusBar()</a><a class="item" href="mtd_xppcref_xbpstatusbar_op_sendadditem.cxp">:addItem()</a><a class="item" href="mv_xppcref_xbpstatusbar_op_sendcaption.cxp">:caption</a><a class="item" href="mtd_xppcref_xbpstatusbar_op_sendclear.cxp">:clear()</a><a class="item" href="mtd_xppcref_xbpstatusbar_op_sendconfigure.cxp">:configure()</a><a class="item" href="mtd_xppcref_xbpstatusbar_op_sendcreate.cxp">:create()</a><a class="item" href="mtd_xppcref_xbpstatusbar_op_senddelitem.cxp">:delItem()</a><a class="item" href="mtd_xppcref_xbpstatusbar_op_senddestroy.cxp">:destroy()</a><a class="item" href="mtd_xppcref_xbpstatusbar_op_sendgetitem.cxp">:getItem()</a><a class="item" href="mtd_xppcref_xbpstatusbar_op_sendnew.cxp">:new()</a><a class="item" href="mtd_xppcref_xbpstatusbar_op_sendnumitems.cxp">:numItems()</a><a class="item" href="msg_xppcref_xbpstatusbar_xbesbar_panelclick.cxp">:panelClick / xbeSBAR_PanelClick</a><a class="item" href="msg_xppcref_xbpstatusbar_xbesbar_paneldblclick.cxp">:panelDblClick / xbeSBAR_PanelDblClick</a><a class="item" href="mv_xppcref_xbpstatusbar_op_sendsizegrip.cxp">:sizeGrip</a>
0015 </div>
0016 </div>
0017 </div>
0018 </div>
0019
0020 @SECTION left-menu
0021 <div class="ui vertical accordion inverted orange fluid menu" id="wgd-left-menu">
0022 <a class="active item" href="#">
0023 <div class="header wgd-left-menu-class-header">Class XbpStatusBar()</div>
0024 </a>
0025 <a class="item wgd-left-menu-member" href="mtd_xppcref_xbpstatusbar_op_sendadditem.cxp">:addItem()</a><a class="item wgd-left-menu-member" href="mv_xppcref_xbpstatusbar_op_sendcaption.cxp">:caption</a><a class="item wgd-left-menu-member" href="mtd_xppcref_xbpstatusbar_op_sendclear.cxp">:clear()</a><a class="item wgd-left-menu-member" href="mtd_xppcref_xbpstatusbar_op_sendconfigure.cxp">:configure()</a><a class="item wgd-left-menu-member" href="mtd_xppcref_xbpstatusbar_op_sendcreate.cxp">:create()</a><a class="item wgd-left-menu-member" href="mtd_xppcref_xbpstatusbar_op_senddelitem.cxp">:delItem()</a><a class="item wgd-left-menu-member" href="mtd_xppcref_xbpstatusbar_op_senddestroy.cxp">:destroy()</a><a class="item wgd-left-menu-member" href="mtd_xppcref_xbpstatusbar_op_sendgetitem.cxp">:getItem()</a><a class="item wgd-left-menu-member" href="mtd_xppcref_xbpstatusbar_op_sendnew.cxp">:new()</a><a class="item wgd-left-menu-member" href="mtd_xppcref_xbpstatusbar_op_sendnumitems.cxp">:numItems()</a><a class="item wgd-left-menu-member" href="msg_xppcref_xbpstatusbar_xbesbar_panelclick.cxp">:panelClick / xbeSBAR_PanelClick</a><a class="item wgd-left-menu-member" href="msg_xppcref_xbpstatusbar_xbesbar_paneldblclick.cxp">:panelDblClick / xbeSBAR_PanelDblClick</a><a class="item wgd-left-menu-member" href="mv_xppcref_xbpstatusbar_op_sendsizegrip.cxp">:sizeGrip</a>
0026 </div>
0027
0028 @SECTION breadcrumbs
0029 <a class="section" href="class_toc_x.cxp" id="wdg-bread-crumb-1">
0030 <i class="sitemap icon"></i>
0031 Classes
0032 </a>
0033 <i class="right angle icon divider"></i>
0034 <span class="item" id="wdg-bread-crumb-2">Class XbpStatusBar()</span>
0035
0036 @SECTION name
0037 <span>Class XbpStatusBar()</span>
0038
0039 @SECTION feature
0040 <a class="bg-blue ui tag label" href="/document-conventions.cxp#FeatureGrades" id="wdg-feature">Foundation</a>
0041
0042 @SECTION short-description
0043 <p>Class function of the XbpStatusBar() class </p>
0044
0045 @SECTION body
0046 <a class="anchor" id="wdg-superclass-anchor"></a>
0047 <div class="ui vertical basic segment" id="wdg-superclass">
0048 <div class="ui header">Superclass</div>
0049 <div class="wdg-link-list">
0050 <div class="ui list wdg-link-list-list">
0051 <div class="item wdg-link-list-item">
0052 <a class="header wdg-link-list-item-header" href="cls_xppcref_xbpactivexcontrol.cxp">XbpActiveXControl()</a>
0053 </div>
0054 </div>
0055 </div>
0056 </div><a class="anchor" id="wdg-subclass-anchor"></a><a class="anchor" id="wdg-description-anchor"></a>
0057 <div class="ui vertical basic segment">
0058 <div class="ui header">Description</div>
0059 <div>
0060 <p class="wdg-description-text">The class XbpStatusBar implements an Xbase Part that can be used by an Xbase++ application to inform the user of the applications status. An XbpStatusBar object consists of one or more panels, each of which can display status text as well as an application-defined image. </p>
0061 <p class="wdg-description-text">Possible uses of the XbpStatusBar class include: </p><div class="wdg-simple-list">
0062 <div class="ui bulleted list wdg-simple-list-list">
0063 <div class="item wdg-simple-list-list-item">Display the current keyboard state for keys such as the Insert (INS) key.
0064 </div>
0065 <div class="item wdg-simple-list-list-item">Display the current time and date
0066 </div>
0067 <div class="item wdg-simple-list-list-item">Display status information, such as whether the application is currently busy
0068 </div>
0069 <div class="item wdg-simple-list-list-item">Display information about the file or database currently open in the application
0070 </div>
0071 </div>
0072 </div><p class="wdg-description-text"><span class="bold">Using the XbpStatusBar Xbase Part </span></p>
0073 <p class="wdg-description-text">An instance of the XbpStatusBar class is created by calling its <span class="italic">:new()</span> method followed by <span class="italic">:create()</span>. After the object is created, an application uses the objects instance variables and methods to assign the status text and/or image to be displayed by the Xbase Part. The visible area of an XbpStatusBar object can be divided into one or more status bar panels, each of which can display a status message and image. A status bar panel is defined using the method <span class="italic">:addItem()</span>. An XbpStatusBar object can hold up to 16 panels. </p>
0074 <p class="wdg-description-text"><span class="bold">Usage in MDI applications</span></p>
0075 <p class="wdg-description-text">In so-called MDI applications, one or more child or document windows can be displayed within the main window of the application. MDI applications are created by making the XbpDialog objects representing the child windows a child of the :drawingArea of the main window. Afterwards, the child windows can be moved freely within the drawing area of the main window. The child dialogs overlap each other as well as all other childs defined in the :drawingArea of the main window. This is to be taken into account when using the XbpStatusBar class within the main window of an MDI application. In this case, the status bar often visualizes the global application status and hence should be visible at all times. In order to prevent the status bar from being hidden by overlapping child dialogs, the status bar should be created as a child of the main window (XbpDialog), and not as a child of the main windows drawing area. Also, the dimension of the drawing area must be reduced by the height of the status bar, and the position must be adjusted accordingly. </p>
0076 <p class="wdg-description-text"><div class="ui blue icon message" >
0077 <i class="icon info circle"></i>
0078 <div class="content">
0079 <p> To function properly, the XbpStatusBar class requires a certain system component, the Microsoft Common Controls Version 6.0, to be installed on your computer. Normally, this component is not installed along with the operating system, so provisions must be taken to distribute the component with your Xbase++ application. An installation package with the required system files for using the XbpStatusBar Xbase Part is available from Alaska Software. The corresponding archive should be located on your Xbase++ disk or CD ROM. For further information, please click the Info button on this page. </p>
0080 </div>
0081 </div></p>
0082 </div>
0083 </div>
0084 <div id="wdg-groups">
0085 <div class="wdg-group">
0086 <a name="Class methods" class="anchor wdg-group-anchor"></a>
0087 <div class="ui vertical basic segment">
0088 <div class="ui header wdg-group-name">Class methods</div>
0089 <div></div>
0090 <div class="ui list wdg-group-list">
0091 <div class="item wdg-group-list-item">
0092 <div class="content">
0093 <a class="header wdg-group-list-item-name" href="mtd_xppcref_xbpstatusbar_op_sendnew.cxp">:new()</a>
0094 <div class="description wdg-group-list-item-description">Creates an instance of the XbpStatusBar class.
0095 </div>
0096 </div>
0097 </div>
0098 </div>
0099 </div>
0100 </div>
0101 <div class="wdg-group">
0102 <a name="Life cycle" class="anchor wdg-group-anchor"></a>
0103 <div class="ui vertical basic segment">
0104 <div class="ui header wdg-group-name">Life cycle</div>
0105 <div></div>
0106 <div class="ui list wdg-group-list">
0107 <div class="item wdg-group-list-item">
0108 <div class="content">
0109 <a class="header wdg-group-list-item-name" href="mtd_xppcref_xbpstatusbar_op_sendcreate.cxp">:create()</a>
0110 <div class="description wdg-group-list-item-description">Requests system resources for the XbpStatusBar object.
0111 </div>
0112 </div>
0113 </div>
0114 <div class="item wdg-group-list-item">
0115 <div class="content">
0116 <a class="header wdg-group-list-item-name" href="mtd_xppcref_xbpstatusbar_op_sendconfigure.cxp">:configure()</a>
0117 <div class="description wdg-group-list-item-description">Reconfigures the XbpStatusBar object after <span class="italic">:create()</span> has been executed.
0118 </div>
0119 </div>
0120 </div>
0121 <div class="item wdg-group-list-item">
0122 <div class="content">
0123 <a class="header wdg-group-list-item-name" href="mtd_xppcref_xbpstatusbar_op_senddestroy.cxp">:destroy()</a>
0124 <div class="description wdg-group-list-item-description">Releases the system resources of the object.
0125 </div>
0126 </div>
0127 </div>
0128 </div>
0129 </div>
0130 </div>
0131 <div class="wdg-group">
0132 <a name="Runtime Data" class="anchor wdg-group-anchor"></a>
0133 <div class="ui vertical basic segment">
0134 <div class="ui header wdg-group-name">Runtime Data</div>
0135 <div>
0136 <p><div class="ui blue icon message" >
0137 <i class="icon info circle"></i>
0138 <div class="content">
0139 <p> The instance variables in the following section can only be used after method <span class="italic">:create()</span> was called. </p>
0140 </div>
0141 </div></p>
0142 </div>
0143 <div class="ui list wdg-group-list">
0144 <div class="item wdg-group-list-item">
0145 <div class="content">
0146 <a class="header wdg-group-list-item-name" href="mv_xppcref_xbpstatusbar_op_sendcaption.cxp">:caption</a>
0147 <div class="description wdg-group-list-item-description">Contains the caption string displayed by an XbpStatusBar object.
0148 </div>
0149 </div>
0150 </div>
0151 <div class="item wdg-group-list-item">
0152 <div class="content">
0153 <a class="header wdg-group-list-item-name" href="mv_xppcref_xbpstatusbar_op_sendsizegrip.cxp">:sizeGrip</a>
0154 <div class="description wdg-group-list-item-description">Specifies whether the XbpStatusBar displays a size grip.
0155 </div>
0156 </div>
0157 </div>
0158 </div>
0159 </div>
0160 </div>
0161 <div class="wdg-group">
0162 <a name="Manipulation" class="anchor wdg-group-anchor"></a>
0163 <div class="ui vertical basic segment">
0164 <div class="ui header wdg-group-name">Manipulation</div>
0165 <div></div>
0166 <div class="ui list wdg-group-list">
0167 <div class="item wdg-group-list-item">
0168 <div class="content">
0169 <a class="header wdg-group-list-item-name" href="mtd_xppcref_xbpstatusbar_op_sendadditem.cxp">:addItem()</a>
0170 <div class="description wdg-group-list-item-description">Adds a status bar item (panel) to the XbpStatusBar object.
0171 </div>
0172 </div>
0173 </div>
0174 <div class="item wdg-group-list-item">
0175 <div class="content">
0176 <a class="header wdg-group-list-item-name" href="mtd_xppcref_xbpstatusbar_op_senddelitem.cxp">:delItem()</a>
0177 <div class="description wdg-group-list-item-description">Removes an item (panel) from the XbpStatusBar object.
0178 </div>
0179 </div>
0180 </div>
0181 <div class="item wdg-group-list-item">
0182 <div class="content">
0183 <a class="header wdg-group-list-item-name" href="mtd_xppcref_xbpstatusbar_op_sendgetitem.cxp">:getItem()</a>
0184 <div class="description wdg-group-list-item-description">Retrieves an item (panel) from the XbpStatusBar objects item array.
0185 </div>
0186 </div>
0187 </div>
0188 <div class="item wdg-group-list-item">
0189 <div class="content">
0190 <a class="header wdg-group-list-item-name" href="mtd_xppcref_xbpstatusbar_op_sendnumitems.cxp">:numItems()</a>
0191 <div class="description wdg-group-list-item-description">Returns the number of status bar items (panels) defined for an XbpStatusBar object.
0192 </div>
0193 </div>
0194 </div>
0195 <div class="item wdg-group-list-item">
0196 <div class="content">
0197 <a class="header wdg-group-list-item-name" href="mtd_xppcref_xbpstatusbar_op_sendclear.cxp">:clear()</a>
0198 <div class="description wdg-group-list-item-description">Removes all status bar items (panels) defined for an XbpStatusBar object.
0199 </div>
0200 </div>
0201 </div>
0202 </div>
0203 </div>
0204 </div>
0205 <div class="wdg-group">
0206 <a name="Events" class="anchor wdg-group-anchor"></a>
0207 <div class="ui vertical basic segment">
0208 <div class="ui header wdg-group-name">Events</div>
0209 <div></div>
0210 <div class="ui list wdg-group-list">
0211 <div class="item wdg-group-list-item">
0212 <div class="content">
0213 <a class="header wdg-group-list-item-name" href="msg_xppcref_xbpstatusbar_xbesbar_panelclick.cxp">:panelClick</a>
0214 <div class="description wdg-group-list-item-description">A status bar panel has been clicked with the mouse.
0215 </div>
0216 </div>
0217 </div>
0218 <div class="item wdg-group-list-item">
0219 <div class="content">
0220 <a class="header wdg-group-list-item-name" href="msg_xppcref_xbpstatusbar_xbesbar_paneldblclick.cxp">:panelDblClick</a>
0221 <div class="description wdg-group-list-item-description">A status bar panel has been double-clicked with the mouse.
0222 </div>
0223 </div>
0224 </div>
0225 </div>
0226 </div>
0227 </div>
0228 </div><a class="anchor" id="wdg-examples-anchor"></a>
0229 <div class="ui vertical basic segment" id="wdg-examples">
0230 <div class="ui header">Examples</div>
0231 <div id="wdg-examples-placeholder"><figure class="code-block-segment" >
0232 <figcaption class="code-block-header"><span>Example for using the XbpStatusBar Xbase Part</span>
0233 <div class="ui right floated small header copy-to-clipboard" data-tooltip="Copy">
0234 <i class="copy outline link icon"></i>
0235 </div>
0236 </figcaption>
0237 <div class="code-block">
0238 <pre><code class="language-xpp" >
0239 //
0240 // Example for using the XbpStatusBar Xbase Part
0241 //
0242 #include "XBP.CH"
0243 #include "AppEvent.CH"
0244
0245 PROCEDURE Main()
0246 LOCAL oDlg
0247 LOCAL oSBar
0248 LOCAL nEvent, mp1, mp2, oXbp
0249 LOCAL oPanel
0250
0251 //
0252 // Create applications main dialog
0253 //
0254 oDlg := XbpDialog():new( Appdesktop() )
0255 oDlg:title := "Statusbar Example"
0256 oDlg:taskList := .T.
0257 oDlg:close := {|| PostAppEvent(xbeP_Quit,,, oDlg) }
0258 oDlg:create( ,, {50,50}, {640,480},, .F. )
0259 oDlg:drawingArea:resize := {|| ResizeStatusbar(oSBar)}
0260
0261 //
0262 // Create an XbpStatusBar object and
0263 // add it at the bottom of the dialog
0264 //
0265 oSBar := XbpStatusBar():new( oDlg:drawingArea )
0266 oSBar:create( ,, {0,0}, {oDlg:drawingArea:currentSize()[1],30} )
0267
0268 //
0269 // Use two status bar panels to display status
0270 // information: application mode ("Ready") and
0271 // current time
0272 //
0273 oPanel := oSBar:getItem( 1 )
0274 oPanel:caption := "Ready"
0275 oPanel:autosize := XBPSTATUSBAR_AUTOSIZE_SPRING
0276
0277 oPanel := oSBar:addItem()
0278 oPanel:Style := XBPSTATUSBAR_PANEL_TIME
0279 oPanel:autosize := XBPSTATUSBAR_AUTOSIZE_CONTENTS
0280
0281 //
0282 // Display the main dialog and process
0283 // application events until the dialog
0284 // is closed
0285 //
0286 oDlg:show()
0287
0288 SetAppWindow( oDlg )
0289 SetAppFocus( oDlg )
0290
0291 nEvent := xbeP_Quit
0292 DO WHILE nEvent != xbeP_Close
0293 nEvent := AppEvent( @mp1, @mp2, @oXbp )
0294 oXbp:handleEvent( nEvent, mp1, mp2 )
0295 ENDDO
0296
0297 oDlg:destroy()
0298 RETURN
0299
0300 // Resize XbpStatusBar object to always span the
0301 // whole width of the dialogs drawing area
0302 PROCEDURE ResizeStatusbar( oSBar )
0303 LOCAL oParent := oSBar:setParent()
0304
0305 oSBar:setSize( {oParent:currentSize()[1], oSBar:currentSize()[2]} )
0306 RETURN
0307
0308 // Overloaded AppSys() procedure to prevent
0309 // creation of the default XbpCrt window
0310 PROCEDURE AppSys()
0311 RETURN
0312 </code></pre>
0313 </div>
0314 </figure>
0315 </div>
0316 </div>
0317
0318 @SECTION feedback
0319 <a href="/feedback/feedback.cxp?bid=2515&fid=F14BTD&title=Class%20XbpStatusBar%28%29" rel="nofollow">this form</a>
0320
0321 @SECTION right-menu-go-to
0322 <div class="menu wdg-goto-menu">
0323 <a class="item" href="#wdg-superclass-anchor" id="wdg-right-menu-superclass">Superclass</a>
0324
0325 <a class="item" href="#wdg-description-anchor">Description</a>
0326 <div id="right-menu-groups">
0327 <a class="item right-menu-groups-item" href="#Class methods">Class methods</a><a class="item right-menu-groups-item" href="#Life cycle">Life cycle</a><a class="item right-menu-groups-item" href="#Runtime Data">Runtime Data</a><a class="item right-menu-groups-item" href="#Manipulation">Manipulation</a><a class="item right-menu-groups-item" href="#Events">Events</a>
0328 </div><a class="item" href="#wdg-examples-anchor" id="wdg-right-menu-examples">Example</a>
0329 <a class="item" href="#feedback" id="wdg-right-menu-feedback">Feedback</a>
0330 <a class="item" href="#end-of-page">End of page</a>
0331 </div>
0332
0333 @SECTION right-menu-see-also
0334 <div class="item" >
0335 <div class="header">See also</div>
0336 <div class="menu wdg-see-also-articles">
0337 <a class="item wdg-see-also-article" href="cls_xppcref_xbpactivexcontrol.cxp">XbpActiveXControl()</a><a class="item wdg-see-also-article" href="cls_xppcref_xbpwindow.cxp">XbpWindow()</a><a class="item wdg-see-also-article" href="cls_xppcref_xbpbitmap.cxp">XbpBitmap()</a><a class="item wdg-see-also-article" href="cls_xppcref_xbpicon.cxp">XbpIcon()</a><a class="item wdg-see-also-article" href="cls_xppcref_xbpstatusbarpanel.cxp">XbpStatusBarPanel()</a>
0338 </div>
0339 </div>
0340
0341 @SECTION groups
0342 <div class="ui inverted orange fluid vertical menu" id="wdg-xpp-groups">
0343 <div class="item">
0344 <div class="header">Groups</div>
0345 <div class="menu" >
0346 <a class="item" href="grp_toc_l2_windows_controls_op_divide_xbase_parts.cxp" >Windows Controls / Xbase Parts</a>
0347 </div>
0348 </div>
0349 </div>
0350
0351 @SECTION file-info
0352 <div class="ui inverted blue fluid vertical menu" id="wdg-file-info">
0353 <div class="item" id="wdg-file-info-list">
0354 <div class="header">File info</div>
0355 <div class="description wdg-file-info-item">xbp.ch</div>
0356 <div class="description wdg-file-info-item">xppdui.lib</div>
0357 <div class="description wdg-file-info-item">xppdui.dll, ascom10c.dll, ascom10.dll, mscomctl.ocx</div>
0358 </div>
0359 </div>
0360