KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

New Mouse Events

 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Apr 05, 2005 5:18 pm    Post subject: New Mouse Events Reply with quote

Having no end-of-trouble getting (somewhat) advanced TreeView ContextMenus and other things going - specifically in terms of the MouseUp and MouseDown events ... the TreeView seems to be "eating" some of the events - looking at the issue now, but was thinking ...

Any comments on adding the following new events to KF, would make things much easier I think, and no need to check for MouseButton property etc. Thinking about new events like:

$TreeView.OnLeftButtonUp =
$TreeView.OnLeftButtonDown =
$TreeView.OnRightButtonUp =
$TreeView.OnRightButtonDown =

-Shawn
Back to top
View user's profile Send private message
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Tue Apr 05, 2005 5:44 pm    Post subject: Reply with quote

I like the idea, but remember you will be asked to add them to other objects. Of couser I can see people asking for the middle button and possibly doubleclick for each button. Ease for us might be a nusance to you.
_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Apr 05, 2005 6:19 pm    Post subject: Reply with quote

It will get added to other objects by default - most event handling isn't too object aware ... a control will either support it, or it wont.

Been doing more research, seems like other "libraries" support something like this, the more common names are "extentions" to the existing MouseXXX names, so probably go with:

$TreeView.OnLeftMouseUp =
$TreeView.OnLeftMouseDown =

...

Think it will solve more problems than it creates.

-Shawn
Back to top
View user's profile Send private message
Rod
KiXforms Webmaster
KiXforms Webmaster


Joined: 22 Feb 2003
Posts: 202
Location: United Kingdom

PostPosted: Tue Apr 05, 2005 9:31 pm    Post subject: Reply with quote

Gets my vote Huge Grin

Rod.

_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website
benny69
KiXforms Advocate
KiXforms Advocate


Joined: 30 Oct 2003
Posts: 567
Location: Lincoln, Ne

PostPosted: Wed Apr 06, 2005 1:26 pm    Post subject: Reply with quote

If all your looking for is to do something with the context menu do you realy need the down and up?

Wouldn't it be easier to just look for:

$TreeView.OnLeftClick =
$TreeView.OnRightClick =

_________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)
Back to top
View user's profile Send private message Send e-mail
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Thu Apr 07, 2005 2:04 am    Post subject: Reply with quote

well, the events are there anyways...
so why not use them.

not sure about the names...
onMouseLeftDown...

it should say quickly: "it's a mouse event, ya basta"

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Thu Apr 07, 2005 6:58 pm    Post subject: Reply with quote

Sorry to go off-topic, but what's basta? Embarassed
Back to top
View user's profile Send private message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Thu Apr 07, 2005 7:14 pm    Post subject: Reply with quote

Can-O-Worms around these parts. Smile

I'll leave that to Shawn or Lonk...

_________________
-Ben
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Thu Apr 07, 2005 7:21 pm    Post subject: Reply with quote

oh its a long story - a kixtart term of endearment really. I will let lonk explain since he coined it (in a conversation with yours truely iirc) ;0)
Back to top
View user's profile Send private message
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Thu Apr 07, 2005 7:29 pm    Post subject: Reply with quote

can't really remember all the twists and like said, it's a long story.
for many years the meanings have multiplied...
well, basta could be said to be the explanation of unexplainable or vice versa...
the goddesh of wicked thoughts that hunt the kix coders to the very bed where they moan without a rest... Razz

dunno, really.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Thu Apr 07, 2005 7:40 pm    Post subject: Reply with quote

haha Laughing thanks for the info, guys. Wink i thought it was short for 'a son without a father' definition. Embarassed
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group