Server IP : 103.118.17.23 / Your IP : 216.73.216.188 Web Server : Microsoft-IIS/10.0 System : Windows NT RESELLERPLESK22 10.0 build 20348 (Windows Server 2016) AMD64 User : IWAM_plesk(default) ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : E:/Inetpub/vhosts/mesa.org.in/httpdocs/assets/_core/php/examples/advanced_ajax/ |
Upload File : |
<?php require('../includes/header.inc.php'); ?> <?php $this->RenderBegin(); ?> <div id="instructions"> <h1>Specifying Which Controls to Move</h1> <p>Hopefully this example shows why not all <strong>QControl</strong> objects can be move handles.</p> <p>Below, we have rendered a <strong>QLabel</strong> and a <strong>QTextBox</strong>. We want the textbox to be moveable, but if we make the textbox a "move handle" to move itself, the user will no longer be able to click "into" the textbox to enter in data. Therefore, we specify the label to be the "move handle", and we add the label (itself) and the textbox as targets to be moved by the label.</p> <p>This is done by making two calls to the label's <strong>AddControlToMove</strong> method. The first call is made to add the label (itself), and the second call is made to add the textbox.</p> <p>Note how you will move both controls when you drag the label around, and also note how you can still click "into" the textbox to enter in data.</p> </div> <div id="demoZone"> <?php $this->pnlParent->Render(); ?> </div> <?php $this->RenderEnd(); ?> <?php require('../includes/footer.inc.php'); ?>