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


Groups > comp.lang.clipper.visual-objects > #9261 > unrolled thread

VO TabControl and method after leaving one of a tab

Started byKrystian <softb@softb.pl>
First post2016-04-13 03:35 -0700
Last post2016-04-17 15:43 +0200
Articles 5 — 4 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  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

#9261 — VO TabControl and method after leaving one of a tab

FromKrystian <softb@softb.pl>
Date2016-04-13 03:35 -0700
SubjectVO TabControl and method after leaving one of a tab
Message-ID<5f61ed48-5496-4b4e-9e5b-ed2978c9d86c@googlegroups.com>
Hi to All,

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.

Thanks in advance
Krystian

[toc] | [next] | [standalone]


#9262

FromD.J.W. van Kooten <vankooten@removethis.ic2.com>
Date2016-04-13 20:04 +0200
Message-ID<hb2tgbp8g7m41iq57n9ut016nt9gcm71v7@4ax.com>
In reply to#9261
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@netfront.net ---

[toc] | [prev] | [next] | [standalone]


#9264

FromKrystian <softb@softb.pl>
Date2016-04-13 15:02 -0700
Message-ID<3c024f8e-50a8-4aeb-854e-a997f70e9130@googlegroups.com>
In reply to#9262
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

[toc] | [prev] | [next] | [standalone]


#9266

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2016-04-14 05:54 +0200
Message-ID<dn8iiqF5vtfU1@mid.individual.net>
In reply to#9264
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



-- 

[toc] | [prev] | [next] | [standalone]


#9267

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2016-04-17 15:43 +0200
Message-ID<dnhia2Fe5egU1@mid.individual.net>
In reply to#9264
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 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web