Files
harbour-core/harbour/website/samples/testidle.prg.html
Viktor Szakats bc49ced49b 2012-11-18 12:55 UTC+0100 Viktor Szakats (harbour syenar.net)
* website/samples/*.*.html
    % pointed compatibility .js link to the project's cloud server
2012-11-18 11:57:56 +00:00

52 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8">
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/xregexp/2.0.0/xregexp-min.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/xregexp/2.0.0/backcompat.js"></script>
<script type="text/javascript" src="/js/shCore.js"></script>
<script type="text/javascript" src="/js/shBrushHarbour.js"></script>
<link href="/css/shCore.css" rel="stylesheet" type="text/css" />
<link href="/css/shThemeDefault.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">SyntaxHighlighter.all()</script>
</head>
<body>
<script type="syntaxhighlighter" class="brush: harbour; light: true"><![CDATA[
PROCEDURE Main()
CLS
? "DEFAULT IDLEREPEAT =", Set( _SET_IDLEREPEAT )
?
? "Idle Block should be displayed multiple times until key or 10 seconds elapsed!"
? "Press any key to begin..."
?
Inkey( 0 )
hb_idleAdd( {|| QOut( "Idle Block" ) } )
Inkey( 2 )
Set( _SET_IDLEREPEAT, .F. )
hb_idleAdd( {|| QOut( "Idle Block2" ) } )
CLS
? "Idle Block & Block-2 should display ONCE! while waitning for key or 10 seconds elapsed!"
?
Inkey( 2 )
?
? "Again - Idle Block & Block-2 should display ONCE! while waitning for key or 10 seconds elapsed!"
?
Inkey( 2 )
?
RETURN
]]></script>
</body>
</html>