How to invisible the listwidget? | developer.brewmp.com How to invisible the listwidget? | developer.brewmp.com

Developer

How to invisible the listwidget?

I use this way
WidgetVis wv;
wv.piw = piListWidget;
wv.bVisible = FALSE;
IWIDGET_SetProperty(piContainerWidget, PROP_VISIBLE, (uint32)&wv);

and the return is 0,but nothing happened, i still can see the lisewidget...

fenrirx@163.com wrote:I use this way
WidgetVis wv;
wv.piw = piListWidget;
wv.bVisible = FALSE;
IWIDGET_SetProperty(piContainerWidget, PROP_VISIBLE, (uint32)&wv);
and the return is 0,but nothing happened, i still can see the lisewidget...
I guess you need to set this property to the child of the list widget..try to put child widget pointer in wv.piw and see if it works..

fenrirx@163.com wrote:I use this way
WidgetVis wv;
wv.piw = piListWidget;
wv.bVisible = FALSE;
IWIDGET_SetProperty(piContainerWidget, PROP_VISIBLE, (uint32)&wv);
and the return is 0,but nothing happened, i still can see the lisewidget...
I guess you need to set this property to the child of the list widget..try to put child widget pointer in wv.piw and see if it works..

Oceans eleven wrote:I guess you need to set this property to the child of the list widget..try to put child widget pointer in wv.piw and see if it works..
you mean the listitem?

Oceans eleven wrote:I guess you need to set this property to the child of the list widget..try to put child widget pointer in wv.piw and see if it works..
you mean the listitem?

fenrirx@163.com wrote:you mean the listitem?yes. im not sure if it will work or not :confused: .. give it a try and see..

fenrirx@163.com wrote:you mean the listitem?yes. im not sure if it will work or not :confused: .. give it a try and see..

Hi ;)
To set List Widget Visible False try this
1. if you are using View Port in List Widget then set View Port Visibility False for this.
2. if you does not add Your View Port into List Widget then first get PROP_VIEWMODEL using IWIDGET_GetProperty() from List Widget and then set its Visibility FALSE.
:) :)

Hi ;)
To set List Widget Visible False try this
1. if you are using View Port in List Widget then set View Port Visibility False for this.
2. if you does not add Your View Port into List Widget then first get PROP_VIEWMODEL using IWIDGET_GetProperty() from List Widget and then set its Visibility FALSE.
:) :)

vishal, thanks for sharing the same :)

vishal, thanks for sharing the same :)

vishal bhandari wrote:Hi ;)
To set List Widget Visible False try this
1. if you are using View Port in List Widget then set View Port Visibility False for this.
2. if you does not add Your View Port into List Widget then first get PROP_VIEWMODEL using IWIDGET_GetProperty() from List Widget and then set its Visibility FALSE.
:) :)
How to set the viewmodel's Visibility FALSE?

vishal bhandari wrote:Hi ;)
To set List Widget Visible False try this
1. if you are using View Port in List Widget then set View Port Visibility False for this.
2. if you does not add Your View Port into List Widget then first get PROP_VIEWMODEL using IWIDGET_GetProperty() from List Widget and then set its Visibility FALSE.
:) :)
How to set the viewmodel's Visibility FALSE?

And this way can also work:
wp.bVisible = FALSE;
IXYCONTAINER_SetPos((IXYContainer*)pIContainer,(IWidget*)listWdiget, WIDGET_ZBOTTOMMOST, &wp);
but this way still have some problem: you must using WIDGET_ZBOTTOMMOST,if you using WIDGET_ZNORMAL,the old listwidget still in screen ,not be erased,you will got two listwidget.......

And this way can also work:
wp.bVisible = FALSE;
IXYCONTAINER_SetPos((IXYContainer*)pIContainer,(IWidget*)listWdiget, WIDGET_ZBOTTOMMOST, &wp);
but this way still have some problem: you must using WIDGET_ZBOTTOMMOST,if you using WIDGET_ZNORMAL,the old listwidget still in screen ,not be erased,you will got two listwidget.......

Is piContainerWidget the parent of piListWidget?
Have you tried just using IWIDGET_SetVisible()?
-Erik

Is piContainerWidget the parent of piListWidget?
Have you tried just using IWIDGET_SetVisible()?
-Erik

ebrowne wrote:Is piContainerWidget the parent of piListWidget?
Have you tried just using IWIDGET_SetVisible()?
-Erik
piContainerWidget is the parent of piListWidget..
IWIDGET_SetVisible() don't work

ebrowne wrote:Is piContainerWidget the parent of piListWidget?
Have you tried just using IWIDGET_SetVisible()?
-Erik
piContainerWidget is the parent of piListWidget..
IWIDGET_SetVisible() don't work