Expert Systems?

2002-10-07 Thread Alex Rice

Does anyone know of an expert system toolkit in xcard/revolution for 
Expert Systems? I am thinking of something along the lines of a toolkit 
like CLIPS (C) or JESS (Java).

THanks,

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
[EMAIL PROTECTED]
[EMAIL PROTECTED]

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Implementation of "Filter with:" and " Scroll to:"

2002-10-07 Thread Sarah

The docs use 2 types: search which scrolls to the first matching entry 
and filter which only shows matching entries:

If you want the scroll method and you have your list in a field called 
"List" then your search field needs a script like this:

 if me is empty then -- scroll back to top
   set the hilitedLines of field "List" to 1
 else
   put lineOffset(return & me, field "List") + 1 into currentLine
   if currentLine > 1 then
 set the hilitedLines of field "List" to currentLine
 set the scroll of field "List" to \
 (currentLine - 1) * the effective textHeight of field "List"
   end if
 end if

The main trick with the filter method is that "filter" is destructive, 
so you need to store the complete list somewhere invisible, like in a 
custom property of the field. Suppose you have your display field 
"List" and that field has a custom property called completeList.

In your filter field, you need the following script:

on rawKeyUp
   put the completeList of fld "List" into theList
   filter theList with "*" & me & "*"
   put theList into fld "List"
end rawKeyUp

The *'s on either side allow you to find the specified text even if it 
is in the middle of a line. If you wanted to find only to find text 
that matched the beginnings of lines, you could leave out the first "*".

As you say, both these methods are very fast.

Cheers,
Sarah

On Tuesday, October 8, 2002, at 09:07  am, Mike Doub wrote:

> Hello all,
>
> I am new to transcription programming and am looking to implement a 
> search
> mechanism similar to that that is illustrated in the Revolution
> Documentation stack in the Transcript Language Dictionary.  I like the 
> very
> fast positioning within the field with every keystroke.  Can anyone 
> tell me
> how this might be implemented?
>
> Thanks,
>Mike
>
>
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
>


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Setting Geometry on cloned objects

2002-10-07 Thread Terry Vogelaar

Bob Rasmussen heeft op dinsdag, 8 okt 2002 om 07:20 het volgende 
geschreven:
>
> Short of writing my own Geometry Manager, does anyone have any other 
> bright
> ideas?

Because I never trust the GeoMan, I always use 'resizeStack'. To give 
an example, I pasted the script of a stack that uses this technique. 
The stack has a divider line that sets it's own 'divid' custom prop and 
also calls 'arrangeElements'. It needs some typing, but it is quite 
simple and gives much more predictable behaviour than the GeoMan.

It would be a useful contribution if anyone would write a kind of 
GeoMan stack that just adds a properly working resizeStack handler to 
the stack script.

on resizeStack
   arrangeElements
   pass resizeStack
end resizeStack

on arrangeElements
   put the divid of btn "Divider" into perc
   put the width of this stack into lWidth
   put the height of this stack into lHeight
   put round((perc*(lWidth-365))+120) into L40
   if L40 < 120 then put 120 into L40
   if L40 > (lWidth-245) then put (lWidth-245) into L40
   set the rect of btn "Divider" to L40-7&",52,"&L40+1&","&lHeight-4
   set the rect of btn "OTNT" to "4,52,"&L40-10&","&lHeight-4
   set the rect of btn "showwhich" to 
L40+4&",104,"&lWidth-4&","&lHeight-4
   set the rect of fld "books" to "10,76,60,"&lHeight-10
   set the rect of fld "history" to "62,76,"&L40-14&","&lHeight-10
   set the rect of fld "shortcutnumbers" to 
L40+6&",129,"&L40+26&","&lHeight-10
   set the rect of fld "groups" to 
L40+26&",130,"&lWidth-10&","&lHeight-10
   set the rect of fld "head" to L40+4&",52,"&lWidth-4&",74"
   set the rect of fld "subhead" to L40+4&",77,"&lWidth-4&",99"
end arrangeElements


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: XML

2002-10-07 Thread Alex Rice


