Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Questions on Table component


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-23-2008, 07:33 PM
Junior Member
 
Join Date: Aug 2007
Posts: 27
Question Questions on Table component

hello,
1 - What is the good way to "directly" edit in a Table cell (with keyboard).
(i'm actually obliged to catch keys on a textbox and copy to cell)
2 - why i cant change focus from Table to a textbox ? see next :
'---------------- with table1 and textbox1...
sub Table1_SelectionChanged (ColName, Row)
textbox1.focus
end sub
'----------------------------------------------------------
the focus doesnt go to textbox !
Thanks for help
Reply With Quote
  #2 (permalink)  
Old 06-23-2008, 07:59 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

1. I've attached one possible way.
2. The focus returns to the Table control at the end of SelectionChanged event.
The solution is to use a timer which will set the focus:
Code:
Sub Globals
    'Declare the global variables here.

End Sub

Sub App_Start
    Form1.Show
    AddTimer("Timer1")
    Timer1.Interval = 5 'ms
End Sub
Sub Timer1_Tick
    Timer1.Enabled = false
    TextBox1.Focus
End Sub

Sub Table1_SelectionChanged (ColName, Row)
    Timer1.Enabled = True
End Sub
Attached Files
File Type: sbp Solver.sbp (8.6 KB, 9 views)
Reply With Quote
  #3 (permalink)  
Old 06-24-2008, 12:24 PM
Junior Member
 
Join Date: Aug 2007
Posts: 27
Exclamation table cell access

1 - I'm sorry but i had seen this on your forum and as i said, i already use that kind of undirect solution.
I would find a DIRECT solution to catch keys in the Table cell. (without use an external textbox)
We only dispose of ONE event for this component and its really short !
Is there any work around ?

2 - Your interesting Timer solution seems to run only IF the clic-on-cell doesnt select the cell content (blue).

3 - Returning to my old idea : put a textbox exactly in front of selected cell,
the problem is to know the selected cell position in Form, with big Table and scroll use.
My first solution was to hidde the Table , catch mouse values on Form and finaly put 'visible' the Table :
it's not working well. (tried also with your timer-focus).
Is there any better way to find those coordinates ?

4 - Before your new ideas my alone solution is to put a virtual Table made with a same number of textbox
as number of items(row) of arraylists(col).A good idea ?
Reply With Quote
  #4 (permalink)  
Old 06-24-2008, 02:30 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

You can use this code: Table - MouseDown event and more to put a textbox over the current cell.
Reply With Quote
  #5 (permalink)  
Old 06-25-2008, 11:45 AM
Junior Member
 
Join Date: Aug 2007
Posts: 27
Exclamation Edit in cell Table, learning door.dll

A power library ! which call somme tutorials !
Using your EnhancedTable, i propose this first edit in a cell .
(attached file).
But i dont know how manage the scroll, for kill the edit-box
when move or better : follow the move...
(Havent found a 'o.GetProperty("Type")' == 'scrollbar' to use )
What is the good way to made an 'addScrollChangeEvent(TableName)' ?
Actualy have not enougth information/method on this super Dll.
Is there any other sample-document which describes it ?
Attached Files
File Type: sbp EnhancedTable_CellEdit.sbp (2.5 KB, 5 views)
Reply With Quote
  #6 (permalink)  
Old 06-25-2008, 06:03 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

This is the documentation of the Door library: Door
The Door library is a special library as it exposes the functionality of the .Net Framework (or .Net Compact Framework).
Unlike all other features of Basic4ppc it requires some knowledge of the .Net.
Reply With Quote
  #7 (permalink)  
Old 06-26-2008, 09:40 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

See this thread for an Editable table: Editable Table - Device & Desktop
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
Timer component 2220 Questions & Help Needed 4 09-27-2008 08:41 PM
I'm want sample network component thaidelphi Questions & Help Needed 1 08-18-2008 03:27 PM
Small questions on Table component and Help window dan kabestan Questions & Help Needed 5 04-12-2008 06:49 AM
Error loading SQL Component conniemalan Questions & Help Needed 1 07-27-2007 09:29 AM
Questions: Table overheads & Addtable()? LineCutter Questions & Help Needed 3 06-02-2007 03:10 PM


All times are GMT. The time now is 08:26 AM.


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