Re: remove html tags from text

2006-09-10 Thread Ken Ray
On 9/10/06 12:06 AM, "Richard Gaskin" <[EMAIL PROTECTED]> wrote:

> So I have two questions about this sort of parsing as opposed to using a
> field object to so the same:
> 
> 1. Which is more fault-tolerant?

Good question - one problem with the field object that was identified by
Sivakatirswami back in August with this was that if you have an html tag
with  in it (like: Chapter 1: Great Revolution
Recipes), when you set the htmlText of the field to the html that
contains the , everything that is in the  tag doesn't show up
in the field, and can't be retrieved ever again.

Granted, I'm sure there are only a few situations like this, and are not
likely to affect 99% of us, but I think the replaceText solution is at about
the same level of efficiency.
 
> 2. Which is faster?

The field approach, hands down. This is because any regex that needs to run
needs to be handled by the PCRE library so there's more "hand off" time
involved.

Just my 2 cents,

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

___
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: Date Comparison Problems (was Date)

2006-09-10 Thread Ian McKnight

Thanks Mark

I'll do that.

--
Regards

Ian

===
Ian McKnight

[EMAIL PROTECTED]
===
___
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


.dmg windows

2006-09-10 Thread Trevor Hopkins
After creating a standalone on the Mac, and in the process of bundling this 
app up into a .dmg image, does anyone know how to place graphics in the 
background of the window of that .dmg? I've seen plenty of Mac apps that 
I've downloaded have fancy images in their .dmg's but I can't see how to do 
this with Disk Utility.


Cheers!

Trevor Hopkins
Exeter, UK

_
Windows Live™ Messenger has arrived. Click here to download it for free! 
http://imagine-msn.com/messenger/launch80/?locale=en-gb


___
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: .dmg windows

2006-09-10 Thread Adrian Williams

MacUser (UK)  has a Masterclass on 'Creating symbolic links'
which displays a background image.

Issue: 21 July 2006. Vol 22. No 15.

Adrian Williams
Surrey, UK

On 10 Sep 2006, at 11:07, Trevor Hopkins wrote:

After creating a standalone on the Mac, and in the process of bundling 
this app up into a .dmg image, does anyone know how to place graphics 
in the background of the window of that .dmg? I've seen plenty of Mac 
apps that I've downloaded have fancy images in their .dmg's but I 
can't see how to do this with Disk Utility.


Cheers!

Trevor Hopkins
Exeter, UK

_
Windows Live™ Messenger has arrived. Click here to download it for 
free! http://imagine-msn.com/messenger/launch80/?locale=en-gb


___
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




___
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: .dmg windows

2006-09-10 Thread sims

At 11:07 AM +0100 9/10/06, Trevor Hopkins wrote:
After creating a standalone on the Mac, and in the process of 
bundling this app up into a .dmg image, does anyone know how to 
place graphics in the background of the window of that .dmg? I've 
seen plenty of Mac apps that I've downloaded have fancy images in 
their .dmg's but I can't see how to do this with Disk Utility.


I use a nice little utility named 'DropDMG'. Works well.

ciao,
sims

European Rev Conference  2006
[cheaper airfares now with Ryanair flying to Malta!]
www.techietours.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: Date Comparison Problems (was Date)

2006-09-10 Thread Rob Cozens

Hi Ian,


theDOBA is an array containing a date in the form DD MM  - one
element per key

[snip]

put the short date into theDateNow


It appears to me that the two dates are in different formats:

DOB = DD MM 

theDateNow = MM DD YY

If you computer's date format is set to DD MM  (& the year of 
birth is within the range defined by the centuryCutoff),


"put the short system date into theDateNow"

should do the job.
--

Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)
___
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: remove html tags from text

2006-09-10 Thread Richard Gaskin


Ken Ray wrote:


So I have two questions about this sort of parsing as opposed to using a
field object to so the same:

1. Which is more fault-tolerant?


Good question - one problem with the field object that was identified by
Sivakatirswami back in August with this was that if you have an html tag
with  in it (like: Chapter 1: Great Revolution
Recipes), when you set the htmlText of the field to the html that
contains the , everything that is in the  tag doesn't show up
in the field, and can't be retrieved ever again.


