From mint-bounce@lists.fishpool.fi Sun Oct 2 15:57:49 2005 X-Original-To: fnaumann@mail.boerde.de Delivered-To: fnaumann@mail.boerde.de Date: Sun, 2 Oct 2005 15:55:19 +0200 (CEST) Message-ID: <31963619.1128261319495.JavaMail.adm-moff@moffice2.nsc.no> From: Jo Even Skarstein To: Subject: [MiNT] SV: SV: some gem question In-Reply-To: <433FC5D8.20703@hysteria.sk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_20648_16903896.1128261319491" X-Priority: 3 (Normal) X-Mailer: Mobile Office v1.0 (Telenor Business Solutions) References: <433E5857.80605@hysteria.sk> <6889143.1128200756184.JavaMail.adm-moff@moffice3.nsc.no> <433FC5D8.20703@hysteria.sk> X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-To: mint-bounce@lists.fishpool.fi X-original-sender: joska@online.no Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: X-Virus-Scanned: by amavisd-new at relay.boerde.de X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=7.0 tests=BAYES_00 X-Spam-Level: ------=_Part_20648_16903896.1128261319491 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit > From: Miro Kropacek [mikro@hysteria.sk] > Sent: 2005-10-02 13:34:48 CEST > > I'm not sure if I understand you correctly - do you mean something like > this? Rather something like this: x_graf_slidebox() { EVENT e; while mousebutton is not released { e = evnt_multi(); if mouse is moved (use evnt_multi to watch a rectangle that's just one pixel wide in the direction the slider moves) move slider; if any other event eventhandler(e); (the eventhandler you normally call from the main evnt_multi-loop) } } You then call x_graf_slidebox() whenever the mousebutton is clicked (but not released ofcourse) on a slider-object. I haven't implemented a slider this way, but I did this to implement a multitasking-friendly version of graf_watchbox(), and it works very well. Jo Even ------=_Part_20648_16903896.1128261319491--