[GB.GTK]
* BUG: Correctly update background and foreground of multi-container controls. git-svn-id: svn://localhost/gambas/trunk@6047 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
41d97ec87e
commit
492e4ea979
@ -417,10 +417,17 @@ BEGIN_PROPERTY(UserControl_Container)
|
||||
GB.Error("Container must be a child control");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
gColor bg = THIS_UC->container->ob.widget->background();
|
||||
gColor fg = THIS_UC->container->ob.widget->foreground();
|
||||
|
||||
THIS_UC->container = (CCONTAINER *)GetObject(((gContainer *)ct->ob.widget)->proxyContainer());
|
||||
WIDGET->setProxyContainer(WIDGET_CONT->proxyContainer());
|
||||
WIDGET->setProxy(THIS_UC->container->ob.widget);
|
||||
|
||||
THIS_UC->container->ob.widget->setBackground(bg);
|
||||
THIS_UC->container->ob.widget->setForeground(fg);
|
||||
|
||||
WIDGET_CONT->performArrange();
|
||||
|
||||
END_PROPERTY
|
||||
|
Loading…
x
Reference in New Issue
Block a user