Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #2152 > unrolled thread
| Started by | "Bernhard Mayer" <Idonotexisthere@nowhere.com> |
|---|---|
| First post | 2011-10-05 09:46 +0200 |
| Last post | 2011-10-05 18:20 +0200 |
| Articles | 6 — 5 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
TabControl + TabSelectionChanging "Bernhard Mayer" <Idonotexisthere@nowhere.com> - 2011-10-05 09:46 +0200
Re: TabControl + TabSelectionChanging Camille Kater <katercamXXX@pt.lu> - 2011-10-05 10:59 +0200
Re: TabControl + TabSelectionChanging "Bernhard Mayer" <Idonotexisthere@nowhere.com> - 2011-10-05 13:34 +0200
Re: TabControl + TabSelectionChanging "Francesco F." <francescangeli.f@tiscali.it> - 2011-10-05 14:35 +0200
Re: TabControl + TabSelectionChanging "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-10-06 02:04 +1100
Re: TabControl + TabSelectionChanging "Jack Konings" <Gordon_remove_this_.Freeman@Live_dot.nl> - 2011-10-05 18:20 +0200
| From | "Bernhard Mayer" <Idonotexisthere@nowhere.com> |
|---|---|
| Date | 2011-10-05 09:46 +0200 |
| Subject | TabControl + TabSelectionChanging |
| Message-ID | <4e8c0b95$0$18695$91cee783@newsreader03.highway.telekom.at> |
Dear fellow VO'ers, is there a way to determine in Window:TabSelectionChanging() which tab is about to get the focus? The first tab page has a bBrowser; if the selected row does not meet certain requirements, the user may enter tab 2 and 5, but not 3 and 4 etc. Any ideas? TIA, Bernhard VO 2.8
[toc] | [next] | [standalone]
| From | Camille Kater <katercamXXX@pt.lu> |
|---|---|
| Date | 2011-10-05 10:59 +0200 |
| Message-ID | <1317805636_3529@vo.lu> |
| In reply to | #2152 |
In the help: The ControlNotifyEvent object that describes which tab control's selected tab is changing. and also: TabControl:SelectedTabPage Access Camille On 05/10/2011 09:46, Bernhard Mayer wrote: > Dear fellow VO'ers, > > is there a way to determine in Window:TabSelectionChanging() which tab > is about to get the focus? > > The first tab page has a bBrowser; if the selected row does not meet > certain requirements, the user may enter tab 2 and 5, but not 3 and 4 etc. > > Any ideas? > > TIA, > Bernhard > VO 2.8
[toc] | [prev] | [next] | [standalone]
| From | "Bernhard Mayer" <Idonotexisthere@nowhere.com> |
|---|---|
| Date | 2011-10-05 13:34 +0200 |
| Message-ID | <4e8c4111$0$1583$91cee783@newsreader04.highway.telekom.at> |
| In reply to | #2153 |
Hi Camille, unfortunately this does not help inWindow:TabSelectionChanging. - The ControlNotifyEvent does not contain any information about the tab which should get the focus, only about the tab page which is about to lose focus. - TabControl:SelectedTabPage still holds the current TabPage BR, Bernhard "Camille Kater" <katercamXXX@pt.lu> schrieb im Newsbeitrag news:1317805636_3529@vo.lu... > In the help: > The ControlNotifyEvent object that describes which tab control's selected > tab is changing. > > and also: > TabControl:SelectedTabPage Access > > Camille > > > On 05/10/2011 09:46, Bernhard Mayer wrote: >> Dear fellow VO'ers, >> >> is there a way to determine in Window:TabSelectionChanging() which tab >> is about to get the focus? >> >> The first tab page has a bBrowser; if the selected row does not meet >> certain requirements, the user may enter tab 2 and 5, but not 3 and 4 >> etc. >> >> Any ideas? >> >> TIA, >> Bernhard >> VO 2.8
[toc] | [prev] | [next] | [standalone]
| From | "Francesco F." <francescangeli.f@tiscali.it> |
|---|---|
| Date | 2011-10-05 14:35 +0200 |
| Message-ID | <j6hiv9$ia0$1@news.albasani.net> |
| In reply to | #2152 |
Bernhard, every time the user select a row, check for your requirement on that row, and you can enable/disable whatever PabPage you want with, for example, the useful xTabControl (SELF:oTPTab:DisabTab(2) etc.). HTH, Francesco Il 05/10/2011 09:46, Bernhard Mayer ha scritto: > Dear fellow VO'ers, > > is there a way to determine in Window:TabSelectionChanging() which tab > is about to get the focus? > > The first tab page has a bBrowser; if the selected row does not meet > certain requirements, the user may enter tab 2 and 5, but not 3 and 4 etc. > > Any ideas? > > TIA, > Bernhard > VO 2.8
[toc] | [prev] | [next] | [standalone]
| From | "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> |
|---|---|
| Date | 2011-10-06 02:04 +1100 |
| Message-ID | <hl_iq.3661$7r4.3360@viwinnwfe02.internal.bigpond.com> |
| In reply to | #2152 |
Bernhard
Here's what I did
METHOD PostInit() CLASS MyWindow
// Initial setting is the current tab when window is first displayed
SELF:sPrevTabPage := SELF:oDCTC_RECEIPT_:SelectedTab
ACCESS PreviousTabPage() AS SYMBOL PASCAL CLASS MyWindow
RETURN SELF:sPrevTabPage
METHOD TabSelect( oControlNotifyEvent ) CLASS MyWindow
//Put your changes here
SUPER:TabSelect(oControlNotifyEvent)
IF SELF:oDCTC_RECEIPT_:SelectedTab = #TC_RECEIPT_TENANTS
// Do something
ENDIF
SELF:oDCTC_RECEIPT_:CurrentPage:Notify( NOTIFYRECORDCHANGE )
RETURN NIL
METHOD TabSelectionChanging(oControlNotifyEvent) CLASS MyWindow
//Put your changes here
// This routine controlled switching backwards and forwards between 4-8
tab pages
// clearing/setting relationships, putting servers back on the correct
records for each page, etc...
SELF:sPrevTabPage := SELF:oDCTC_RECEIPT_:SelectedTab
// ----- Store our Place Holders
DO CASE
CASE SELF:sPrevTabPage = #TC_RECEIPT_TENANTS
SELF:TenRecNo := SELF:oTenants:RecNo
SELF:PropRecNo := SELF:oProperti:RecNo
SELF:oTenants:Notify( NOTIFYINTENTTOMOVE )
CASE SELF:sPrevTabPage = #TC_RECEIPT_PROPERTIES
SELF:PropRecNo := SELF:oProperti:RecNo
OTHERWISE
SELF:ClearRecNo()
ENDCASE
SUPER:TabSelectionChanging(oControlNotifyEvent)
RETURN NIL
HTH
Steve
[toc] | [prev] | [next] | [standalone]
| From | "Jack Konings" <Gordon_remove_this_.Freeman@Live_dot.nl> |
|---|---|
| Date | 2011-10-05 18:20 +0200 |
| Message-ID | <dfd42$4e8c83cd$d4cc90c0$17906@cache4.tilbu1.nb.home.nl> |
| In reply to | #2152 |
Hi Bernhard,
Can't you use TabSelect like:
METHOD TabSelect(oControlNotifyEvent) CLASS DLG_CalLTProject
SUPER:TabSelect(oControlNotifyEvent)
//Put your changes here
IF oControlNotifyEvent:control:selectedtab=#Tab4
........
Greetings,
Jack
"Bernhard Mayer" wrote in message
news:4e8c0b95$0$18695$91cee783@newsreader03.highway.telekom.at...
Dear fellow VO'ers,
is there a way to determine in Window:TabSelectionChanging() which tab is
about to get the focus?
The first tab page has a bBrowser; if the selected row does not meet certain
requirements, the user may enter tab 2 and 5, but not 3 and 4 etc.
Any ideas?
TIA,
Bernhard
VO 2.8
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web