Hi all,
I'm testing out pfc tab objects, and I have a question about the resize service. In the constructor event of the tab object, I enable the resize service and register all of the resizable objects:
integer li_rc
itab_This = this
of_setresize(TRUE)
inv_resize.of_Register(tabpage_1, "ScaleToRight&Bottom")
inv_resize.of_Register(tabpage_2, "ScaleToRight&Bottom")
inv_resize.of_Register(tabpage_3, "ScaleToRight&Bottom")
inv_resize.of_Register(tabpage_print, "ScaleToRight&Bottom")
inv_resize.of_Register(tabpage_1.dw_1, "ScaleToRight&Bottom")
inv_resize.of_Register(tabpage_2.dw_2, "ScaleToRight&Bottom")
inv_resize.of_Register(tabpage_3.dw_3, "ScaleToRight&Bottom")
inv_resize.of_Register(tabpage_print.dw_print, "ScaleToRight&Bottom")
I also enable the resize service in the constructor event of each datawindow:
this.of_setResize(TRUE)
When I put this object into a window, I resize the tab object and register it in the window's open event:
// Resize objects...
tab_1.Width = this.WorkspaceWidth()
tab_1.Height = this.WorkspaceHeight() - 10
// Window Resize Behavior
of_SetResize(true)
inv_resize.of_Register(tab_1, "ScaleToRight&Bottom")
A couple of questions... do I need to register the tabpages ?
Also, I'm getting a null object reference when I run the code. From running the debugger, the error seems to be coming from the dw_1 constructor.
Any ideas, suggestions are appreciated.
~~~Tracy