SEAL Forum Index SEAL
The SEAL Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

quick question

 
Post new topic   Reply to topic    SEAL Forum Index -> Programming Related
View previous topic :: View next topic  
Author Message
Finkelsmak Kvasthuvud



Joined: 21 Apr 2002
Posts: 85
Location: Sweden

PostPosted: Sun Jul 07, 2002 12:05 pm    Post subject: quick question Reply with quote

is it possible to detect if, for instance, a stattext object is clicked? if so, how?
Back to top
View user's profile Send private message Visit poster's website
lukas139



Joined: 29 Mar 2002
Posts: 293
Location: Slovakia

PostPosted: Sun Jul 07, 2002 12:23 pm    Post subject: Reply with quote

Yes thru the events function. Im not sure how althought now.
_________________
Lukas Lipka
My Home
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Finkelsmak Kvasthuvud



Joined: 21 Apr 2002
Posts: 85
Location: Sweden

PostPosted: Mon Jul 08, 2002 9:40 am    Post subject: Reply with quote

well, thanks lukas. that didn't help me much though... someone MUST know how to do this simple thing... please!
Back to top
View user's profile Send private message Visit poster's website
lukas139



Joined: 29 Mar 2002
Posts: 293
Location: Slovakia

PostPosted: Mon Jul 08, 2002 1:15 pm    Post subject: Reply with quote

You must understand im very busy
_________________
Lukas Lipka
My Home
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Finkelsmak Kvasthuvud



Joined: 21 Apr 2002
Posts: 85
Location: Sweden

PostPosted: Mon Jul 08, 2002 1:24 pm    Post subject: Reply with quote

ofcourse. there are other people... i guess i'll have to find out myself... just hoped somebody already knew so i didn't have to.

thanks lukas for replying at all.
Back to top
View user's profile Send private message Visit poster's website
lukas139



Joined: 29 Mar 2002
Posts: 293
Location: Slovakia

PostPosted: Mon Jul 08, 2002 1:30 pm    Post subject: Reply with quote

Ok here:

Code:

    if ( event->type & EV_MOUSE ) {

       if ( OBJECT(mouse)->state & MO_SF_MOUSELDOWN ) {

           /* ...left button is pressed... */

       };

    };

its no quite complete or

Or look in cubeos.host.sk/documentation/mouse.htm
_________________
Lukas Lipka
My Home
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Finkelsmak Kvasthuvud



Joined: 21 Apr 2002
Posts: 85
Location: Sweden

PostPosted: Mon Jul 08, 2002 1:58 pm    Post subject: Reply with quote

thanks again. i just figured it out myself too actually. i feel so stupid. i've done this a thousand times before. the part i forgot was that I should set a "translate_event"-function. like this:

OBJECT (o)->translate_event = &translate_event;

and then handle the events from there, like you described.

god i'm stupid!!!

i'm working on a clone of the board-game Risk. It's comming along nicely. you can expect a release within the week. hopefully.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SEAL Forum Index -> Programming Related All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group