PAGELIST (OpenInsight 32-bit Specific)
At 11 MAY 2003 02:24:43AM Jonathan Bird wrote:
Is it possible to have a control appearing on SOME pages in a window, but not others? The help for PAGELIST tells us that setting its value to -1 will display a control on ALL pages.
I'd like to have a control appear on pages 2,3 and 4, but NOT on page 1. Can this be done, and if so, any suggestions on how to do it?
Ta,
J
At 11 MAY 2003 09:42AM Don Miller - C3 Inc. wrote:
Jonathan ..
I think just the opposite is possible .. something on Page 1 only and not the rest, but not the reverse. You may be able to do it programatically inside OIPI, at least I do something similar in a few reports. You have to be careful in controlling where the text is being placed on the page since page overflow occurs automatically otherwise.
Don M.
At 11 MAY 2003 10:59AM S Botes wrote:
There are some examples of doing something similiar in the OI source code for wizards and also the examples application's explanation of how to use tabs…. I think the program is createtab.
At 11 MAY 2003 11:02AM Richard Hunt wrote:
Jonathan,
All I know is to set the PAGELIST to -1, that will put the control on all pages. Then use the window's VSCROLL event to check for the page and set the ENABLED and VISIBLE properties for that control accordingly.
At 11 MAY 2003 07:06PM Donald Bakke wrote:
Jonathan,
As already mentioned, there are no documented (or undocumented AFAIK) ways of customizing PAGELIST the way you want.
We generally handle this in two different ways:
1. Create duplicate controls (obviously with unique control names) to simulate this.
2. Move the controls dynamically as your page changes. We have a wizard that reuses the same controls for 19th possible pages (with slight changes to the TEXT and BITMAP properties. We would have run out of controls if we attempt to copy every control onto each page. We then decided to move the controls from page to page as needed using the SIZE property.
At 12 MAY 2003 08:58AM Don Miller - C3 Inc. wrote:
Jonathan ..
Sorry for the bum steer. I thought you were referring to Reports and not forms. It is possible to do what you want, but you may go to a great deal of work accomplishing it. I think Don B's suggestions as to moving controls around on various pages will save a good deal of design work, at the expense of a fair amount of programming work, though.
Don M.
At 12 MAY 2003 07:57PM Jonathan Bird wrote:
Thanks all.
what I did was put the controls on all pages, then when the page was selected where the prompts ought not to be, I made them invisible. Not TOO much programming, and seems to work OK,
Ta, J