Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.


dzEventsMagic


Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 10-26-2007, 02:04 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 636
Default

Quote:
Originally Posted by agraham View Post
I like to have a help file for each library accessible from within the desktop so here is one that I wrote for dzEventsMagic.



Two thumbs up!

specci48
Reply With Quote
  #22 (permalink)  
Old 12-21-2007, 06:18 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

One more sample.

How to get X,Y coordinates of mouse down (or tap) and mouse up events on a control (for example Image control), using dzEventsMagic and BitWise library.

See attached code file.
Attached Files
File Type: sbp test9.sbp (1.8 KB, 40 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr

Last edited by dzt : 12-21-2007 at 06:24 PM.
Reply With Quote
  #23 (permalink)  
Old 02-29-2008, 07:44 AM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 485
Awards Showcase
Beta Tester 
Total Awards: 1
Default

@DZT,

Thanks for pointing this great library out to me.
I've had a play and got some thing working but from this I have two questions....
1) Have you a list of parameters for each of the messages listed at the start of this thread? How are we to know what lparam and wparam contain?
2) Is it possible to have a simple click event? I've searched through the messages and there are several mouse related messages but none specific to a single click (unless I've missed it). Does this mean that I have to program by own by combining the mousedown and mouseup with a time delay?

The reason for question 2 is that I have a treeview control with a context menu already working but using mousedown on its own prevents the context menu from displaying as there is no way to know if the user has mearly tapped the screen or tapped and held.

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
  #24 (permalink)  
Old 06-06-2008, 05:50 PM
Knows the basics
 
Join Date: Mar 2008
Location: germany, Heidelberg
Posts: 88
Default dzEventsMagic and Sprite.dll

Hi,

i want to control sprites with the arrowkey on my device, using dzEventsMagic.dll and sprite.dll with no success. Form1 never receive
an event. Any ideas?
Reply With Quote
  #25 (permalink)  
Old 06-06-2008, 08:52 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,

@RandomCoder

I've just seen you questions.
1. No I don't. Google and you will find MSDN articles and others. Or ask if I can help
2. No unfortunately there is not a "single click event"

@mamuen
The Moving Label sample does not work in this case because the GameWindow is a "focusable" control and the Form loses the focus.
See the attached modified SpriteExample showing a workaround. It needs dzEventsMagic.dll, dzEventsMagicDesktop.dll and sprite.dll
Attached Files
File Type: zip SpriteExample.zip (75.1 KB, 16 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr

Last edited by dzt : 06-07-2008 at 12:11 PM.
Reply With Quote
  #26 (permalink)  
Old 08-13-2008, 01:32 PM
Byak@'s Avatar
Senior Member
 
Join Date: Jul 2008
Posts: 122
Send a message via ICQ to Byak@
Default

dzt thanks for ypu libs

i'm wright little sample.
moving image.
dzt help optimizing it please))

Code:
Sub Globals
xx=0
yy=0
End Sub

Sub App_Start
dzem.New1("Image1", false)
bit.New1
dzem.Hook(512)
Form1.Show
End Sub


Sub Form1_Close
dzem.UnHook(512)
End Sub

Sub dzem_MagicEvent
Dim LowWord, HighWord, X, Y
LowWord = bit.OR2(dzem.lParam, 4294901760)
X = bit.XOR2(LowWord, 4294901760)
HighWord = bit.OR2(dzem.lParam, 65535)
Y = bit.XOR2(HighWord, 65535)/2^16
If x>xx+5 Then
image1.Left=image1.Left+5
End If
form1.Refresh
If x<xx-5 Then
image1.Left=image1.Left-5
End If
form1.Refresh
If y>yy+5 Then
image1.Top=image1.Top+5
End If
form1.Refresh
If y<yy-5 Then
image1.Top=image1.Top-5
End If
form1.Refresh
yy=y
xx=x
End Sub
and i'm write scrolling textbox))
Attached Files
File Type: sbp moveimage.sbp (1.1 KB, 7 views)
File Type: sbp scrolltextbox.sbp (2.6 KB, 6 views)
Reply With Quote
  #27 (permalink)  
Old 08-27-2008, 08:26 AM
Senior Member
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 123
Send a message via MSN to tsteward
Default Finger scolling help needed

DZT I see examples here on scrolling text boxes. Can you please tell me is there a way to sroll the web browser built by agraham found here >>>Web browser for desktop and device

Thanks
Tony
__________________
PC: Dual core 3.4ghz 2gb ram
PPC: I-mate Jasjam
Reply With Quote
  #28 (permalink)  
Old 08-27-2008, 09:55 AM
Byak@'s Avatar
Senior Member
 
Join Date: Jul 2008
Posts: 122
Send a message via ICQ to Byak@
Default

tsteward it's not real :-(
__________________
~::FightersForFreedom::~
Reply With Quote
  #29 (permalink)  
Old 08-28-2008, 11:36 AM
Senior Member
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 123
Send a message via MSN to tsteward
Default

Quote:
Originally Posted by Byak@ View Post
tsteward it's not real :-(
Please explain?
__________________
PC: Dual core 3.4ghz 2gb ram
PPC: I-mate Jasjam
Reply With Quote
  #30 (permalink)  
Old 08-28-2008, 11:58 AM
Byak@'s Avatar
Senior Member
 
Join Date: Jul 2008
Posts: 122
Send a message via ICQ to Byak@
Default

webbrowser doesn't have programming scroll
__________________
~::FightersForFreedom::~
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


All times are GMT. The time now is 10:02 PM.


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