Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Urs Eggmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Close button in tabcontrol Date: Thu, 10 Sep 2015 12:06:43 +0200 Lines: 45 Message-ID: References: <9smtua1992o0n1jql2pnc1dk26fboopjtc@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Trace: individual.net 6rj4Yh+r9haspdVMZdA3AQj3vRz9laeuN7+nd2YzdynX3C1NT9 Cancel-Lock: sha1:+QXL4CIV7x+SoW917KazegVcZjw= 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 X-EsetId: 37303A2992966F67637C62 X-EsetScannerBuild: 25691 Xref: csiph.com comp.lang.clipper.visual-objects:8413 Hi Dick, I'm working on the following idea: Place a Icon (with a cross like x) on the tab, place a BoundingBox around, evaluate in the Dispatch the message WM_LBUTTONDOWN inside this BoundingBox for deleting the tab. It worked with the first tab, but I'm still fighting with coordinates (g...) If I have success, I let you know. Regards Urs "D.J.W. van Kooten" schrieb im Newsbeitrag news:9smtua1992o0n1jql2pnc1dk26fboopjtc@4ax.com... > On Mon, 7 Sep 2015 23:26:39 +0200, "Urs Eggmann" > wrote: > > Hello Urs, > >>Do you want to place a close-icon onto the Tab, not the TabControl? >>That is a difference. > > My preference would be on the tab, like in Firefox or IE. That's where > users expect it. >> >>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. > > Hmmm.. this is not so bad, as an alternative. Unless someone else > comes has solved this completely, it is a good second choice. Thanks > for that! > > > > Dick