Parent objects and HIDE option

This forum is for eXpress++ general support.
Post Reply
Message
Author
gradosic
Posts: 45
Joined: Tue Dec 07, 2010 2:11 pm
Location: Croatia - Europe
Contact:

Parent objects and HIDE option

#1 Post by gradosic »

Hi guys,

Does anyone knows how to hide static object and his parent objects? We use staticbox and inside this object more buttons and static objects that are parent to first one, but when we hide main static object, parent objects are still visible ??? We create eveything with express.

for example:
----------------------------------
@ 0,0 DCSTATIC TYPE XBPSTATIC_TYPE_RAISEDBOX SIZE 1000,500 PIXEL OBJECT OBJ_TEST HIDE {|| Hided } // main object

@ 10,10 DCPUSHBUTTON CAPTION "Test1" SIZE 100,50 PIXEL PARENT OBJ_TEST // buttons parent to main object
@ 60,10 DCPUSHBUTTON CAPTION "Test2" SIZE 100,50 PIXEL PARENT OBJ_TEST // buttons parent to main object

@ 150,100 DCSTATIC TYPE XBPSTATIC_TYPE_RAISEDBOX SIZE 300,100 PIXEL OBJECT OBJ_TEST_2 PARENT OBJ_TEST // OBJECT 2 parent to main object

@ 10,10 DCPUSHBUTTON CAPTION "Test3" SIZE 100,50 PIXEL PARENT OBJ_TEST_2 // buttons parent to object 2
----------------------------------

and When you put hided=.T., program hide only main object, not parent ones...



Thanks!
Goran Radosic

User avatar
Tom
Posts: 1171
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Parent objects and HIDE option

#2 Post by Tom »

Which version of eXpress++?
Did you try "DC_GetRefresh(GetList)" after toggling the lHide-value? DC_WhenHideEval() (the function which tests which objects are to hide/disable and so on) is not automatically called with every action-codeblock. You may also try "DC_GetRefresh(<oObject>)" instead of "DC_GetRefresh(GetList"). This may pretend the dialog from flickering, since "DC_GetRefresh(GetList)" rereads all values for all elements of the dialog.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Post Reply