]> Creatis software - bbtk.git/commit
Fix a big bug. Consider the script :
authorguigues <guigues>
Thu, 6 Mar 2008 09:23:43 +0000 (09:23 +0000)
committerguigues <guigues>
Thu, 6 Mar 2008 09:23:43 +0000 (09:23 +0000)
commit35efff5ca9f485da0da66535dc3ce8fff49df520
tree02c6d934a690a06b4e9378158df0410b4089e1c2
parent3798a7b85b9513d1144ec926c6c17b1013a23d79
Fix a big bug. Consider the script :
 new slider s
 new LayoutLine l
 connect s.Widget l.Widget1
 exec s
Before bug fix, created the slider in bbi Console !!!
(note that 'exec l' instead of 'exec s' worked fine)

Cause :
When a WxBlackBox is 'included' into another (output 'Widget' connected) it does not create its own window (frame) but is inserted into the frame of the box to which it is connected.
The wxWindows are all created with parent the wx top frame (bbGetWxParent) which is bbi's Console and are reparented after to be placed in the right frame (own or container)).
Hence when 'l' was executed it was created in bbi's console (normal) but as 's' was not executed it did not created its frame and did not reparented l's window.

Fix : executing a WxBlackBox whose output 'Widget' is connected must produce the execution of the box to which it is connected (remark that it works recursively). Hence overloaded bbExecute in WxBlackBox to do the job.
kernel/src/bbtkWxBlackBox.cxx
kernel/src/bbtkWxBlackBox.h