Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #9267

Re: VO TabControl and method after leaving one of a tab

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Urs Eggmann" <Urs.Eggmann@shinternet.ch>
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 <dnhia2Fe5egU1@mid.individual.net> (permalink)
References <5f61ed48-5496-4b4e-9e5b-ed2978c9d86c@googlegroups.com> <hb2tgbp8g7m41iq57n9ut016nt9gcm71v7@4ax.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

Show key headers only | View raw


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" <softb@softb.pl> 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 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


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