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


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

Re: Close button in tabcontrol

From "Jamal Assaf" <someone@example.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Close button in tabcontrol
Date 2015-09-07 11:00 -0400
Organization Aioe.org NNTP Server
Message-ID <msk8qd$khl$1@speranza.aioe.org> (permalink)
References <qkpquahdbvi2fp1qie8quofmhl4dtoo2sm@4ax.com>

Show all headers | View raw


Dick,

Same like the previous responses, however, this does not make sense; a tab 
control is just a child control and a container to tab pages.  It's better 
to have a close button on the parent (owner) window (form).

If you intention is to hide it, you can use the hide/show the tab control 
while keeping the parent window open, then use self:oDCTabControl1:Hide() / 
self:oDCTabControl1:Show() methods.
Also you can use the self:oDCTabControl1:DeleteAllTabs() which will destroy 
all tab pages and reclaim resources, then hide() it.

Jamal


"D.J.W. van Kooten"  wrote in message 
news:qkpquahdbvi2fp1qie8quofmhl4dtoo2sm@4ax.com...

Did anyone try (and succeed) to implement a Close button in a
tabcontrol?

I've found that it isn't standard in Winforms or WPF either but there
are some code samples to implement it. I don't think I can 'port' this
to VO.

Dick 

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


Thread

Close button in tabcontrol D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-09-07 12:29 +0200
  Re: Close button in tabcontrol "Johan Nel" <johan.nel@xsinet.co.za> - 2015-09-07 12:32 +0200
    Re: Close button in tabcontrol D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-09-07 20:42 +0200
      Re: Close button in tabcontrol "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2015-09-07 23:26 +0200
        Re: Close button in tabcontrol D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-09-08 15:00 +0200
          Re: Close button in tabcontrol "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2015-09-10 12:06 +0200
            Re: Close button in tabcontrol D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-09-11 09:59 +0200
  Re: Close button in tabcontrol "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2015-09-07 15:48 +0200
  Re: Close button in tabcontrol "Jamal Assaf" <someone@example.com> - 2015-09-07 11:00 -0400

csiph-web