On Thursday, October 3, 2002, at 03:02  AM, Kevin Miller wrote:

> On 2/10/02 8:30 pm, Alex Rice <[EMAIL PROTECTED]> wrote:
>>
>> Coming from REALbasic land, I immediately start looking for new
>> features in the prerelease versions of Rev ;-). I could really make 
>> use
>> of the XML parsing and the new spreadsheet control. Can anyone please
>> spill the beans a little bit about the status of the next release
>> beyond 1.1.1. Where can I download an alpha from, if anywhere?
>
> Our professional license holders have access to the alpha and beta test
> releases.
>
> Kind regards,
>
> Kevin

And I applaud RunRev for keeping a tight lid on the alphas and betas 
process. It's just too tempting to use bleeding edge releases when one 
really wants that new feature!

However, is there no XML parser available for RunRev 1.1.1? Even an 
External that wraps Expat or something?

I am looking at Altuit XML TreeView for some ideas for simple xml 
parsing to hold me over until the next version of Revolution.

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
[EMAIL PROTECTED]
[EMAIL PROTECTED]


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Setting Geometry on cloned objects

2002-10-07 Thread Bob Rasmussen

This note is about making your own calls to undocumented Geometry Manager
functions, rather than using the Geometry Manager stack.  Normally, I wouldn't
fiddle with undocumented interfaces, but in this case it seems like the right
thing to try.

I have a stack in which I need to clone a particular group an arbitrary number
of times.  The original group has a few controls in it.  The group and its
controls have been given Geometry Manager settings so they will resize
automatically to fit the width of the card. Some of the controls refer to the
group they are in. Some refer to other controls in the group.

I would like to arrange the clones below the original group in a column, such
that the clones have the same resizing behavior as the original (plus fancier
things if I get this to work).  Cloning, however, duplicates all the geometry
properties of the originals, including any object references in them.
Therefore, the geometry properties in the clones all refer back to the original
group and its controls, rather than to their own peers in the clone.

I have thoroughly reverse engineered the Geometry Manager stack, and I think I
know how to emulate what it does, but so far this has not worked.  I end up with
no geometry adjustment at all, and other things start acting a little weird.
I've tried doing it the "legal" way with calls to the undocumented
revSetGeometryObject, revGetGeometry and revSetGeometry, as well as to the
documented revCacheGeometry and revUpdateGeometry.  I've also tried setting
cRevGeometry properties directly.  Neither method works reliably.  I must be
missing some small detail.

This leads me to the following questions:

1.  Has anyone out there ever successfully used these undocumented interfaces?
Can you tell me what the incantation is?

2.  If I ever figure this out, am I wasting my time, since future versions of
Revolution may not work the same way on these undocumented interfaces?  Are
there plans to document these interfaces (or some new version of them)?

3.  Would anyone be interested in what I've managed to find out on my own so far
about these undocumented features?

4.  Short of writing my own Geometry Manager, does anyone have any other bright
ideas?

Thanks in advance.

RR


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Book Wiki

2002-10-07 Thread Geoff Canyon

Several people on the MetaCard list have been talking about collaborating 
on a book. I've put up a possible outline on the wiki. As usual, everyone 
is free to edit/contribute right now, no logins required.



regards,

Geoff


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Implementation of "Filter with:" and " Scroll to:"

2002-10-07 Thread Mike Doub

Hello all,

I am new to transcription programming and am looking to implement a search
mechanism similar to that that is illustrated in the Revolution
Documentation stack in the Transcript Language Dictionary.  I like the very
fast positioning within the field with every keystroke.  Can anyone tell me
how this might be implemented?

Thanks,
   Mike


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Creating Icons on the Fly

2002-10-07 Thread Dan Friedman

Fellow RR users,

