QCheckBox: Tooltip for BlockElement mode...

thread: 3 messages  |  last: about 5 years ago  |  started: friday, october 27, 2006, 1:51 am pdt


#1  |  ByronH (Tzaneen, Limpopo) South Africa
Friday, October 27, 2006, 1:51 AM PDT

Hi Mike,

I noticed that when using a QCheckBox with the Text property omitted, the control defaults to a block element. When in this mode, the ToolTip property is not included in the element. I don't know if this was done on purpose, but would it be possible to include it with the next release?

I have done the following to my QCheckBox.class.php:

<?php
// Code snippet from GetControlHtml()
// (line: 41)

// ... (line: 118)
$this->blnIsBlockElement false;
$strToReturn sprintf('<input type="checkbox" id="%s" name="%s" %s%s%s%s%s%s />',
        
$this->strControlId,
    
$this->strControlId,
    
$strDisabled,
    
$strChecked,
    
$strActions,
    
$strAccessKey,
    
$strTabIndex,
    
$strToolTip);

?>
.bc
#2  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Friday, October 27, 2006, 9:42 AM PDT

Actually... when it's omitted, the control defaults to a NON block element (note that the property is being set to “false”).

(btw, Block Element on/off on all the controls was added solely to help with XHTML compliance)

Regardless, yes - Tool Tip is missing - this was an accident.

I've added it back in, and you should see it patched in the next release. (0.3.7)

Thanks for the post

#3  |  ByronH (Tzaneen, Limpopo) South Africa
Friday, October 27, 2006, 1:57 PM PDT

Thanx Mike. I don't know where I got the impression that it was in Block Element mode... I blame lack of proper sleep, hehe :)



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.