Re: how to always show the record added RecordGrid??

2005-05-30 Thread 前川享仁
Thanks Phil,

I tried your idea and it worked right.
Thanks so much.


> It's true that RecordGrid doesn't give you much scrolling control, but
> it does keep the "current" record always scrolled into view.  So if
> you don't mind making the viewed record the current record, you could
> use technique.
> 
> {define-class MyRecordGrid {inherits RecordGrid}
> 
>   {method public open {note-record-set-event ev:RecordSetEvent}:void
> {super.note-record-set-event ev}
> {type-switch ev
>  case changed:RecordsChanged do
> {if self.records.size != 0 then
> || This scrolls the last record in this grid's
> || RecordView into view.
> set self.current-index = self.records.size - 1
> }
> }
>   }
> 
>   ...
> }
> 
> -phil
> 
> ***
> To unsubscribe from this list, send a mail to:
> mailto:[EMAIL PROTECTED]
> To contact a human list administrator, send a mail to:
> mailto:[EMAIL PROTECTED]
> To recieve a list of other options for this list, send a mail to:
> mailto:[EMAIL PROTECTED]
> 
> 


-- 
-
前川 享仁/Maekawa Takanobu
e-mail:[EMAIL PROTECTED]
CANSOFT,INC.Tel:044(969)9747 Fax:044(969)9748
http://www.cansoft.co.jp/

***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]



Re: how to always show the record added RecordGrid??

2005-05-29 Thread Phil Shapiro
前川享仁 <[EMAIL PROTECTED]> writes:

> Hi gurus,
> 
> how to always show the record added RecordGrid??
> 
> I wonder that I should use the method
> 'RecordGrid.scroll-to-include-relative-point', but can't understand
> the explanation in online help because I don't know some important
> concepts such as 'viewport' and can't find anywhere in help.

It's true that RecordGrid doesn't give you much scrolling control, but
it does keep the "current" record always scrolled into view.  So if
you don't mind making the viewed record the current record, you could
use technique.

{define-class MyRecordGrid {inherits RecordGrid}

  {method public open {note-record-set-event ev:RecordSetEvent}:void
{super.note-record-set-event ev}
{type-switch ev
 case changed:RecordsChanged do
{if self.records.size != 0 then
|| This scrolls the last record in this grid's
|| RecordView into view.
set self.current-index = self.records.size - 1
}
}
  }

  ...
}

-phil

***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]



Re: how to always show the record added RecordGrid??

2005-05-29 Thread Friedger
Hi Maekawa,
(B
(BI can't see an immediate solution as RecordGrid doesn't make use of
(BScrollBox. Instead it implements its own scroll mechanism. If you look
(Bat StandardRecordGridUI there is a private method scroll-to-reveal. You
(Bshould derive your own UI that allows to react on RecordAdded events and
(Bcalls scroll-to-reveal.
(B
(BVisual.scroll-to-include does not scroll inner elements, like record
(Brows. Instead it tries to scroll a ScrollBox which contains the visual.
(BSo scroll-to-include does not help here.
(B
(BHope this answer helps.
(B
(BFriedger
(B
(B
(B***
(BTo unsubscribe from this list, send a mail to:
(Bmailto:[EMAIL PROTECTED]
(BTo contact a human list administrator, send a mail to:
(Bmailto:[EMAIL PROTECTED]
(BTo recieve a list of other options for this list, send a mail to:
(Bmailto:[EMAIL PROTECTED]

Re: how to always show the record added RecordGrid??

2005-05-28 Thread $BA0@n5}?N(B
Hi gurus,
(B
(B> how to always show the record added RecordGrid??
(B
(Bsorry, I wanted to say like bellow:
(Bhow to always show the record last added to RecordGrid?
(B
(BI'm trying to show the latest record added to RecordGrid.
(BPlease tell me how to do that.
(B
(BRegards.
(B
(B> Hi gurus,
(B> 
(B> how to always show the record added RecordGrid??
(B> 
(B> I wonder that I should use the method
(B> 'RecordGrid.scroll-to-include-relative-point',
(B> but can't understand the explanation in online help
(B> because I don't know some important concepts such as 'viewport'
(B> and can't find anywhere in help.
(B> 
(B> Regards.
(B> 
(B
(B
(B-- 
(B-
(BMaekawa Takanobu
(Be-mail:[EMAIL PROTECTED]
(BCANSOFT,INC.Tel:044(969)9747 Fax:044(969)9748
(Bhttp://www.cansoft.co.jp/
(B
(B***
(BTo unsubscribe from this list, send a mail to:
(Bmailto:[EMAIL PROTECTED]
(BTo contact a human list administrator, send a mail to:
(Bmailto:[EMAIL PROTECTED]
(BTo recieve a list of other options for this list, send a mail to:
(Bmailto:[EMAIL PROTECTED]

how to always show the record added RecordGrid??

2005-05-28 Thread $BA0@n5}?N(B
Hi gurus,
(B
(Bhow to always show the record added RecordGrid??
(B
(BI wonder that I should use the method
(B'RecordGrid.scroll-to-include-relative-point',
(Bbut can't understand the explanation in online help
(Bbecause I don't know some important concepts such as 'viewport'
(Band can't find anywhere in help.
(B
(BRegards.
(B
(B-- 
(B-
(BMaekawa Takanobu
(Be-mail:[EMAIL PROTECTED]
(BCANSOFT,INC.Tel:044(969)9747 Fax:044(969)9748
(Bhttp://www.cansoft.co.jp/
(B
(B***
(BTo unsubscribe from this list, send a mail to:
(Bmailto:[EMAIL PROTECTED]
(BTo contact a human list administrator, send a mail to:
(Bmailto:[EMAIL PROTECTED]
(BTo recieve a list of other options for this list, send a mail to:
(Bmailto:[EMAIL PROTECTED]