delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/02/19:17:56

From: "Gillepileptic" <inbox AT not-very-clever DOT no-spam DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Hotspots and mouse.
Date: Sat, 2 May 1998 23:05:47 +0100
Message-ID: <894150254.19440.0.nnrp-04.c1edaebc@news.demon.co.uk>
NNTP-Posting-Host: not-very-clever.demon.co.uk
Lines: 19
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I hope someone can help me with Allegro:  I'm hoping to set up hotspots on a
static screen (no animation at this stage) Pretty basic stuff, just point
and click to call a function.
I've already got the bitmap routines sorted, and I'll figure out the mouse
stuff from the docs.
I'd just like to know what's the most flexible and productive way of
checking whether a mouse has clicked a 'hotspot'?  My program probably only
needs "...if(((x>100) && (x<120)) &&... " etc, but this seems pretty
hackish.
No offence to Shawn Hargreaves (top geezer by the way...Allegro is
unbelievable. ), but I don't want to use his GUI functions...I was an Amiga
man myself!


--
Gillepileptic



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019