As a HEAD element and not a BODY element, should  be considered 
data or metadata?  After all,  is only used by the browser to set 
the window name, and the contents of that tag are not rendered in the 
page.  In this regard Rev does the same:  it doesn't render  
content in the field, but if you want to process the HEAD data before 
passing the BODY into the field for rendering you can handle  
just like a browser does.




Granted, I'm sure there are only a few situations like this, and are not
likely to affect 99% of us, but I think the replaceText solution is at about
the same level of efficiency.


How does the regex solution hold up to things like "<" and ">" within 
"" tags as Jacque noted, or other legitimate incusions of those or 
other characters which are also used as control characters in SGML?




2. Which is faster?


The field approach, hands down. This is because any regex that needs to run
needs to be handled by the PCRE library so there's more "hand off" time
involved.


Yes, the generalization of regex makes it convenient but I've never seen 
any case where a faster solution couldn't be crafted from the offset 
function and the like.


So until someone can demonstrate otherwise, I'm sticking with using 
fields to strip tags from text.


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.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: remove html tags from text

2006-09-10 Thread Mark Smith


On 10 Sep 2006, at 16:26, Richard Gaskin wrote:

So until someone can demonstrate otherwise, I'm sticking with using  
fields to strip tags from text.



Though doesn't this approach fail with legitimate "<" characters in  
  (or other) tags?


Of course, that may not be important in your usage.


Best,

Mark
___
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


Field listener

2006-09-10 Thread Trevor Hopkins
I'm trying to build a form whose "submit" button only becomes enabled after 
text is present in a specific field (and likewise when that field is blank, 
the "submit" button returns to disabled status). Does anyone know of a 
painless way to do this? I'd also like the user to be able to hit return 
from within that field and have the "submit" button entered. Right now, it 
seems, the return key must be hit twice in order to first exit the field and 
then select "submit".


Many thanks,

Trevor Hopkins
Exeter, UK

_
Windows Live™ Messenger has arrived. Click here to download it for free! 
http://imagine-msn.com/messenger/launch80/?locale=en-gb


___
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: remove html tags from text

2006-09-10 Thread Richard Gaskin

Mark Smith wrote:

On 10 Sep 2006, at 16:26, Richard Gaskin wrote:

So until someone can demonstrate otherwise, I'm sticking with using  
fields to strip tags from text.


Though doesn't this approach fail with legitimate "<" characters in  
  (or other) tags?


Of course, that may not be important in your usage.


It's very important for most of us, since we're looking for the most 
robust solution.


I just tried it and found that this:


put 2<3


...produces an incomplete rendering like this:

  put 2

...but this:


put 2< 3


...is rendered as expected like this:

put 2< 3


I would imagine similar results if we special-case the regex solution to 
also handle non-white space after a "<".


If both methods are equally robust then the one to use would be the 
fastest.  But if one of more fault-tolerant than the other, than if the 
speed of both is at least acceptable than I'd go with the more robust one.


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.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: remove html tags from text

2006-09-10 Thread Jim Ault
Richard,

Is the white space a " " in the html, or a   that appears to be a
space?
> 
> put 2<3  |   put 2< 3|   put 2< 3
> 


Jim Ault
Las Vagas


On 9/10/06 10:55 AM, "Richard Gaskin" <[EMAIL PROTECTED]> wrote:

> Mark Smith wrote:
>> On 10 Sep 2006, at 16:26, Richard Gaskin wrote:
>> 
>>> So until someone can demonstrate otherwise, I'm sticking with using
>>> fields to strip tags from text.
>> 
>> Though doesn't this approach fail with legitimate "<" characters in
>>   (or other) tags?
>> 
>> Of course, that may not be important in your usage.
> 
> It's very important for most of us, since we're looking for the most
> robust solution.
> 
> I just tried it and found that this:
> 
> 
> put 2<3
> 
> 
> ...produces an incomplete rendering like this:
> 
>put 2
> 
> ...but this:
> 
> 
> put 2< 3
> 
> 
> ...is rendered as expected like this:
> 
> put 2< 3
> 
> 
> I would imagine similar results if we special-case the regex solution to
> also handle non-white space after a "<".
> 
> If both methods are equally robust then the one to use would be the
> fastest.  But if one of more fault-tolerant than the other, than if the
> speed of both is at least acceptable than I'd go with the more robust one.


