Ok, well I finally sussed out what was going wrong.
I was actually attempting to refer to the controls and their properties on
the tabs correctly
eg. mytabcontrol.mytab.dw_test.redraw()
BUT powerbuilder didn't think the tab control existed until I regenerated
the window.
I had to basically
1)create the tab control and tab,
2)close the window,
3)regenerate it,
4) then move the controls onto the tabs.
Otherwise it just kept coning up with an "Unknown object" error. Grr!
Thanks for your help,
Regards, Vivian
> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: 22 October 1999 19:43
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: PFCSIG referencing controls on a tab control
>
> Greeting from Washington DC,
>
> I have done this successfully and...
>
> As I recall; 1) the tab-object is a control instantiated on the window
> (actually as a PB object in the window's Control array), 2) the
> tab-object
> has a tab page array (one array element for each tab-page), 3) each
> tab-page will have its own control array.
>
> So, from a window event( or function), you can reference an DW control
> object on the first individual tab-page like this:
> <<name of your tab-object instance>>.tabpage_1.dw_1
>
<snip>
> Lester LaForce
> Consultant, Comsys
> Washington DC area
> U.S. Army, Personnel Information Systems Directorate
>
> -----Original Message-----
> From: Crompton, Vivian (London) [mailto:[EMAIL PROTECTED]]
>
<snip>
>
> Hi all,
> Well this is not really a PFC question but perhaps you have seena PFC
> solution:
> I have a window with two large text fields and a datawindow object on it,
> with lots of code written into them.
> I wanted to change the window so that it has the controls put on seperate
> tabs of a tab control.
[Crompton, Vivian (London)] <snip>
>
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]