Simple button bars with a xTab

"[email protected] [gui4cli]" <[email protected]> 30 Aug 2014 01:15:16 -0700
Newsgroups gmane.comp.windows.gui4cli
Message-ID <[email protected]>
--9nlWnTS9ocNmxdhsK3FKVLWiM6a5jwOaA8HvrLV
Content-Type:  text/plain;  charset=utf-8 
Content-Transfer-Encoding: base64

SGkgRGltaXRyaXMsDQoNCkkgdXNlIG9mdGVuIHVzZSBidXR0b24gYmFycyB3aXRoIG9ubHkg
dGV4dCBjcmVhdGUgYnkgYSBsYXJnZSBudW1lciB4QnV0dG9uIG9yIHhUZXh0Ym94IGV2ZW50
cy4NClRoZXNlIGhhcyB0byBiZSBhbGwgcG9zaXRpb25lZCBpbmRpdmlkdWFsbHkgd2hpY2gg
Z2VuZXJhdGVzIGEgbG90IG9mIGNvZGUuDQoNCkkgbGF0ZWx5IHN0YXJ0ZWQgdG8gZXhwZXJp
bWVudCB3aXRoIGEgc2luZ2xlIHhUYWIgZm9yIGJ1dHRvbiBiYXJzIHdpdGggdGhlIGZvbGxv
d2luZyBjb2RlIC4uLg0KDQpYVEFCIDQwIDUwNSAxMDE1IDI1ICJkdW1teS9DbGVhciBTY3Jp
cHQvT3BlbiBTY3JpcHQvU2F2ZSBTY3JpcHQvTG9hZCB0ZW1wbGF0ZS9Ub29scy9IZWxwIiBi
dXR0b25zMQ0KICAgIHVzZSB0YWIgI3RoaXMgYnV0dG9uczENCiAgICBpZiAkJHRhYi50YWIg
PSAxOyBnb3N1YiAjdGhpcyBjbGVhclNjcmlwdDsgZW5kaWYNCiAgICBpZiAkJHRhYi50YWIg
PSAyOyBnb3N1YiAjdGhpcyBvcGVuU2NyaXB0OyBlbmRpZg0KICAgIHRhYiBnb3RvIDANCiAg
ICB0YWIgc2hvdyAwDQoNCldpdGggdGhpcywgYW55IGNsaWNrZWQgYnV0dG9uIHRyaWdnZXJz
ICQkdGFiLnRhYiBidXQgaXMgaW1tZWRpYXRlbHkgcmVsZWFzZWQgYWdhaW4gYW5kIHRoZSBk
dW1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encoding: 7bit





<head>

<style type="text/css">
<!--

/* start of attachment style */
       .ygrp-photo-title{
         clear: both;
         font-size: smaller;
         height: 15px;
         overflow: hidden;
         text-align: center;
         width: 75px;
       }
       div.ygrp-photo{
         background-position: center;
         background-repeat: no-repeat;
         background-color: white;
         border: 1px solid black;
         height: 62px;
         width: 62px;
       }

       div.photo-title 
         a,
         div.photo-title a:active,
         div.photo-title a:hover,
         div.photo-title a:visited {
           text-decoration: none; 
       }

       div.attach-table div.attach-row {
         clear: both;
       }

       div.attach-table div.attach-row div {
         float: left;
         /* margin: 2px;*/
       }

       p {
         clear: both;
         padding: 15px 0 3px 0;
	 overflow: hidden;
       }

       div.ygrp-file {
         width: 30px;
         valign: middle;
       }
       div.attach-table div.attach-row div div a {
         text-decoration: none;
       }

       div.attach-table div.attach-row div div span {
         font-weight: normal;
       }

       div.ygrp-file-title {
         font-weight: bold;
       }
 /* end of attachment style */
        -->
        </style>
        </head>
<html>
<head>
<style type="text/css">
<!--
#ygrp-mkp {
  border: 1px solid #d8d8d8;
  font-family: Arial;
  margin: 10px 0;
  padding: 0 10px;
}

#ygrp-mkp hr {
  border: 1px solid #d8d8d8;
}

#ygrp-mkp #hd {
  color: #628c2a;
  font-size: 85%;
  font-weight: 700;
  line-height: 122%;
  margin: 10px 0;
}

#ygrp-mkp #ads {
  margin-bottom: 10px;
}

#ygrp-mkp .ad {
  padding: 0 0;
}

#ygrp-mkp .ad p {
  margin: 0;
}

#ygrp-mkp .ad a {
  color: #0000ff;
  text-decoration: none;
}
-->
</style>
</head>
<body>



<!-- |**|begin egp html banner|**| -->

<br><br>

<!-- |**|end egp html banner|**| -->


Hi Dimitris,<br><br>I use often use button bars with only text create by a large numer xButton or xTextbox events.<br>These has to be all positioned individually which generates a lot of code.<br><br>I lately started to experiment with a single xTab for button bars with the following code ...<br><br>XTAB 40 505 1015 25 &quot;dummy/Clear Script/Open Script/Save Script/Load template/Tools/Help&quot; buttons1<br>&nbsp; &nbsp; use tab #this buttons1<br>&nbsp;&nbsp;&nbsp;  if $$tab.tab = 1; gosub #this clearScript; endif<br>&nbsp; &nbsp; if $$tab.tab = 2; gosub #this openScript; endif<br>&nbsp;&nbsp;&nbsp; tab goto 0<br>&nbsp;&nbsp;&nbsp; tab show 0<br><br>With this, any clicked button triggers $$tab.tab but is immediately released again and the dummy<br>button stays selected. Normally a tab is
  not triggered when it is already selected but with this all<br>tabs (buttons) except the dummy triggers over and over again every time it is pressed.<br><br>Now my suggestion is to add the posibility to the xTab event for a hidden tab if possible.<br>So lets say that the tab named &quot;dummy&quot; will not show up.<br><br>One of the benefits of using a xTab is also that it can be easily positioned as a whole bar of buttons<br>and resized with the resize attribute. When used with icons, I see it as much more versatile option<br>&nbsp;than the xToolbar because you can use as many as you want and it can be placed anywhere.<br>Even on other &quot;real&quot; tabs.<br><br>Thanks in advance (if it&#39;s possible),<br><br>Chris



<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>

      
  

    
    <div id="fromDMARC" style="clear:both; margin-top: 10px;">
         <hr style="height:2px ; border-width:0; color:#E3E3E3; background-color:#E3E3E3;">
         Posted by: [email protected]         <hr style="height:2px ; border-width:0; color:#E3E3E3; background-color:#E3E3E3;">
    </div>
<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

  <img src="http://geo.yahoo.com/serv?s=97476590/grpId=4299/grpspId=1705007207/msgId=5970/stime=1409386517" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->

  
<!-- |**|begin egp html banner|**| -->

<br>



   
     
 
        <!-- |**|begin egp html banner|**| -->
        <div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

        <span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/gui4cli/info;_ylc=X3oDMTJiaWE1NTUyBF9TAzk3MzU5NzE0BGdycElkAzQyOTkEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTQwOTM4NjUxNw--" style="text-decoration: none;">Visit Your Group</a></span>

     <ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
                                                    </ul>
  </div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
  <a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJhYWc3a3V2BF9TAzk3NDc2NTkwBGdycElkAzQyOTkEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxNDA5Mzg2NTE3" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="137" alt="Yahoo! Groups" style="border: 0;"/></a>
  <div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:[email protected]?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

  </div> <!-- ygrp-msg -->

   


  <br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>

</html>

--9nlWnTS9ocNmxdhsK3FKVLWiM6a5jwOaA8HvrLV--