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

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

First attempts at the door dll..

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-03-2008, 10:23 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 First attempts at the door dll..

Hi Erel...

Started palying with the door lib, i figured it was about time to do so...

I sucessfully added an event to one control...
But how can we add sveveral events and controls?

Imagine a few panels to wich i wish to add the click event...

How to do it with seperate click events?
How tod it with only one common event?
__________________
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
  #2 (permalink)  
Old 08-04-2008, 11:10 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

The Door library treats events fairly simplistically. You need an Event object for each control/event pair. So three Panels and two events on each will need six Event objects. You will need six event Subs called, to avoid confusion, something like Panel1Click_NewEvent where Panel1Click is the name of the Eevent object. All these could of course be a single line call to a common handler passing the Panel nameas a parameter.

It would be possible to make the Door library more sophisticated and make an Event object share events and objects but the object of the Door library was to fill small gaps, not to plug big holes - for that you should use a library.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 11:23 AM
Order a table with the library DOOR manu Beta Versions 0 09-04-2008 07:16 PM
Door and GetProperty use dan kabestan Questions (Windows Mobile) 4 07-16-2008 06:46 PM
Door Library Null Reference Exception sahoopes Bug Reports 1 07-15-2008 04:46 AM


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


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