___
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: Field listener

2006-09-10 Thread Jim Ault
Use 'on closefield' handler in the field of the text entry, then have that
handler call the 'submit' handler

Jim Ault
Las Vegas


On 9/10/06 9:17 AM, "Trevor Hopkins" <[EMAIL PROTECTED]> wrote:

> I'm trying to build a form whose "submit" button only becomes enabled after
> text is present in a specific field (and likewise when that field is blank,
> the "submit" button returns to disabled status). Does anyone know of a
> painless way to do this? I'd also like the user to be able to hit return
> from within that field and have the "submit" button entered. Right now, it
> seems, the return key must be hit twice in order to first exit the field and
> then select "submit".
> 
> Many thanks,
> 
> Trevor Hopkins
> Exeter, UK
> 
> _
> Windows Live™ Messenger has arrived. Click here to download it for free!
> http://imagine-msn.com/messenger/launch80/?locale=en-gb
> 
> ___
> 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


___
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: Field listener

2006-09-10 Thread Ken Ray
On 9/10/06 11:17 AM, "Trevor Hopkins" <[EMAIL PROTECTED]> wrote:

> I'm trying to build a form whose "submit" button only becomes enabled after
> text is present in a specific field (and likewise when that field is blank,
> the "submit" button returns to disabled status). Does anyone know of a
> painless way to do this? I'd also like the user to be able to hit return
> from within that field and have the "submit" button entered. Right now, it
> seems, the return key must be hit twice in order to first exit the field and
> then select "submit".

The easiest way IMHO is to put this script in the field:

on rawKeyUp
  set the enabled of btn "Submit" to (me is not empty)
end rawKeyUp

on returnInField
  click at loc of btn "Submit"
end returnInField

Now what this will do is not allow returns in the text field; i.e. any
returns hit in the field will trigger the Submit button. And by testing the
contents of the field when the keystroke has completed, we can determine
whether to enable or disable the Submit button.

Will this work for you?

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

___
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: Field listener

2006-09-10 Thread Jim Ault
Now that I have time for a more detailed answer, the key lies in how you use
the 'closefield' handler of the text entry field.

It is possible to :
on closefield 
   if me is empty then
   set a flag 'IamEmpty' to true
  set the Submit button to diabled state


---or simpler for the programmer
--less user friendly
on SubmitButton
   if fld textEntry is empty then
  set me to diaabled state
  answer "Nothing to submit"
   else
  do the submit tasks
   end if 

Jim Ault
Las Vegas

On 9/10/06 9:17 AM, "Trevor Hopkins" <[EMAIL PROTECTED]> wrote:

> I'm trying to build a form whose "submit" button only becomes enabled after
> text is present in a specific field (and likewise when that field is blank,
> the "submit" button returns to disabled status). Does anyone know of a
> painless way to do this? I'd also like the user to be able to hit return
> from within that field and have the "submit" button entered. Right now, it
> seems, the return key must be hit twice in order to first exit the field and
> then select "submit".
> 
> Many thanks,
> 
> Trevor Hopkins
> Exeter, UK
> 
> _
> Windows Live™ Messenger has arrived. Click here to download it for free!
> http://imagine-msn.com/messenger/launch80/?locale=en-gb
> 
> ___
> 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


___
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: remove html tags from text

2006-09-10 Thread Jim Ault
By the way, which tags are used makes a big difference.

Table tags are used frequently for layout.  Notice the difference below

Depending on the tags used, html considers a run of spaces as one space, but
a parser has to accommodate the difference.  This means that the source can
have extra characters and still look the same to the viewer.

- paste into your favorite word processor, save as something.html, then
 open in a browser

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml";>

Untitled




 put 2< 3
 put 2<  3
 put 2<   3
 
 


 put 2< 3


  second 2 <  3


 third2  <   3







Ahh, the wonderful world of browsers and html.

Jim Ault
Las Vegas

On 9/10/06 10:55 AM, "Richard Gaskin" <[EMAIL PROTECTED]> wrote:

