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


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

Re: Close button in tabcontrol

From "Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Close button in tabcontrol
Date 2015-09-07 23:26 +0200
Message-ID <d56donF1tq4U1@mid.individual.net> (permalink)
References <qkpquahdbvi2fp1qie8quofmhl4dtoo2sm@4ax.com> <msjp15$sl8$1@dont-email.me> <hcmrua52sfahe1kjb4026o1ps9gla39omq@4ax.com>

Show all headers | View raw


Hi Dick,
Do you want to place a close-icon onto the Tab, not the TabControl?
That is a difference.

Just something similar. Take the ODT-TabControl from Karl Heinz Rauscher's 
homepage. In the Dispatch Method of the Class New TabControl add a CASE 
oEvent == WM_RBUTTONDOWN and insert here the code for closing the window and 
deleting the tab.

CASE oEvent:message == WM_RBUTTONDOWN
SELF:DeleteTab(SELF:SelectedTab)

So, you can choose the TabPage with left click and close/delete with right 
click. Information of user with tool tips.

Dividing the Tab into two different sensitive areas would be more tricky. 
Probably you can make the icons in this sample sensitive to a mouse 
click.....

Regards
Urs

"D.J.W. van Kooten" <vankooten@removethis.ic2.com> schrieb im Newsbeitrag 
news:hcmrua52sfahe1kjb4026o1ps9gla39omq@4ax.com...
> On Mon, 7 Sep 2015 12:32:42 +0200, "Johan Nel"
> <johan.nel@xsinet.co.za> wrote:
>
> Hello Johan,
>>
>>What should the close button do?  Close the TabPage or close the Form 
>>Window
>>it displays on?
>
> The underlying code isn't the problem. The problem is: how can we get
> a close button on the tab control - IF we can. We would prefer it to
> do like the tabs on FireFox or IE.
>
> It then closes the window displayed in the tab and then removes the
> tab. We use tabs to display e-mails; every e-mail opened from the
> bBrowser shows in a seperate tab. If the user now wants to close one
> of these e-mails, he must click a Close button on the main window.
> This works but isn't logical in the eye of the user.
>
>
> Dick 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next 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