View Issue Details

IDProjectCategoryView StatusLast Update
0005873JEDI VCL00 JVCL Componentspublic2013-12-13 11:23
ReporterAceViceAssigned Toobones 
Status resolvedResolutionsuspended 
Product Version 
Target VersionFixed in Version 
Summary0005873: JvSwitch and Enable handling
DescriptionI have detected the following behaviour in JvSwitch when you set "Enable" to "False":

1- You can click (or use ToggleKey) over the component, so you can change its value (¿?)

2- With some Glyphs, when "CreateDisabledBitmap" does not make well his job, the component is not visible at all
Additional InformationThe first problem is due to methods "MouseDown" and "KeyDown", they should also check Enabled value, ie:

  if Enabled and (Button = mbLeft) then begin


  if Enabled and (FToggleKey = ShortCut(Key, Shift)) then begin

The second problem occurs with some kind of bitmaps (uploaded like attachment), it seems that "CreateDisabledBitmap" does not transform them well, so the final result is an invisible component; possible fixes:

  - Review "CreateDisabledBitmap"
  - Option to use standard Glyph (GlyphOn/GlyphOff) in all cases.


  if not Enabled and (FDisableBitmaps[FStateOn] <> nil) then

TagsNo tags attached.


2012-05-02 15:43


Glyps.rar (552 bytes)


2012-06-11 17:32

administrator   ~0019864

Please use the latest SVN version and provide the zipped sources of a sample application showing this.


2013-12-13 11:23

administrator   ~0020770

No news, suspending the issue

Issue History

Date Modified Username Field Change
2012-05-02 15:43 AceVice New Issue
2012-05-02 15:43 AceVice File Added: Glyps.rar
2012-06-11 17:32 obones Note Added: 0019864
2012-06-11 17:32 obones Status new => feedback
2013-12-13 11:23 obones Note Added: 0020770
2013-12-13 11:23 obones Status feedback => resolved
2013-12-13 11:23 obones Resolution open => suspended
2013-12-13 11:23 obones Assigned To => obones