![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I've been redoing the EditableTable.sbp to be more generic (i.e. reading much of the data needed from the table data itself rather than programming it with the table design)...
But (there's always a but!) - if I resize the columns too large (or load a wide table) then the horizontal scroll bar appears. If I use it then my edit-textbox disappears off of the right hand of the screen (offset is vs. left of table, not left of displayed table). Does anyone know of a way to read the offset of the columns from the left hand edge of the displayed table (or a way to stop resizing, or a way to locate the caret in X&Y coordinates on the form)? |
|
|||
|
Nearly...what you have described is what I've been doing.
Consider the following: I have a table control 500 pixels wide. I load a table with 10 columns, each 100 pixels wide. I scroll horizontally to column 9 & click in the cell to edit it. If I calculate the left offset of the cell (as 900) then the edit box ends up 400 pixels to the right of the cell, in the area that the cell would have been if my control were 1000 pixels wide. |
|
|||
|
OK, I present an updated version of the really rather good already EditableTable1.1.
Feed it any table you like, preferably a wide one, & then use the scroll bar to move to the right. Click a cell & see if you can spot the textbox (you could make the form wider if you can't see it at all). Also try activating the textbox & then moving the scroll bar. I've got a way to go to get this right... ![]() |
|
||||
|
Hi Linecutter
I had a look at your problem and I am afraid that there is no solution at that time for the positionning of the text box. The problem is that there is information missing: - the x value from the beginning of the table to the first part of the first displayed column, even the ColWidth value is of no help because the table displays also a partial first column. - the row number of the first displayed row. - or the Values of the integrated VScrollBar and HScrollBar of the table. As long as these values are not available you cannot position your TextBox onto a Cell. In trying to solve your problem I found a problem with the ColWidth values. I posted a Bug report: http://www.basic4ppc.com/forum/showt...=9746#post9746 Best regards Klaus Switzerland |
|
||||
|
Hi LineCutter,
After your post in the thread ColWidth problem in Tables Quote:
I am not really convinced on an editable Table like this, I prefer having a Panel with all the data for one record set available and editable, but this is just an opinion. Hope this will help you. Best regards. Klaus Switzerland |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows position | WZSun | Basic4ppc Wishlist | 12 | 06-08-2008 02:56 AM |
| Remove Column | derez | Bug Reports | 1 | 11-01-2007 05:16 PM |
| Position of form designer | pixelpoint | Basic4ppc Wishlist | 0 | 08-16-2007 12:51 PM |
| Tables | J12345T | Questions & Help Needed | 6 | 07-09-2007 09:04 PM |
| tables | Fotis Nakos | Questions & Help Needed | 3 | 04-29-2007 08:40 AM |