> Mark Smith wrote:
>> On 10 Sep 2006, at 16:26, Richard Gaskin wrote:
>> 
>>> So until someone can demonstrate otherwise, I'm sticking with using
>>> fields to strip tags from text.
>> 
>> Though doesn't this approach fail with legitimate "<" characters in
>>   (or other) tags?
>> 
>> Of course, that may not be important in your usage.
> 
> It's very important for most of us, since we're looking for the most
> robust solution.
> 
> I just tried it and found that this:
> 
> 
> put 2<3
> 
> 
> ...produces an incomplete rendering like this:
> 
>put 2
> 
> ...but this:
> 
> 
> put 2< 3
> 
> 
> ...is rendered as expected like this:
> 
> put 2< 3
> 
> 
> I would imagine similar results if we special-case the regex solution to
> also handle non-white space after a "<".
> 
> If both methods are equally robust then the one to use would be the
> fastest.  But if one of more fault-tolerant than the other, than if the
> speed of both is at least acceptable than I'd go with the more robust one.
> 
> --
>   Richard Gaskin
>   Managing Editor, revJournal
>   ___
>   Rev tips, tutorials and more: http://www.revJournal.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


___
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


Gnome or KDE?

2006-09-10 Thread Ken Ray
Is there any simple way for a Rev stack to know whether the currently
running version of Linux uses Gnome or KDE? And if so, what's the best way
to determine what version of Gnome or KDE is in use?

Thanks,

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

___
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


Characters above ASCII 255

2006-09-10 Thread Adrian Williams

I'm having trouble accessing ASCII characters above 255
in a font that has 1200 characters. I've tried this...

  put numToChar(1378) into field "FontDisplay.txt"

but get two unwanted characters: a hollow square next to a character.
Should I be doing some kind of conversion or calling for a
Hexadecimal value or something else?

Adrian Williams
Surrey, UK

___
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: Date Comparison Problems (was Date)

2006-09-10 Thread Sivakatirswami

Just curious... instead of an array...might the dateitems function
(which I use a lot) be more intuitive-helpful?
wherein the order of items is fixed unlike the array hash order?

After  validation,

convert tDOB to dateitems
# keep it stored as dateitems list
# access items as needed for , MM, DD

# future  test:

if DateAsSeconds(tDOB) > DateAsSeconds(the date) then
   answer "That's the future!" with "Oops, try again..."
   exit to top
end if

function DateAsSeconds tDate
convert tDate to seconds
return tDate
end DateAsSeconds

I've  just used dateitems for so  long
I think I have it memorized

year: item 1 of tDOB etc.

not as "cool" or terse as using arrays,
but more transparent.  Of course, maybe  you have good reason for
using an array

skts



Ian McKnight wrote:

Hi

I have a stack which calls for a date to be entered.
As part of the validation checks I split the date into an array.
Once the date has been validated I then want to ensure that it is not
in the future.
So I compare the valid input date with the current date.

The straight comparison code of

if theDOB > theDateNow then .

failed so the code I use is converts both dates to seconds

-- check if date is in the future
put theDOBA into theDOB
combine theDOB with "/"
convert theDOB to short date -- to ensure that it is treated as a
date - seems to make no difference
convert theDOB to seconds - fails here

theDOBA is an array containing a date in the form DD MM  - one
element per key

When I enter a date eg "19/3/1984" the variable theDOB is not
cenverted but remains in date form, however this code to convert the
current date to seconds works fine

put the short date into theDateNow
set itemdelimiter to "/"
put 20 before item 3 of theDateNow -- ensure 4 digit year
convert theDateNow to seconds


I would appreciate any guidance as my reassembled date does not seem
to be treated as a date,


TIA


Regards

Ian

===
Ian McKnight

[EMAIL PROTECTED]
===
___
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



--
Om shanti
(In  Peace)

Sivakatirswami
www.himalayanacademy.com

Get Hinduism Today Digital Edition. It's Free!
http://www.hinduismtoday.com/digital/

___
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


Is it possible to set just one word of a text to bold ?

2006-09-10 Thread William de Smet

Hi there,

How do I set just one word to bold?
So far I use the following code:
on mouseUp
 if the highlite of me is true
 then put "Mondelinge Taal - Communicatieve voorwaarden - Niveau 2"
&cr into tData
 then put "- Zit vijf minuten stil op een stoel bij een één-op-één
gesprek " &cr after tData
 then put tData into fld "doel"
 end if
 if the highlite of me is false
 then put empty into fld "doel"
 end mouseUp

I just want the word "Taal" to be bold.
I have got a lot of buttons that can be selected so the amount of text
of fld "doel" varies and therefore I cannot say:word 2 or line 1 of
fld "doel"

How do I do this?

The next action is that the user copies the entire text (with the bold
word "Taal") into another field. I guess it will lose the bold word
"Taal" then. This needs to work too!

After that the text will be printed (again with the bold word "Taal").
I've playing all day with filter, htmltext, textstyle etc. Nothing
worked. It gave me a headache!

Does anyone know how to do this. It must be simple but I gave up.

greetings,

William de Smet
___
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


Printing from Revolution

2006-09-10 Thread Alvaro Abril - Tecnologia
Dear Sirs:

How I can to print reports using Revolution .. I work with .exe
(executables)

We have any command for print reports?

Cordialmente,
Alvaro Abril
Tecnología
Divertia S.A.
www.fantasticguatemala.com
Tel. 502 2410 4600
Fax.502 2410 4646
Guatemala
-Mensaje original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] En nombre de William de
Smet
Enviado el: Domingo, 10 de Septiembre de 2006 01:44 p.m.
Para: How to use Revolution
Asunto: Is it possible to set just one word of a text to bold ?

Hi there,

How do I set just one word to bold?
So far I use the following code:
on mouseUp
  if the highlite of me is true
  then put "Mondelinge Taal - Communicatieve voorwaarden - Niveau 2"
&cr into tData
  then put "- Zit vijf minuten stil op een stoel bij een één-op-één
gesprek " &cr after tData
  then put tData into fld "doel"
  end if
  if the highlite of me is false
  then put empty into fld "doel"
  end mouseUp

I just want the word "Taal" to be bold.
I have got a lot of buttons that can be selected so the amount of text
of fld "doel" varies and therefore I cannot say:word 2 or line 1 of
fld "doel"

How do I do this?

The next action is that the user copies the entire text (with the bold
word "Taal") into another field. I guess it will lose the bold word
"Taal" then. This needs to work too!

After that the text will be printed (again with the bold word "Taal").
I've playing all day with filter, htmltext, textstyle etc. Nothing
worked. It gave me a headache!

Does anyone know how to do this. It must be simple but I gave up.

greetings,

William de Smet
___
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


___
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: Is it possible to set just one word of a text to bold ?

2006-09-10 Thread jbv


William,

Here's a suggestion that is worth trying :

get wordoffset("Taal",tData)
put "Taal" into word it of tData
set the htmlText of fld 1 to tData

JB

> Hi there,
>
> How do I set just one word to bold?
> So far I use the following code:
> on mouseUp
>   if the highlite of me is true
>   then put "Mondelinge Taal - Communicatieve voorwaarden - Niveau 2"
> &cr into tData
>   then put "- Zit vijf minuten stil op een stoel bij een één-op-één
> gesprek " &cr after tData
>   then put tData into fld "doel"
>   end if
>   if the highlite of me is false
>   then put empty into fld "doel"
>   end mouseUp
>
> I just want the word "Taal" to be bold.
> I have got a lot of buttons that can be selected so the amount of text
> of fld "doel" varies and therefore I cannot say:word 2 or line 1 of
> fld "doel"
>
> How do I do this?
>
> The next action is that the user copies the entire text (with the bold
> word "Taal") into another field. I guess it will lose the bold word
> "Taal" then. This needs to work too!
>
> After that the text will be printed (again with the bold word "Taal").
> I've playing all day with filter, htmltext, textstyle etc. Nothing
> worked. It gave me a headache!
>
> Does anyone know how to do this. It must be simple but I gave up.
>
> greetings,
>
> William de Smet
> ___

___
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: .dmg windows

2006-09-10 Thread Scott Morrow

Trevor,
sims has already mentioned dropDMG, which I use as well.  The manual  
method is to place the image you want to use in the .dmg window. Then  
choose "Show View Options" from under the "View" menu in the Finder.   
You can set the background picture from there.  To tidy up, I make  
the image I'm using invisible after setting it as the background  
although you could obscure its location in other ways.


-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-

On Sep 10, 2006, at 3:07 AM, Trevor Hopkins wrote:

After creating a standalone on the Mac, and in the process of  
bundling this app up into a .dmg image, does anyone know how to  
place graphics in the background of the window of that .dmg? I've  
seen plenty of Mac apps that I've downloaded have fancy images in  
their .dmg's but I can't see how to do this with Disk Utility.


Cheers!

Trevor Hopkins
Exeter, UK

_
Windows Live™ Messenger has arrived. Click here to download it for  
free! http://imagine-msn.com/messenger/launch80/?locale=en-gb


___
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



___
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: Field listener

2006-09-10 Thread Sarah Reichelt

On 9/11/06, Trevor Hopkins <[EMAIL PROTECTED]> wrote:

I'm trying to build a form whose "submit" button only becomes enabled after
text is present in a specific field (and likewise when that field is blank,
the "submit" button returns to disabled status). Does anyone know of a
painless way to do this? I'd also like the user to be able to hit return
from within that field and have the "submit" button entered. Right now, it
seems, the return key must be hit twice in order to first exit the field and
then select "submit".



I like to use a "send in time" message that checks all the relevant
fields and enables or disables buttons accordingly. I prefer it to
closeField as it happens in real time, instead of waiting for the user
to get out of the field.

For example:

-- start the messsage going
on openCard
 send "checkButtons" to me
end openCard

-- check all the things you need & set the button
-- you can make this check as complex as you like
on checkButtons
 if fld "Essential" is empty or fld "Number" is not a number then
   disable btn "Submit"
 else
   enable btn "Submit"
 end if

 -- send the message again
 if the pendingMessages contains "checkButtons" is false then
   send "checkButtons" to me in 10 ticks
 end if
end checkButtons

-- stop the message when closing the card
on closeCard
 put the pendingMessages into tList
 repeat for each line L in tList
   if item 3 of L contains "checkButtons" then cancel item 1 of L
 end repeat
end closeCard


Then for the Return key being able to hit the button:

on returnInField
 click at the loc of btn "Submit"
end returnInField

I like this method as it won't do anything if the button is disabled,
and if it does work, it gives visual feedback of the buttoon being
clicked.

Don't forget that you can also use enterInField and if the autoTab is
set to true, you might like to use the tabKey message.

HTH,
Sarah
___
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: Printing from Revolution

2006-09-10 Thread Sarah Reichelt

On 9/11/06, Alvaro Abril - Tecnologia <[EMAIL PROTECTED]> wrote:

Dear Sirs:

How I can to print reports using Revolution .. I work with .exe
(executables)

We have any command for print reports?



Check out the revPrintText and revPrintField commands in the
Revolution dictionary.

I usually build a report in a field, then print it using one of these commands.

Sarah
___
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: Is it possible to set just one word of a text to bold ?

2006-09-10 Thread Ken Ray
On 9/10/06 3:20 PM, "jbv" <[EMAIL PROTECTED]> wrote:

> 
> 
> William,
> 
> Here's a suggestion that is worth trying :
> 
> get wordoffset("Taal",tData)
> put "Taal" into word it of tData
> set the htmlText of fld 1 to tData

An alternative (without HTML) is :

get wordoffset("Taal",tData)
set the textStyle of word it to bold

>> The next action is that the user copies the entire text (with the bold
>> word "Taal") into another field. I guess it will lose the bold word
>> "Taal" then. This needs to work too!

No, you can say:

  set the htmlText of fld 2 to the htmlText of fld 1

This will carry over an exact copy of fld 2 into fld 1

HTH,

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

___
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: Characters above ASCII 255

2006-09-10 Thread Phil Davis

Hi Adrian,

Take a look in the docs at the UseUnicode property. It enables numToChar() to 
process values higher than 255.


Phil Davis


Adrian Williams wrote:

I'm having trouble accessing ASCII characters above 255
in a font that has 1200 characters. I've tried this...

  put numToChar(1378) into field "FontDisplay.txt"

but get two unwanted characters: a hollow square next to a character.
Should I be doing some kind of conversion or calling for a
Hexadecimal value or something else?

Adrian Williams
Surrey, UK

___
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: Date Comparison Problems (was Date)

2006-09-10 Thread Ian McKnight

On 10/09/06, Sivakatirswami <[EMAIL PROTECTED]> wrote:

