Re: Tab Control , Forms 4.5 , tabswitching

From: Alex Heney <heneya_at_entcf3.agw.co.bt.uk>
Date: 1997/03/11
Message-ID: <3325296F.4962_at_entcf3.agw.co.bt.uk>#1/1


Jens U. Veigel wrote:
>

 <snip>
> I use this tab switching procedure, which works but my problem is,
> that I would like to switch between the tabs without using GO_ITEM.
> Just using Show canvas does not always work, I guess I have a refresh
> or overlapp problem, that's why I use Go_item to begin with.
>
> I would like to make all the
> fields in on the subcanvas display items, now I have to leave one item
> on each canvas a text item, so the go_item does work. Do you have any
> ideas how to be able to switch between canvases without using Go_item,
> or to make Go_item work with display items.
> I don't want to user in these canvases to enter or change anything,
> it's just for querrying and displaying. Any Suggestions?? I would
> appreciate it very much.
> Here is how I do it today :
>
<snip>

I'm afraid we have a similar problem. I have found it impossible to consistently show a specified canvas without using go_item. The problem is caused by the fact that the Tab control itself has to be navigable, as the custom-item-event will not fire without navigating to the tab control. This means taht if you do not navigate away from the tab control, then the canvas on which it is held will be displayed due to FORMS automatically displaying the canvas of the current item. If you have an item outside of the tab which is always visible, it would be possible to go_item to that item, then display the appropriate canvas. [Quoted] Otherwise, you will just have to have an enterable item on the canvas you want to see. It is possible to create this item with a size of 1 pixel X 1 pixel, not updateable, visual attribute the same as the canvas. The user will not then see the cursor, nor be able to type anything when you navigate to this item. (Note that navigable must still be set on, just Updateable and insert_allowed set off).

Hope this helps.

(BTW, we are using version 5 of VSVBX. I know some people have had problems with tis, but we have had none.)

-- 
The above posting represents the personal opinions of the author and
is not to be taken as official (or unofficial) policy or opinions of 
his employer.

Alex Heney, Living in the Global Village.
Received on Tue Mar 11 1997 - 00:00:00 CET

Original text of this message