Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

« Newer Snippets
Older Snippets »
2 total  XML / RSS feed 

laszlo stretchybutton (or window)

// This could be used for a 9-piece button or window

    <class name="stretchybutton" pixellock="true">
        <resizeview_x name="top" width="100%" 
            left="btn_tl"
            middle="btn_t"
            right="btn_tr" />
        <resizeview_x name="middle" width="100%" 
            left="btn_l"
            middle="btn_m"
            right="btn_r" />
        <resizeview_x name="bottom" width="100%" 
            left="btn_bl"
            middle="btn_b"
            right="btn_br" />
    
        <stableborderlayout axis="y"/>
    class>

loadVars (from debugger.lzx)

// description of your code here

    <method name='checkServerResponse'>
      &lt;![CDATA[&lt;![CDATA[
        var loadobj = new LoadVars();
        loadobj.onData = this.checkServerResponseHandler;
        var reqstr =  LzBrowser.toAbsoluteURL( "__dbgprobe.lzx?lzt=stat", false );
        loadobj.sendAndLoad(reqstr , loadobj, "POST" );
      ]>
    method>

    
      <![CDATA[<![CDATA[
      // NB: This is a callback handler, and 'this' will be bound to some LoadVars object, not to Debug
      if (src == undefined) {
        Debug.freshLine();  
        Debug.addHTMLText('<font color="#FF8800">Debugger cannot contact LPS server, switching to SOLO mode.</font>\n');
        Debug.setAttribute('solo_mode', true);
      }
      ]>
    method>
« Newer Snippets
Older Snippets »
2 total  XML / RSS feed