Re: HttpFile async reading

2003-03-14 Thread Doug McCrae
There's also an example in the curl bible William Bardwell

Re: Why isn't this centered?

2003-06-03 Thread Doug McCrae
add-stretch defaults to stretching after, but not before this can be controlled using its keyword args width = {add-stretch before? = true}, height = {add-stretch before? = true}, - Original Message - From: "Brent Young" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Mond

Re: Scroll to include slected item

2004-01-12 Thread Doug McCrae
Try using 'scroll-to-include' NB: the x and y keyword args must be specified if you want to scroll that axis - the docstring does say that, but I don't usually read it until after it does nothing without arguments {value let xs:ListBox = {ListBox height = 1in,

Re: Scroll to include slected item

2004-01-13 Thread Doug McCrae
Looks like min-window and max-window are intended for that purpose. Probably takes some tweaking to handle various cases of origin/alignment of list item graphics {value let b:ListBox = {ListBox data-model = {DefaultListModel {splice "A

Re: http-read-open www.curl.com?

2004-03-03 Thread Doug McCrae
Using a trailing slash gets something (from the HttpFile corresponding to the empty string in that HttpDirectory, one assumes) {value let loc:Url = {url "http://www.curl.com/"} let display:Table = {Table} let headers:HttpResponseHeaders = {with-open-streams s = {{l

Re: Join Recordsets

2004-06-09 Thread Doug McCrae
I generate a RecordData from the Record to "union" recordsets {define-proc {record-data r:Record}:RecordData let d:RecordData = {RecordData} {for f in r.record-set.fields do let k:String = f.name set d[k] = r[k]} {return d} } Simple, read-only "join" functionality is

Re: Need a way to keep from calling "refresh-data""

2007-03-19 Thread Doug McCrae
James -- Yes, it is possible to suppress change notifications. See documentation for 'RecordSet.batch-events?' property. The normal behavior of a RecordSet is to indicate every change by firing a RecordSetEvent at itself. Then, any consumer of the RecordSet (like RecordGrid) knows to refresh it