I want to display some icons on the screen and the user will define the text
and backgroundColor of the icons.  The text of these icons will be vertical.
I can create the icons using the import snapshot command then rotating the
image 90°.  (You have to fiddle with it because the rotate distorts the
image - but I've got it looking great!)

The problem is when the standalone opens, and I create the icons (and do the
rotate) it looks pretty ugly on screen -- all the flashing of the import
snapshot command and rotation.  Since the import snapshot command takes an
actual screen shoot, locking the screen or setting the stack off screen are
not viable options.

Anyone know (or can think of) a workaround?

Thank you in advance.

-Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



[ANN] libSMTP v1.2.0

2002-10-07 Thread Shao Sean

I've released an update to the SMTP library. It fixes the problems that I
knew about (authentication, attachments). I have also obsoleted two of the
old handlers (they're still there and they still work, but use the newer
method in new projects).

I am also seeking testers for a POP3 library (it won't be completed for a
few more days, but testing starts right away). Contact me off-list if you're
interested.

--
Shao Sean
http://www.shaosean.tk/

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: screenMouseLoc [2]

2002-10-07 Thread Kevin Miller

On 7/10/02 3:09 pm, Jan Schenkel <[EMAIL PROTECTED]> wrote:

> On another note: the Transcript Dictionary shows that
> this function works in MacOS Classic, Un*x and
> Windows, but specifically not in MacOS X.
> So you're out of luck, appearently.

Note that this limitation will be eliminated in the next version of
Revolution.

Kevin

Kevin Miller <[EMAIL PROTECTED]> 
Runtime Revolution Limited - The Solution for Software Development
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Revolution Book Project

2002-10-07 Thread Alan Golub

Hi all--

I've posted a draft Introduction section for the Revolution book. Here's the
link:

http://progrevolution.blogspot.com/

Hopefully, this draft will give readers the feel and flavor of the book.
Please check it out -- feedback is encouraged!

Since first announcing the project, I've received quite a few e-mails from
folks who have expressed interest and checked out the weblog. I'm happy to
note that everyone I've heard from is quite excited about the project, and
eager for details, i.e., publication date, publisher, etc. Suffice it to say
that no such details are yet worked out. From my prior experience in the
tech book market, it's best to have as much written as possible before
approaching publishers -- publishers demand such quick turn-around times
(based on the fact that software versions quickly and frequently change
between the signing of a book contract and actual publication) that it's
best to have a good head-start before you commit to real deadlines. My
preference, however, is to base the book on version 2 or later, with
publication sometime next early-Fall. A long way off, but necessary and
desirable to make it something to be proud of.

Anyway, I'll continue to work as fast and often as I can. Thanks for your
interest!

Regards,
Alan S. Golub
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: screenMouseLoc [2]

2002-10-07 Thread Jan Schenkel

--- Robin Banerjee <[EMAIL PROTECTED]> wrote:
> I can't seem to get screenMouseLoc to work (using
> Mac OS X).
> 
> 'set the screenMouseLoc to 200,200' doesn't seem to
> do anything.
> 
> Any help would be much appreciated.
> 
> Robin
> -- 
> Dr Robin Banerjee
> [EMAIL PROTECTED]
> 

On another note: the Transcript Dictionary shows that
this function works in MacOS Classic, Un*x and
Windows, but specifically not in MacOS X.
So you're out of luck, appearently.


=
Best regards,

Jan Schenkel.

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

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: screenMouseLoc

2002-10-07 Thread Jan Schenkel

--- Robin Banerjee <[EMAIL PROTECTED]> wrote:
> I can't seem to get screenMouseLoc to work (using
> Mac OS X).
> 
> 'set the screenMouseLoc to 200,200' doesn't seem to
> do anything.
> 
> Any help would be much appreciated.
> 
> Robin
> -- 
> Dr Robin Banerjee
> [EMAIL PROTECTED]

Hi Robin,

You have to put the location between quotes. So your
line of code should be:

  set the screenMouseLoc to "200,200"

That ought to do the trick :-)


=
Best regards,

Jan Schenkel.

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

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



screenMouseLoc

2002-10-07 Thread Robin Banerjee

I can't seem to get screenMouseLoc to work (using Mac OS X).

'set the screenMouseLoc to 200,200' doesn't seem to do anything.

Any help would be much appreciated.

Robin
-- 
Dr Robin Banerjee
[EMAIL PROTECTED]

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution