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
  #21 (permalink)  
Old 04-04-2008, 05:20 PM
Knows the basics
 
Join Date: Dec 2007
Posts: 54
Default How to initialize the DataGrid with Door?

Hello Erol,
What I need at first is an answer to the question in the title.
I try to show the table only with a horizontal ScrollBar, similar to the example from agrahm:
Horizontal Scroll Bars

AddTable ("TabGrid", "TG", 0, 0, FW, FH-(12*Hs))
TOb.New1(True)
TOb.FromControl("TG")
TOb.SetProperty("ScrollBars","Horizontal")
TabGrid.show

The line, TOb.SetProperty("ScrollBars","Horizontal") results in an error like
Objectreference is not fixed in an objectintance (translated from german).
I think, this error is in context with the last line of your object dicription:
System_NS, System_Data, System_Drawing, System_Windows_Forms, System_Windows_Forms_Datagrid - Returns the fully qualified named (do you mean names?(d-key next s-key)) of these assemblies. System_Windows_Forms_Datagrid will only be set if at least one of the objects was initialized with New1(true).
If so, it would be nice to know how to use.

In the future I want to use features to reorder columns, to get the row height and to autosize columns, rows or cells, if this is possible.

Best regards

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

As you can see in the MSDN documentation, the DataGrid doesn't include a ScrollBar property.
Reply With Quote
  #23 (permalink)  
Old 04-06-2008, 03:21 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,219
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Adding additional events to controls is now supported. Each type of event provides access to an EventArgs which contains information about the event. I've taken Erel's first post and used it as the basis for a sort of help file and included an indication of the information in each type of EventArgs. To find out more detail I would suggest Googling for the name of the EventArgs you are interested in.
Attached Files
File Type: zip DoorHelp.zip (3.1 KB, 49 views)
Reply With Quote
  #24 (permalink)  
Old 04-06-2008, 03:39 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,651
Default

Thanks agraham
Reply With Quote
  #25 (permalink)  
Old 04-08-2008, 12:32 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,219
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

As an example of the power of this library (and of .NET) I have created this example application which can "look inside" controls (this is called reflection in .NET-speak) and show the properties, events and methods they support.

Enter the type of a control (it is case-sensitive so "TextBox" not "Textbox") in the textbox and press Enter. Select the type of members to display and click on items in the list box for information about it. Events will show the type of EventHandler they use which should be one of those listed by Erel in the first post if they are to be used by this library.

Some B4PPC control names are not the same as their .NET names. A B4PPC Image is PictureBox, Menu is MenuItem, NumUpDown is NumericUpDown, RadioBtn is RadioButton, Table is DataGrid.

Calendar and ImageButton are custom controls based on the Control type.
Attached Files
File Type: sbp ControlInfo.sbp (4.6 KB, 31 views)

Last edited by agraham : 04-08-2008 at 02:07 PM.
Reply With Quote
  #26 (permalink)  
Old 04-10-2008, 04:20 PM
Knows the basics
 
Join Date: Dec 2007
Posts: 54
Default Asking for DataGrid with ControlInfo on Device

Hello Agraham,
if I use your program with DataGrid on the Device the error Message: "Please enter a valid .NET control name" apears. Framework2.0 is installed and programs , using Tablecontrol are working. How could it be ? Is there an Framwork SP missing?

Best Regards

berndgoedecke
Reply With Quote
  #27 (permalink)  
Old 04-10-2008, 05:15 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,219
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I now realise the significance of the System_Windows_Forms_Datagrid property of the Door library. On the desktop DataGrid lives in the System_Windows_Forms assembly, on the device it lives in the System_Windows_Forms_Datagrid assembly.

A crudely modified version of ControlInfo is attached which will show you DataGrid on the device. More elegantly it now shows all the signatures for overloaded mathods.
Attached Files
File Type: sbp ControlInfo.sbp (5.0 KB, 22 views)
Reply With Quote
  #28 (permalink)  
Old 04-10-2008, 08:00 PM
Knows the basics
 
Join Date: May 2007
Posts: 86
Default

Hi. Could this library be possibl ported down to the .NET framework 1.1 and .NET CF 1.0? Thanks.
Reply With Quote
  #29 (permalink)  
Old 04-11-2008, 06:11 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,651
Default

It uses several methods which are not available in .Net CF 1.0.
Reply With Quote
  #30 (permalink)  
Old 04-11-2008, 10:44 AM
Junior Member
 
Join Date: May 2007
Posts: 26
Default

it colud be possible with this library edit (read and write) text inside de cell directly?

Thanks in advance
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
Merging Outlook library and Phone library Erel Official Updates 2 07-14-2008 03:38 PM
load textfile with special characters (äöü) bob Questions & Help Needed 2 11-19-2007 01:24 PM
New serial library - beta version Erel Announcements 13 08-02-2007 12:24 PM
Special Folders on PC BPak Questions & Help Needed 2 06-01-2007 09:53 PM


All times are GMT. The time now is 05:55 PM.


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