Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Urs Eggmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: VO TabControl and method after leaving one of a tab Date: Sun, 17 Apr 2016 15:43:07 +0200 Lines: 61 Message-ID: References: <5f61ed48-5496-4b4e-9e5b-ed2978c9d86c@googlegroups.com> <3c024f8e-50a8-4aeb-854e-a997f70e9130@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: individual.net ZihKD4Q6x/+j4GRoN8AmrQxcei7JWbfpso9dj5o1Lr97aXbDzl Cancel-Lock: sha1:xCNoQOJs5iPEmJ4G27SH1zIdirw= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: csiph.com comp.lang.clipper.visual-objects:9267 Hello Krystian, Following Wolfgangs idea I introduced for each TabPage a Method Show() and a method Hide(). Changing a tab, first the appropriate Method Hide() and afterwards Show() of the new window is called. With this methods you can do quite a lot of things. Watch your mail, a sample is on the way. regards Urs "Krystian" schrieb im Newsbeitrag news:3c024f8e-50a8-4aeb-854e-a997f70e9130@googlegroups.com... W dniu środa, 13 kwietnia 2016 20:04:58 UTC+2 użytkownik D.J.W. van Kooten napisał: > Replying on message of Wed, 13 Apr 2016 03:35:32 -0700 (PDT) from > Krystian: > > > Hello Krystian > > >Do you know, which method is called just before leaving the tab and > >selecting another tab - it should be the method parallel to "expose" on > >the beginning. > >TabSelect, TabSelectionChanging, Deactivate does not react. > > > I don't if anything is available on leaving a tab, but > TabSelectionChanging on it's own should work. We use it like this for > highligting the now selected tab. I don't think it will help you doing > something with the previous tab, but if -for example- you want to > prevent people to click on a tab if some condition is true, you should > be able to use this. > > METHOD TabSelectionChanging(oControlNotifyEvent) CLASS MyTabWindow > //#s Highlight current tab > SUPER:TabSelectionChanging(oControlNotifyEvent) > > SendMessage(oControlNotifyEvent:Control:handle(),TCM_HIGHLIGHTITEM,DWORD(TabCtrl_GetCurFocus(oControlNotifyEvent:Control:handle())),0L) > RETURN NIL > > > Dick > > --- news://freenews.netfront.net/ - complaints: news at netfront.net --- Hi Dick, Thank you for answer, but - more is the pity, the program does not pass the control to this method (TabSelectionChanging)(infobox does not show a message). I have a tab control with several tabs; on one of the tab there is a month calendar, where user may plan working hours during the month; on another tab there are sums of working days and hours. When a user change a calendar and then switch to sums' tab, i would like to show the actual values and balance. I have also another ideas to solve the problem, but it seems to be too complicated and "circular". Maybe SendMessage tool may help, but i do not understand this mechanism. Thanks once again With best regards Krystian