Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - A scrollable multi-column table
Page 1 of 1

PostPosted: Sat Apr 29, 2006 10:30 am
by johncraw
I am trying to create a multi-column table that I can scroll. However the problem seems to be getting more complicated.
I tried to use a scroll bar with a list, and although I was able to control the view with the scroll bar, I had to:
- Make sure the line fit within the field width, otherwise the text would wrap.
- I could not get a single scroll bar to control more than one field. So I could not create a multi field view.

I then tried to use a list. This controlled the width problem, but I could not tie the scroll bar to the control. Also on the scrollbar onmove and ondone handlers the prev and value events contain the same values. The other problem is that if I have a window that can contain 5 lines, and I have 6 items, when I click the down arrow on the scrollbar instead of the scrollbar going right to the bottom it just moves one position. This means more controls.

If I can get it solved for a single column, then I can extend it to as many as needed.

If anyone has a solution for this I would greatly appreciate it.

Thanks in advance
John Crawford

PostPosted: Mon May 01, 2006 8:58 pm
by mlambrigger
You can change your point of view:

Using a draw function for a list. It is not quite complicated and you can have multiple columns and bitmap too. After drawing you have the standard list control.

Hope that will help.

Marc Lambrigger

PostPosted: Tue May 02, 2006 10:34 am
by johncraw
Marc:
Thanks. Controlling the view using draw functions does make part of the problem go away. That is the scrollbar is builtin, and can control the entire window.
However it makes the view of each column more difficult. Since the list control handles truncation of the text, I don't have to worry about it. If I build the entire display using draw, then I must truncate, if necessary, each column. I have built a truncation routine, but even on one column of the required data the refresh time looks slow, and if I am doing it on multiple columns I am afraid the time would be prohibitive if I am scrolling often. I will look at your suggestion. It might be useable.
John Crawford

PostPosted: Tue May 02, 2006 10:37 am
by johncraw
Marc:
Thanks. Controlling the view using draw functions does make part of the problem go away. That is the scrollbar is builtin, and can control the entire window.
However it makes the view of each column more difficult. Since the list control handles truncation of the text, I don't have to worry about it. If I build the entire display using draw, then I must truncate, if necessary, each column. I have built a truncation routine, but even on one column of the required data the refresh time looks slow, and if I am doing it on multiple columns I am afraid the time would be prohibitive if I am scrolling often. I will look at your suggestion. It might be useable.
John Crawford

PostPosted: Sun May 07, 2006 11:43 pm
by dewey
You don't need to write your own truncation routine. Use Draw.textTrunc()