Bug #62127 Mforms CheckBoxTitlePanel throws exception when trying to instantiante Panel
Submitted: 9 Aug 2011 14:56 Modified: 10 Mar 2014 14:00
Reporter: Karsten Wutzke Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.2.30, 5.2.34 OS:Windows
Assigned to: CPU Architecture:Any
Tags: mforms CheckBoxTitlePanel

[9 Aug 2011 14:56] Karsten Wutzke
Description:
The internal Mforms library doesn't allow the creation of panels with type CheckBoxTitlePanel. An error is generated by the MySQL WB libs when using Python code like

pn = Panel(CheckBoxTitlePanel)

from within a plugin:

"Internal error: unhandled mforms panel type.

We are sorry for the inconvenience but an unexpected exception has been raised by one of the MySQL Workbench modules. In order to fix this issue we would kindly ask you to file a bug report. You can do that by pressing the [Report Bug] button below. 

Please make sure to include a detailed description of your actions that lead to this problem.

Thanks a lot for taking the time to help us improve MySQL Workbench!

The MySQL Workbench Team"

How to repeat:
From within an existing plugin, just call:

from mforms import *
pn = Panel(CheckBoxTitlePanel)

Suggested fix:
Implement the CheckBoxTitlePanel type!
[9 Aug 2011 15:26] Valeriy Kravchuk
What exact version of Workbench, 5.2.x, do you use? Recent is 5.2.34.2 in case of Windows.
[9 Aug 2011 15:45] Karsten Wutzke
I use version 5.2.30
[9 Aug 2011 15:55] Karsten Wutzke
I just tried with version 5.2.34 and the same error occurrs. It's actually even worse because the error message is very meaningless (no details given).
[10 Aug 2011 16:45] Alfredo Kojima
Hi Karsten

That panel type is currently not supported in Windows. We can add that, but you should consider using a different solution meanwhile. Perhaps a checkbox outside the panel or a collapse/expander button.
[12 Aug 2011 12:45] Karsten Wutzke
Is there any specific reason this panel type isn't supported in Windows? Of course the "only" workaround is to externalize the checkbox, but it still somehow doesn't look attractive.
[3 Mar 2012 2:37] Karsten Wutzke
Please implement this, my GUI is becoming more and more complex. I really need this. Severity increased.
[2 Apr 2012 12:55] Karsten Wutzke
Helloo? Is there anybody managing the bugs here? My GUI is starting to get really ugly because of this missing implementation.
[10 Oct 2013 12:17] Mike Lischke
Posted by developer:
 
The checkbox panel style is not yet implemented, but the enumeration is available for quite some time already. So we need to finish that part to solve this problem.
[10 Mar 2014 14:00] Mike Lischke
Since we never needed this style since it's introduction we decided to remove the incomplete checkbox style for panels. It's not a standard control anyway and would complicate the implementation of mforms panel unnecessarily. We may later consider readding this or an improved version or use a different approach.