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.

Door and GetProperty use

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-16-2008, 02:13 PM
Junior Member
 
Join Date: Aug 2007
Location: France Nantes
Posts: 34
Question Door and GetProperty use

What is the rule of 'GetProperty' use ?
- New1 Component déclaration for each component used (or each kind of component ?)
- AddEvent associate declaration for each event used (or each kind of event ?)
but what else ?
See my sample which seems to accept the B4ppc internal properties
but not the .NET properties. (via GetProperty) and generates an error msg.
I forget something ! but what ?
Attached Files
File Type: sbp matos4.sbp (2.5 KB, 13 views)
Reply With Quote
  #2 (permalink)  
Old 07-16-2008, 03:33 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

"Control(Sender,Event).Data" doesn't store the object that raised the event.
It stores the event data which can be different for each event type.
For example you can call "Label1.Text = obj_bouton.GetProperty("X")" for the MouseMove event and not for MouseLeave event.
Reply With Quote
  #3 (permalink)  
Old 07-16-2008, 03:49 PM
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

Quote:
obj_bouton.Value = Control(Sender,Event).Data
This is not valid. You cannot get a button reference this way. The sender of the event is a Door Event object and its' Data property returns the eventargs object passed to that event which gives some data about the event. There is no way in B4ppc of finding the original control that caused the Door Event.

Perhaps Erel should add a Sender property to the Door Event that could contain a reference to the original control (I've got my own version of the Door library, I think I'll try adding it to that and have a play and see if it works)

EDIT :- Damn! You got in first again Erel while I was writing a reply.
Reply With Quote
  #4 (permalink)  
Old 07-16-2008, 06:26 PM
Junior Member
 
Join Date: Aug 2007
Location: France Nantes
Posts: 34
Exclamation Thanks for answers. All that is not "lighting", it's time to Warning.

Is there any place where we can find a < list or table-grid > which present the Door 'authorized' case and others ?
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(cf : "....for the MouseMove event and not for MouseLeave event....")
How do you want that end-user know it without documentation ? (those events exists in VB)

As other DLL, Door is presented as a tool which complete the standalone B4ppc ( that we inderstand).
We could suppose : it's a so FULL door with .NET properties for some components choosed.

Remember the start of this tool was the < easy to use > small BASIC cross platform .

So if it's the only way of B4ppc instructions-events update, it's not an easy way for BASIC end-user.
Learn the depth of .NET Cathedral is not a end-user objective. (And then VB or Delphi are certanly the best way)

The risk of this approach of the multiple DLL is an explosion of this tool, and maybe some users desertion.
I have made a lot of work with B4ppc more than year ago but i'm not sure to continue in the complexity way.

That i dont understand is : why new instructions / events are not included in a upgrade standalone B4ppc !
This product is so compact and could accept some Ko of updates ?

Waiting the super-integrated-B4ppc, a Full-Door is greatly wanted......

Have a nice day.
Reply With Quote
  #5 (permalink)  
Old 07-16-2008, 06:46 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

As stated in the Door documentation, this library (and only this one) requires some knowledge about the .Net Framework.

I think that almost all device relevant events are already supported in Basic4ppc.
The Door library can only fill "small gaps" for specific problems or missing features, it doesn't suppose to replace fully functional libraries.

All my examples of the Door library are complete functional subs that allow you to take the example as-is and use it in your own project.

I do understand the frustration of users who are not familiar with the .Net Framework (like most Basic4ppc users) and try to use the Door library unsuccessfully.

If you think that an important event or feature is missing from Basic4ppc please add it to the Wishlist sub-forum.
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
First attempts at the door dll.. Cableguy Questions (Windows Mobile) 1 08-04-2008 11:10 AM
Door Library Null Reference Exception sahoopes Bug Reports 1 07-15-2008 04:46 AM


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


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