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?


MouseDown/Move/Up either in all Controls or not hiding from Form


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-23-2007, 08:16 AM
Knows the basics
 
Join Date: Aug 2007
Posts: 53
Default MouseDown/Move/Up either in all Controls or not hiding from Form

Hi,

simple example: After a user has selected a position in a TextBox the application might require to get a MouseUp event.

Unfortunately, as soon as you place a TextBox on a Form, any mouse events within the region of the TextBox are masked from the Form, you want get an event.

Two solutions:
easy(?): Just don't mask Mouse events from the form. (Actually, current behavior could be considered a bug).

complicated(!): Add these events to every control.

BTW: The simplified programming model of B4PPC suggests the former solution.

BTW2: It gets even more complicated with controls which are added by libraries (e.g., TreeView).

Jens

Last edited by Woinowski : 08-23-2007 at 08:20 AM.
Reply With Quote
  #2 (permalink)  
Old 10-21-2007, 10:17 PM
bidibulle's Avatar
Junior Member
 
Join Date: Oct 2007
Location: France
Posts: 13
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi,

I also need this feature for bitmap.

Pierre
Reply With Quote
  #3 (permalink)  
Old 10-22-2007, 09:31 AM
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

In the .NET Compact Framework only the Panel, PictureBox and Form controls receive Mouse events which is one reason why only the Panel and Form controls in B4PPC implement them.

You could try using dzt's dzEventsMagic library :-

dzEventsMagic

This might let you get the mouse messages for a B4PPC Image control (which is based on a .NET PictureBox) and maybe for other controls as well - but no guarantees as I don't know which window messages are sent to which control.

EDIT:- Note that this library needs .NET 2.0

Last edited by agraham : 10-22-2007 at 09:44 AM.
Reply With Quote
  #4 (permalink)  
Old 11-05-2007, 12:36 PM
Knows the basics
 
Join Date: Aug 2007
Posts: 53
Default

Thanks, that looks like it does the job :-)
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
Hiding SIP button Byak@ Questions & Help Needed 3 09-03-2008 02:10 PM
Form Forelayer on top of other controls ? klaus Questions & Help Needed 2 08-01-2008 03:32 PM
Table - MouseDown event and more Erel Code Samples & Tips 1 04-07-2008 06:55 PM
Removing controls from a form colin9876 Questions & Help Needed 3 11-17-2007 06:48 PM
Copy controls in another form in the designer magi6162 Questions & Help Needed 2 09-03-2007 04:51 PM


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


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