Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Basic4ppc Wishlist
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Basic4ppc Wishlist Missing any feature?


TreeView Click Event


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2008, 12:31 PM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 485
Awards Showcase
Beta Tester 
Total Awards: 1
Default TreeView Click Event

Please can we have a treeview click event?
I've managed to get around my context menu problems by removing the AfterSelect event and placing all the code within the context menu click event.
But this means that I must always use the context menu to initiate actions. A seperate click event for the treeview would overcome this problem.

Thanks,
RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.

"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 01:44 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,704
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Unfortunately the Treeview control in the Compact Framework does not support a click event, nor does it support mouse events - just two of "A LOT of differences" remarked on by Specci48.
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 02:31 PM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 485
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Is there anyway of utilising the Form MouseUp event?
I did try this but the treeveiw blocked the event from happening - I know this is going to be a silly question BUT is it possible to somehow bring the Form to the front whilst still showing the tree view? Then I would be able to use the MouseUp event.

Regards,
RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.

"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 02:58 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,704
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Sorry no. I can't think of a way round this. You might be able to get somehwere at a really low level using the dzEventsMagic library to hook some of the windows messages. Also, on the desktop only, I could extend my ControlEvents library to capture the click event but this wouldn't work on the device.
Reply With Quote
  #5 (permalink)  
Old 02-28-2008, 03:32 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi,

It is easy to add mouse events on TreeView or any other control using dzEventsMagic dzEventsMagic

See post #22 sample (just replace Image control with TreeView control)
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #6 (permalink)  
Old 02-28-2008, 04:23 PM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 485
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by dzt View Post
Hi,

It is easy to add mouse events on TreeView or any other control using dzEventsMagic dzEventsMagic

See post #22 sample (just replace Image control with TreeView control)
GIVE THIS MAN A NEW AWARD!!!
This is great news, thanks very, very much DZT

Regards,
RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.

"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
event doubleclick and click on the cell (table object)... micro Questions & Help Needed 2 08-19-2008 06:50 PM
Right Click ?? pegamaster Questions & Help Needed 2 07-07-2008 07:11 PM
Unwanted Click Event Zenerdiode Questions & Help Needed 6 05-06-2008 06:25 AM
Click event during a for loop pmu5757 Questions & Help Needed 7 04-12-2008 04:44 PM
TreeView event magi6162 Questions & Help Needed 3 08-29-2007 11:29 AM


All times are GMT. The time now is 10:56 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0