PDA

View Full Version : a silly question about tabs organization



dilaima
06-30-2004, 01:13 PM
say if i ahve 3 tabs, each of these tabs should include buttons , some of these buttons are the same (commmon functions), if i put it in the same ctlpage ex.:

ctlpage(1,c1,c17,c18);

ctlpage(2,c17,c18);

ctlpage(3,c6,c11,c17, c18);

i will c c17 and c18 showed in tab 3 only and disappeared in tab1 and tab2, what is the prob.?is it a refresh or redraw?
any help plz.

Blypht
07-15-2004, 10:51 PM
Not a silly question at all.

Depending on how the LW internals are set up, it's possible that it simply can't handle a control being in more than one place at a time (don't know for sure).

However, there are a couple of work-arounds in your situation.

1) If the control is on all of your tab pages, just don't put it on any of the pages (keep it at the same level in the component tree as the tabs themselves) and it will always be on top.

2) Put a duplicate control on each page and just have all the controls refer to the same action_udf.

Hope this helps.