Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #9266
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: VO TabControl and method after leaving one of a tab |
| Date | 2016-04-14 05:54 +0200 |
| Message-ID | <dn8iiqF5vtfU1@mid.individual.net> (permalink) |
| References | <5f61ed48-5496-4b4e-9e5b-ed2978c9d86c@googlegroups.com> <hb2tgbp8g7m41iq57n9ut016nt9gcm71v7@4ax.com> <3c024f8e-50a8-4aeb-854e-a997f70e9130@googlegroups.com> |
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 --
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
VO TabControl and method after leaving one of a tab Krystian <softb@softb.pl> - 2016-04-13 03:35 -0700
Re: VO TabControl and method after leaving one of a tab D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2016-04-13 20:04 +0200
Re: VO TabControl and method after leaving one of a tab Krystian <softb@softb.pl> - 2016-04-13 15:02 -0700
Re: VO TabControl and method after leaving one of a tab "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-04-14 05:54 +0200
Re: VO TabControl and method after leaving one of a tab "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2016-04-17 15:43 +0200
csiph-web