Just curious... instead of an array...might the dateitems function
(which I use a lot) be more intuitive-helpful?
wherein the order of items is fixed unlike the array hash order?

After  validation,

convert tDOB to dateitems
# keep it stored as dateitems list
# access items as needed for , MM, DD

# future  test:

if DateAsSeconds(tDOB) > DateAsSeconds(the date) then
answer "That's the future!" with "Oops, try again..."
exit to top
end if

function DateAsSeconds tDate
convert tDate to seconds
return tDate
end DateAsSeconds

I've  just used dateitems for so  long
I think I have it memorized

year: item 1 of tDOB etc.

not as "cool" or terse as using arrays,
but more transparent.  Of course, maybe  you have good reason for
using an array

skts


Hi

I was experimenting with a simple way to validate a date and hit upon
arrays as a way of confirming the number of days in a month - use an
array containing the days of the month and reference those by the
month number. Use of arrays just spiraled from there. The humourous
aspect, for me, in all this, is that after writing many lines of code
to achieve a valid date it seems all I needed to do was code

if theDOB is a date.  Isn't Revolution wonderful! Back to the drawing
board. And thanks for the advice.
___
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: Date Comparison Problems (was Date)

2006-09-10 Thread Ian McKnight

Hi Rob

Yes with further investigation that seems to be my problem. My system
date is DD/MM/ as is my preferred format for the input date - Rev
seems to prefer MM/DD/ and this is where my error was occurring.

Thanks for the advice.
___
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: .dmg windows

2006-09-10 Thread Andre Garzia

Trevor,

it's pretty simple to do it by hand.

Steps:
1) First on that DMG create a folder and put your background image  
inside that folder.

2) Hide that folder.
3) Show the view options (Command+J) and select the background option.
4) Now is the trick, since you made that little folder invisible, it  
is not showing on the list, press Command+Shift+G, this will ask you  
which folder you want to browse, by selecting first your root DMG  
folder, after pressing this, you can just type in your hidden folder,  
bingo, you're seeing your hidden folder with the background image.

5) Select that image.
6) There's no step six

Remember to set the dafault view of the DMG to icons, or the  
background will not show. Then after that, lock the DMG so that no  
one changes it.


Hope it helped!
Andre


On Sep 10, 2006, at 7:07 AM, Trevor Hopkins wrote:

After creating a standalone on the Mac, and in the process of  
bundling this app up into a .dmg image, does anyone know how to  
place graphics in the background of the window of that .dmg? I've  
seen plenty of Mac apps that I've downloaded have fancy images in  
their .dmg's but I can't see how to do this with Disk Utility.


Cheers!

Trevor Hopkins
Exeter, UK

_
Windows Live™ Messenger has arrived. Click here to download it for  
free! http://imagine-msn.com/messenger/launch80/?locale=en-gb


___
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


___
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: closeField

2006-09-10 Thread Mark Wieder
Chipp-

Saturday, September 9, 2006, 8:33:07 PM, you wrote:

> What's this + symbol thing and how does it relate to Revolution? I
> don't think I'm using it properly. Am I missing something? Thank God
> for this list, without I'd surely be lost!

Fear not, Chipp. The + symbol divides the universe into quadrants,
allowing you to classify objects as earth, air, fire, or water. Its
material manifestation is the Phillips screwdriver.

Hope this helps.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
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


runrev player, stackrunner in windows xp home

2006-09-10 Thread rand valentine
 Hi. Are there any documented limitations of the Revolution Player or
StackRunner not running in certain versions of Windows? I have a student who
is running Windows XP Home on a Sony Vaio, and who tells me he cannot run my
stacks through either the player or stackrunner -- the problem involves
playing audiofiles (mp3's) that are saved in a separate folder, and opening
pdf's that are to be "launched" from within my stack. Should this work, or
is it an os-level problem? The stacks I've built work just fine with
StackRunner on my Mac laptop running latest Tiger, as well as my Dell
Inspiron 5100 laptop running windows xp pro sp 2.

rand valentine


___
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: Characters above ASCII 255

2006-09-10 Thread Phil Davis
Actually my response may have been premature. What I said earlier is true, but 
it may not give you the outcome you're looking for.


Here's another approach that might give you the desired outcome (or at least it 
will be a learning experience):

