Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: VO TabControl and method after leaving one of a tab Date: Thu, 14 Apr 2016 05:54:00 +0200 Lines: 73 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; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net jtkVSRKLPd8LJG85AxSz3Aqu/HPwi+5hd78Ue5CmsD9aMRklI= Cancel-Lock: sha1:EsVAd/EM9UwALC949N4m5UeHEr0= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:9266 Hi Krystian, why you don't use the Show() method of the window contained in the tab? That's what I'm using: method Show( kShowState ) class KundenSubEdit3 super:Show( kShowState ) self:FillData() return nil Wolfgang Krystian wrote: > 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,D > > WORD(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 --