Re: setVisible on tab pages
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> May 08, 2005
- 441 views
On Sat, 07 May 2005 08:26:09 -0700, ZNorQ <guest at RapidEuphoria.com> wrote: >First you really gotta explain the - > > }}} <eucode>if self or event or sequence(params) then end if</eucode> {{{ > >What would this accomplish? Suppress warnings. As CoJaBo pointed out you can use without warnings instead, if you prefer, however I worry that might hide others. >Anyway, I don't think your code would be sufficient, as we gotta consider >two criterias here - either is the "general" tab in focus - or not. If it >is, I could use Derek's code to test this when the right conditions >for the field to be visible is met. But if the "general" tab isn't in focus, >I'd >have to wait till it is.. OK, I didn't realise that was part of the problem. I must confess I did not study Derek's code, I suspect that was a more general purpose solution (did it have isVisible(getParent(id)) or similar in it?). If you want to modify my example or post something similar which exhibits the problem you speak of, I'd be more than happy to investigate. > The control I'm using to verify the conditions of >the field is a set of radio buttons (as childs of a group - which again is >a child of the form itself..) ONE of those radio buttons shows the field, >the rest hides it. So, if I press the radio button that hides it, but the >tab page isn't active - how would I go about showing it when the page is >activated (got focus) at a later stage? I'm not absolutely certain, but I'd guess it is perfectly legal to fixup visibility during the WM_PAINT/w32HPaint event. Regards, Pete