- copy the text from a word processor that displays the text correctly
- paste the text into the Rev field
- put the htmlText of the field into another field where you can look at it.

This way you can see the HTML entity codes, language settings etc. needed to 
make the text display correctly. If you want to modify the text display in the 
first field, you can tweak the html a bit and set the htmlText of the first 
field to the tweaked html.


Maybe some of this will be useful.

Phil


Phil Davis wrote:

Hi Adrian,

Take a look in the docs at the UseUnicode property. It enables 
numToChar() to process values higher than 255.


Phil Davis


Adrian Williams wrote:

I'm having trouble accessing ASCII characters above 255
in a font that has 1200 characters. I've tried this...

  put numToChar(1378) into field "FontDisplay.txt"

but get two unwanted characters: a hollow square next to a character.
Should I be doing some kind of conversion or calling for a
Hexadecimal value or something else?

Adrian Williams
Surrey, UK

___
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: runrev player, stackrunner in windows xp home

2006-09-10 Thread Scott Rossi
Recently, rand valentine wrote:

>  Hi. Are there any documented limitations of the Revolution Player or
> StackRunner not running in certain versions of Windows? I have a student who
> is running Windows XP Home on a Sony Vaio, and who tells me he cannot run my
> stacks through either the player or stackrunner -- the problem involves
> playing audiofiles (mp3's) that are saved in a separate folder, and opening
> pdf's that are to be "launched" from within my stack.

It's possible you may be running into the path-format/long-file-name issue.
See this thread for 2 possible workarounds:

  http://lists.runrev.com/pipermail/use-revolution/2005-July/061722.html

Supposedly 2.7.3 addresses these problems but I haven't tested this myself.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.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: Characters above ASCII 255

2006-09-10 Thread Dar Scott


On Sep 10, 2006, at 1:08 PM, Adrian Williams wrote:


I'm having trouble accessing ASCII characters above 255
in a font that has 1200 characters. I've tried this...

  put numToChar(1378) into field "FontDisplay.txt"

but get two unwanted characters: a hollow square next to a character.
Should I be doing some kind of conversion or calling for a
Hexadecimal value or something else?


(Strictly speaking, ASCII characters are encoded with codes 0 through  
127.)


If property 'the useUnicode' is true, then numToChar() will generate  
16-bit values, each value being two bytes each in host order.   
Normally, this will display as two characters if put into a field as  
above.


Normally, characters are interpreted as encoded in Mac Roman on Mac  
platforms and as Latin-1 (or Windows-1252) on others.  These are  
single byte encodings that are supersets of ASCII, that is,  
characters are assigned to most codes in the range 128-255.  So,  
(normally) those two bytes are interpreted as two characters when put  
into a field on the platform specified.  This will probably display  
the symbol for "the character is not in the font" next to a "b" in  
the above case.


So, maybe you have useUnicode set to true and you are on a Mac.   
Also, since you see a box, I'd guess you are using a font that  
doesn't have a character defined for the code 5.


(There is a way to set the language of a font, but I'm not familiar  
with that approach.  Others might help.  Like Phil, I'm not too sure  
about this.)


One way to extend beyond the Mac Roman (or Latin-1) character set is  
to use Unicode encoding.  If the characters, that is, the glyphs, you  
want are specified in Unicode and there is a way to use Unicode  
encoding with the font, then this should work.  If this is a  
specialized font, maybe not.


You can create Unicode text several ways.  Here are two:  One is to  
use numToChar(0x0562) for Armenian small ben, or any other Unicode  
encoding, to build the character if you find the characters in  
Unicode (www.unicode.org/charts/).  You can '&' them together.  Or  
you can use fields on cards in a library or substack that contains  
the text you want and get the unicodeText property of the field with  
the data you need.  In either of those two cases, you can set the  
unicodeText of a field to the text you compose.


A third method is to use htmlText.  See Phil's suggestion.

Sometimes a special font uses private codes to represent special  
characters in Unicode.  The font documentation might provide that  
info, if that is what you need.


There are some enhancement suggestions in bugzilla to allow checking  
of characters in a font and to allow uniform Unicode-based  
representation of a universal set of characters.


Dar Scott
___
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