Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P 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
  #31 (permalink)  
Old 12-29-2008, 03:42 PM
Knows the basics
 
Join Date: Dec 2008
Posts: 77
Awards Showcase
Beta Tester 
Total Awards: 1
Default KeyBoard hook proc

Can WH_KEYBOARD hookstruct be called with dzmagic. I'm trying to create a hook to lock all keys on the device. Not just on the form or a control, but Hook the keys from WM itself.

I've tried hardware lib, it works but not with Long keypress, and F3 F4 F6 F7 (End End Volume)
Door is too tough to deal with. I don't think it would work either


Thanks for the great lib
Reply With Quote
  #32 (permalink)  
Old 02-05-2009, 07:27 AM
Basic4ppc Expert
 
Join Date: Jul 2008
Location: Borchen, Germany
Posts: 571
Send a message via Skype™ to corwin42
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Is there a possibility to get the Control the dzEventsMagic Object is assigned to?

Following Example:

Code:
Sub App_Start
   AddObject(
"emLStart""dzEventsMagic")
   AddObject(
"emLEnde""dzEventsMagic")
   AddObject(
"emLDauer""dzEventsMagic")

   emLStart.New1(
"lStartTime"False)
   emLEnde.New1(
"lEndeTime"False)
   emLDauer.New1(
"lDauer"False)

   emLStart.Hook(
514)
   emLEnde.Hook(
514)
   emLDauer.Hook(
514)

   AddEvent(
"emLStart",MagicEvent,"emTimeSelect_Magic")
   AddEvent(
"emLEnde",MagicEvent,"emTimeSelect_Magic")
   AddEvent(
"emLDauer",MagicEvent,"emTimeSelect_Magic")

   fEdit.Show
End Sub

Sub emTimeSelect_Magic
   
Msgbox(Sender)
End Sub
lStartTime, lEndeTime and lDauer are labels and I want to get an event when the user clicks on them.

Is there a simple way to get the Control name of the clicked label in the emTimeSelect_Magic Sub?

Thanks,
Markus
Reply With Quote
  #33 (permalink)  
Old 02-07-2009, 05:48 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

To use a click event with a label, try the linklabel dll...
No need to use dztmagics for that, even the door lib is usable..
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
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 Off
Pingbacks are Off
Refbacks are On


All times are GMT. The time now is 07:27 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0