Re: How do I stop a table field from scrolling right?

2008-07-09 Thread Mikey
What a freaking outstanding idea.  The ability to tweak the IDE is just so
sweet.

I'm adding this to my list of "things I need to put together into a
RevIDETweaker project"
-- 
EB White  - "Be obscure clearly."
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How do I stop a table field from scrolling right?

2008-07-09 Thread Ken Ray
> A fountain of knowledge are you.  I was afraid of that.

The problem is due to the field's 'margins' property, which default to '8'.
When Rev goes to draw an "editing" field on top of the table field when you
click in the 4th column, it checks to see if the right side of the editing
field goes beyond the right edge of the table field, *minus* the margin
setting.

You could, of course, set the margins to be less than 8, but then that
screws up the look of your table and the way Rev draws the editing field.

Luckily, though, you can change the way the Rev IDE handles this (and by
extension your standalone) by making some minor changes in the 'revTable'
frontscript:

1) Make sure that "Revolution UI Elements in Lists" is checked under the
View menu.

2) Open the Message Box and click the "frontScripts" button (the 6th button
from the left, right after the mailbox icon).

3) In the list below, it should show:   `button "revTable"`, double-click on
it to open its script.

4) In the script it displays, locate the "revCalculateCellRect" handler.

5) Make the script change below (watch word wraps!):

Locate the line that says:

  if trightrect > (the cREVTable["rightfieldloc"] of pObject - the
cREVTable["scrollbarwidth"] of pObject - tfudge)

Change it to:

  if trightrect > (the cREVTable["rightfieldloc"] of pObject - the
cREVTable["scrollbarwidth"] of pObject) then

6) Save and close the script.

7) Switch to browse tool, and test.

8) Save the changes to the IDE by executing the following code in the
Message Box:

  save stack "revLibrary"

This should now allow you to make a standalone that includes the changes,
IIRC.

Hope this helps,

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How do I stop a table field from scrolling right?

2008-07-09 Thread Mikey
A fountain of knowledge are you.  I was afraid of that.
-- 
Emo Philips  - "I got some new underwear the other day. Well, new to me."
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How do I stop a table field from scrolling right?

2008-07-08 Thread Jan Schenkel
--- Mikey <[EMAIL PROTECTED]> wrote:
> I've got a table field.  Cells are editable.  I have
> the maximum editable
> column set to 4.  The field is a little wider than
> the right of the fourth
> column.  When I click in the fourth column, the
> whole field scrolls right so
> the 4th column is now on the far left of the field,
> and columns to the right
> of it are now visible.  How do I stop this behavior?
> 

Hi Mikey,

The problem seems to stem from the application of a
'fudge' factor to ensure that everything is visible
and stays within the margins of the table field,
taking the scrollbar width into account.
This was done to prevent situations where you take a
stack from a Mac, where scrollbars are 16 pixels wide,
to another platform where scrollbars are perhaps 20
pixels wide.
And that's why it will work if you add an extra 8
pixels to the right of your table field. But that
leaves you with a visual artefact. You could, of
course, change the grid color (aka 'borderColor')
property of the field to white so that people won't
see it right away.
Or you can just turn on the horizontal scrollbar of
the field.

Jan Schenkel.

Quartam Reports & PDF Library for Revolution


=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)


  
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


How do I stop a table field from scrolling right?

2008-07-08 Thread Mikey
I've got a table field.  Cells are editable.  I have the maximum editable
column set to 4.  The field is a little wider than the right of the fourth
column.  When I click in the fourth column, the whole field scrolls right so
the 4th column is now on the far left of the field, and columns to the right
of it are now visible.  How do I stop this behavior?

-- 
Emo Philips  - "I got some new underwear the other day. Well, new to me."
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution