Basic4ppc - Windows Mobile Development  

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

Official Updates Updates to official libraries could be found here.
This forum is only available to licensed users.


Door library (Beta) - Special library


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 03-26-2008, 07:50 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,135
Default

The CLR searches mscorlib by default.
You can just write:
Code:
ofrm.CreateNew2("System.IO.DirectoryInfo", args.Value)
(Assuming that System.IO.DirectoryInfo belongs to mscorlib.dll)
The full name is required for all other libraries:
Code:
oIcon.CreateNew2("System.Drawing.Icon" & oIcon.System_Drawing, args.Value)
Reply With Quote
  #12 (permalink)  
Old 03-27-2008, 10:14 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,690
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

@Erel. Have you thought of adding a way of invoking static methods and acessing static fields?
Reply With Quote
  #13 (permalink)  
Old 03-27-2008, 01:13 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,135
Default

Fields are not accessible at all.
Static methods are accessible:
Code:
Sub App_Start
    o.New1(false)
    o.CreateNew("System.Math")
    x = o.RunMethod3("Max",12,"System.Int32",54,"System.Int32")
    Msgbox(x)
End Sub
Reply With Quote
  #14 (permalink)  
Old 03-27-2008, 01:32 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,690
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Thanks Erel. I was so sure that couldn't work I didn't even try it I had assumed that CreateNew would make an instance of a class and so hide the static methods.
Reply With Quote
  #15 (permalink)  
Old 03-28-2008, 12:40 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,690
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

A couple of problems

a)
Playing with enums "obj1.SetProperty("FormBorderStyle", "4")" works in the IDE but the optimising compiler throws a "must implement IConvertible" exception.


b)
I can't find a use for SetProperty2 and SetProperty4. Within the IDE it always throws an "unable to cast System.Windows.Forms.MainMenu to System.String" exception and, due to B4PPC typing behaviour the optimising compiler compiles it to SetProperty(String, String) not SetProperty(String, Object). Is the intended use to pass objects returned from libraries. Similarly ObjectArray.SetObject?

EDIT :- I've knocked up a library to return types such as Size and Point and SetProperty2 seems to work with some of them them. Still having trouble with enums though!

EDIT :- I've cracked enums! I was assuming that I would need to set the numeric equivalent of an enum but actually it needs the String name of the member of the enum. Having trouble with Color now, I can get it but not set it.

Last edited by agraham : 03-28-2008 at 03:11 PM.
Reply With Quote
  #16 (permalink)  
Old 03-30-2008, 05:00 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,690
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

A not very good demo of the Door library. However it does contain solutions to the slight difficulties I had with Enum, Char (a bug to be fixed later) and Color. Thanks go to Erel for his patience in helping me out.

If anyone wants to play but doesn't know how to find the necessary information the .NET 2.0 Class Library docs are here http://msdn2.microsoft.com/en-gb/lib...35(VS.80).aspx

Mostly it will be System.Windows.Forms that you will need. Find, say, the TextBox Class page, scroll to the bottom and click TextBox Members to get a list of the Properties and Methods for a TextBox. Those applicable to the device have a little picture of a device on their left.
Attached Files
File Type: zip DoorDemo.ZIP (5.5 KB, 49 views)
Reply With Quote
  #17 (permalink)  
Old 03-30-2008, 10:15 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 141
Default

Thank you Erel and agraham, it certainly looks very impressive . I am certain we are many that are looking on and just hesitating before taking the plunge. The web-address with the information has certainly captured my interest!

all the best / Björn
Reply With Quote
  #18 (permalink)  
Old 04-02-2008, 06:54 PM
Knows the basics
 
Join Date: Dec 2007
Posts: 69
Awards Showcase
Beta Tester 
Total Awards: 1
Default DataGrid with Door.lib

Hello Erel and agraham,
I'm very interested in using the DataGrid. Is it possible to get some more usage hints with Door.dll ?

Best regards

berndgoedecke
Reply With Quote
  #19 (permalink)  
Old 04-03-2008, 05:39 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,135
Default

The Table control is actually a DataGrid control in the .Net world.
What exactly do you need?
Reply With Quote
  #20 (permalink)  
Old 04-04-2008, 10:51 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,135
Default

Door V0.9 is released.
Events are now supported. See the first post.
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
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 08:46 PM
Order a table with the library DOOR manu Beta Versions 0 09-04-2008 08:16 PM
Door Library Null Reference Exception sahoopes Bug Reports 1 07-15-2008 05:46 AM
Merging Outlook library and Phone library Erel Official Updates 2 07-14-2008 04:38 PM
New serial library - beta version Erel Announcements 13 08-02-2007 01:24 PM


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


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