[ANN] Thumbnails Picker 1.1 released

2005-04-04 Thread Éric Chatonet
Hi everyone,
Thumbnails Picker 1.1 is available from http://www.sosmartsoftware.com/
This version includes now 4 output compression types : JPEG Auto, JPEG 
Manual, PNG and GIF (With Thumbnails Picker 1.0, only JPEG Manual was 
available.)

By drag and drop, Thumbnails Picker lets you create JPEG, PNG or GIF 
optimized thumbnails from any JPEG, PNG, GIF or BMP file.
Creation per unit, or fully automated batch processing.
JPEG quality and dimensions choice (from 20 up to 360 pixels large).
Bilingual software (English/French).
Identical appearance on all platforms.

Best regards,
Eric Chatonet.
---
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
 ---
Web site   http://www.sosmartsoftware.com/
Email   eric.chatonet AT sosmartsoftware.com/
Post   24, Bd de Port-Royal 75005 Paris
Phone   (33) 143 317 762
Mobile   (33) 620 745 086
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] #012 How-To stack: Asking password

2005-04-04 Thread Éric Chatonet
Hi everyone,
How-To stack #012: Asking password
Shows how to ask a password in a customary field.
Usually, the job is done using 2 fields, one of which is hidden.
Here a custom property stored in the field is used as a substitute for 
the usual 2nd hidden field.
This way makes it easy to copy/paste the scripted field into any stack 
where it will work immediatly :-)

On RevOnLine:
User name: So Smart Software
Category: Programming
On RevNet:
Tutorials section
To donwload RevNet, go to http://www.fourthworld.com/rev/index.html
Directly by pasting into the message box:
go url "http://www.sosmartsoftware.com/downloads/Asking%20Password.rev";
With best regards,
Eric Chatonet.
---
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
 ---
Web site   http://www.sosmartsoftware.com/
Email   eric.chatonet AT sosmartsoftware.com/
Post   24, Bd de Port-Royal 75005 Paris
Phone   (33) 143 317 762
Mobile   (33) 620 745 086
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Revolution UI Elements in Lists (was RevOnline's fingerprinting)

2005-04-04 Thread Éric Chatonet
Hi Andre,
Le 4 avr. 05, à 16:38, Andre Garzia a écrit :
This custom property probably do not appear on the default inspector
for its name begins with REV, try using an alternative prop editor like
those in altToolbar or Devolution.
Or just turn on Revolution UI Elements in Lists option in the View menu 
:-)

Best regards,
Eric Chatonet.

So Smart Software
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   eric.chatonet AT sosmartsoftware.com/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: set a prop after get url a stackfile

2005-04-03 Thread Éric Chatonet
Hi Thierry,
go invisible url 
"http://home.infostations.net/jhurley/NineBallWithSpin.rev"; -- very 
nice work :-)
put the short name of this stack
set the uTest of this stack to "Done"
save this stack -- as "xyz"
delete this stack -- memory cleanup

Le 3 avr. 05, à 18:00, thierry <[EMAIL PROTECTED]> a écrit :
As you can start a stack by this command :
get url (http://nices_stacks_from_So Smart Soft... )
open it
, i wanted to work with the customs props .
I was thinking also to do :
get url (http://nices_stacks_from_So Smart Soft... )
open invisible it

but here how do i know the name of the opened stack 
Amicalement,
Eric Chatonet.

So Smart Software
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   eric.chatonet AT sosmartsoftware.com/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re[2]: set a prop after get url a stackfile

2005-04-01 Thread Éric Chatonet
Hi Thierry, Dan and Klaus,
May be I did not understand correctly this thread :-)
But, as it was possible with HC, you can get or set any property of any 
stack "silently" i.e. without "going" to it.
For instance, try this:

  answer file "Choose any stack:"
  put the script of stack it -- that's for getting a property
  set the uPropTest of stack it to "Done" -- that's for setting a 
property
  save stack it -- as "xyz"
  delete stack it

You will see absolutly nothing ;-)
No trace in memory...
But... look at the message box and open the stack as usual to verify 
its properties...

Best regards,
Eric Chatonet.

So Smart Software
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   eric.chatonet AT sosmartsoftware.com/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: drag n drop

2005-03-31 Thread Éric Chatonet
Hi Thomas,
You might be interested by my HowTo stack #010 "How to drag and drop  
files and folders" which shows how to manage multiple files and/or  
folders drag and drop, how to know the right kind of data for each file  
and how to display the corresponding data into a field, an image or a  
player.
There is no specific cross-platform problem...
Have fun as says our friend Klaus :-)

On RevOnLine:
User name: So Smart Software
Category: Programming
On RevNet:
Tutorials section
Directly by pasting into the message box:
go url  
"http://www.sosmartsoftware.com/downloads/ 
Managing%20Drag%20and%20Drop.rev"

Le 31 mars 05, à 20:53, Thomas McGrath III <[EMAIL PROTECTED]> a  
écrit :

I want to make a standalone that will except drag n drop. I need to
know how to tell the difference between a folder, file, and application
on both Macintosh and Windows based computers.
I want the user to be able to drag anything to a standalone window and
then interpret what it is and create a short cut to it. I also want to
treat the different types differently, so I need to know what was
dropped.
Any help on both the Mac and Win approach is appreciated.
Best regards,
Eric Chatonet.

So Smart Software
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   eric.chatonet AT sosmartsoftware.com/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] Backups Picker 1.1 released

2005-03-31 Thread Éric Chatonet
Hi everyone,
Backups Picker 1.1 is available from http://www.sosmartsoftware.com/
Enhancements (as asked by some of you :-) are as follows:
1. Backups include substacks.
2. Adding the current editable top stack to the list is now easy.
3. The palette can be minimized to its title bar.
4. In the log stack list, tooltips show the size of each backup.
Backups Picker is a plugin for DreamCard/Revolution 2.x which oversees 
the progression of an unlimited number of projects and automatically 
runs incremental backups when they are modified.
It lets you define the projects that it monitors, the lapse between 
backups and the number of backups to be archived.
It's possible to reopen an archived project by using a powerful history 
tool, etc.
Bilingual help stack included (english/french).
Identical appearance on all platforms.

To upgrade, just replace the plugin and its help stack in the same 
locations.
All your settings will be kept.

Best regards,
Eric Chatonet.
---
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
 ---
Web site   http://www.sosmartsoftware.com/
Email   eric.chatonet AT sosmartsoftware.com/
Post   24, Bd de Port-Royal 75005 Paris
Phone   (33) 143 317 762
Mobile   (33) 620 745 086
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: field margins

2005-03-30 Thread Éric Chatonet
Hi Richard,
OS X - Rev 2.5.1
I tried a grid 10*10 pixels:
New table field with opaque, 3D, showFocusBorder, autoHilite and 
scrollbars set to false
borderWidth set to 1, fixedLineHeight set to true and textHeight set to 
10
Then tabstops set to "9,19" and margins set to "4,5,4,4"
This grid is perfect :-)
The tabstops trick allows to correct the width of the first column.
The margins trick allows to correct the height of the first row.
Sure that all that is a little bit odd ;-)

Best regards,
Le 30 mars 05, à 16:12, Richard Gaskin a écrit :
Ken Ray wrote:
On 3/29/05 4:07 PM, "Richard Gaskin" <[EMAIL PROTECTED]> 
wrote:
I nedd to use a field as a grid display, which generally works well 
with
one anomaly:  the left margin of the field always has a gap of about
four or five pixels.

I've tried setting the showBorder and threeD to false, and setting 
the
margins to 0,0,0,0 but still I have that gap.
That's odd... when I do what you're suggesting with a new field, the 
text in
the field is cut off by a few pixels on the left and top. Only by 
setting
the margins to 2 (or 2,2,2,2) does it hug-up to the upper left corner 
of the
field with no margin.
Sorry, should have clarified:  I have no text in the field at all.  I'm
simply using it as a lightweight grid display.
So the problem isn't about where text appears, but about the evenness 
of
the line spacing
Eric Chatonet.

So Smart Software
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   eric.chatonet AT sosmartsoftware.com/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re:

2005-03-29 Thread Éric Chatonet
Hi ton,
If your "non alphabetical order" is not an error (and I think so :-)
And assuming that series are always contiguous, you could try this:
on SortMyOddList
  local tList,tLineNo,tFirstChar,tMax
  -
  put fld "MyField" into tList
  put 1 into tLineNo
  put char 1 of tList into tFirstChar
  put the number of lines of tList into tMax
  -
  repeat with i = tLineNo to tMax
if char 1 of line i of tList <> tFirstChar then
  sort line tLineNo to (i-1) of tList numeric by word 2 of each
  put i into tLineNo
  put char 1 of line tLineNo of tList into tFirstChar
end if
  end repeat
  sort line tLineNo to tMax of tList numeric by word 2 of each
  -
  put tList into fld "MyField"
end SortMyOddList
The trick is simple but often useful: instead of 1 in the repeat 
structure (repeat with i = 1...), you use a variable that you set first 
and redefine later inside the loop. By this way you process separatly 
chunks picked in the list... and keep your "same alphabetical order" 
;-)

Best regards,
Le 29 mars 05, à 17:50, Cardona Torres<[EMAIL PROTECTED]> a écrit :
I have this in a field:
IPAE 16
IPAE 1
IPAE 7
LAG 1
JKAL 3
JKAL 11
JKAL 2
and I wish to get this (same alphabetical order, sorted numeric by
second word of each):
IPAE 1
IPAE 7
IPAE 16
LAG 1
JKAL 2
JKAL 3
JKAL 11
Eric Chatonet.

So Smart Software
 For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [ANN] #011 How-To stack: Managing user waiting

2005-03-20 Thread Éric Chatonet
Hi Alejandro,
Le 20 mars 05, à 14:38, Alejandro Tejada a écrit :
Hi Eric,
You are creating a great series of small "How-To" for this development 
platform.!!!
This is a great service for beginners and a nice organized reference 
for experienced
developers. A welcome addition would be to include references to 
similar works made
by other developers. In this way, readers can keep looking for more 
examples and
code in the topics of their interest.
Thanks for your kind feedback :-)
As for adding references to works by others developers, it sounds good 
but I don't know "how to" and I should feel awful about forgiving 
important ones: there are great contributions in this list, in MC list, 
stacks and tips on RevOnLine, Revnet, on the web sites of most of the 
great contributors to this list and so on.
May be someone knowing most sources available better than me would be 
kind enough to post such a "sources" guide (could be a stack with 
arranged links).
It should be very appreciated by beginners and all of us :-)

By the way, i noticed that you mentioned that animated gif could not 
be resized.
Here is one way to do it:
From:
http://lists.runrev.com/pipermail/metacard/2003-February/004158.html
You are perfectly right and thanks for this tip.
In my mind I just wanted to warn beginners that they could not resize 
an animated gif directly as they can do it with a single frame image.
Nice spring sunday in Paris,
Best regards,

Eric Chatonet.

So Smart Software
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] #011 How-To stack: Managing user waiting

2005-03-18 Thread Éric Chatonet
Hi everyone,
#011 Managing user waiting (specially dedicated to beginners)
Shows the different ways of indicating to the user that he has to wait 
a moment: static cursors, animated cursors, animated gifs, progression 
bars and how to use them.

On RevOnLine:
User name: So Smart Software
Category: Programming
On RevNet:
Tutorials section
To donwload RevNet, go to http://www.fourthworld.com/rev/index.html
Directly by pasting into the message box:
go url 
"http://www.sosmartsoftware.com/downloads/Managing%20Waitings.rev";

Have a nice day,
With best regards,
Eric Chatonet.
---
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
 ---
Web site   http://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Post   24, Bd de Port-Royal 75005 Paris
Phone   (33) 143 317 762
Mobile   (33) 620 745 086
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Checking the disabled of a menu item

2005-03-16 Thread Éric Chatonet
Hi Graham,
Le 16 mars 05, à 00:28, Graham Samuel a écrit :
put Menuitem 1 of menu "File" of group "Main_Menu" of cd "Store" of
stack "Main_Display"
Anyway how do people generally check the disabled status of menu items?
put char 1 of line 1 of btn "File" of group "Main_Menu" of cd "Store" \
of stack "Main_Display" = "(" into tDisabledStatus
tDisabledStatus variable will contain a boolean value (true or false).
Or build a more generic function:
if IsDisabled(1,the long ID of btn "File" of group "Main_Menu" \
of cd "Store" of stack "Main_Display") then etc.
function IsDisabled pLineNo,pMenuButton
  do "return char 1 of line pLineNo of" && pMenuButton && "= 
numToChar(40)"
end IsDisabled

You might be interested in checking my "#008 How to build a menu on the 
fly" stack available from revOnline or Revnet.

Best regards,
Eric Chatonet.

So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] Four new plugins available from So Smart Software

2005-03-14 Thread Éric Chatonet
Hello everyone,
So Smart Software has the pleasure of announcing the availability of 
four new freeware plugins/utilities for DreamCard/Revolution that you 
can download from now on:

Backups Picker 1.0 - Project security plugin
Backups Picker oversees the progression of an unlimited number of 
projects and automatically runs incremental backups when they are 
modified.
It lets you define the projects that it monitors, the lapse between 
backups and the number of backups to be archived.
It's possible to reopen an archived project by using a powerful history 
tool, etc.

Stacks Picker 1.0 - Working environment plugin
With just one mouse-click, Stacks Picker lets you open, close, start 
using, etc. any number of stacks organized in sets.
For each stack, you get the choice between pending, opening, starting 
using, automatically or manually, etc.
Exclusion or accumulation of the sets between them and launching at 
startup options.

Thumbnails Picker 1.0 - Images processing utility
By drag and drop, Thumbnails Picker lets you create JPEG optimized 
thumbnails from any PNG, GIF, BMP or JPEG file.
Creation per unit or fully automated batch processing.
JPEG quality and dimensions choice (from 20 up to 360 pixels large).

ASCII Picker 1.0 - ASCII utility
ASCII Picker lets you visualize all ASCII codes from 33 to 255 in all 
available fonts and from 10 to 20 points font sizes.
Non visualizable codes reminder.
Automatic display by typing a char or a code on the keyboard.

For further details, screenshots and downloads, please visit 
http://www.sosmartsoftware.com/

Best regards and forgive my bad english :-)
Eric Chatonet.
---
So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
---
Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0) 143 317 762
Mobile  33 (0) 620 745 086
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] Rev 2.5.1 Documentation Enhancer now available

2005-03-11 Thread Éric Chatonet
Hi everyone,
As you know it, only the last visited topic in the Topics, Objects or 
Bookmarks sections of the Revolution Documentation is displayed when 
opening again the docs.
But other previous consultings and all of them in the dictionnary 
section are lost :-(
So I wrote an "enhancer" which adds a check box labeled "Remember my 
navigation" at the bottom of the "Getting started" card of the docs.
When this box is checked, the last visited topic in the dictionnary 
section is automatically displayed when opening this section again.
In addition, the ten last visited topics - in any section and even 
between 2 sessions - stay available in the "back" pop up menu.
When the box is unchecked, Rev documentation behaves strictly as it 
usually does.

Check your version:
For Rev 2.5.1:
go url "http://www.sosmartsoftware.com/downloads/DocsPatch251.rev";
For Rev 2.5, the patch I posted lately (less sophisticated since you 
can't turn the feature on or off) is always available:
go url "http://www.sosmartsoftware.com/downloads/Docs%20Patch.rev";

Both stacks perform in same way by adding some additional props in the 
Rev Preferences stack.
Both stacks have been tested on Mac OS X and Win XP.
The cantModify of the documentation stack is of course preserved.
To ensure your security , enhancers save your current docs before 
installing.

Best regards,
Eric Chatonet.

So Smart Software
Find smart plugins for DreamCard/Revolution on 
http://www.sosmartsoftware.com/
Email		[EMAIL PROTECTED]/
Phone		33 (0)1 43 31 77 62
Mobile		33 (0)6 20 74 50 86


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


2 new "How-to" stacks available

2005-03-07 Thread Éric Chatonet
Hi everyone,
I put 2 new "How-to" stacks on RevOnLine and Super RevOnLine (i.e. 
RevNet from Richard Gaskin :-):

#009 How to fix the decorations (titlebar appearance)
Shows all the different title bars a window can display with Rev 2.1 or 
later. In the Stack Property Inspector, a dialog lets you choose 
between 4 sets of title bar controls but 4 interesting combinations are 
absent: you will have a better control by scripting!

#010 How to drag and drop files and folders
Shows how to manage multiple files and/or folders drag and drop, how to 
know the right kind of data for each file and how to display 
corresponding data into a field, an image or a player.

On RevOnLine:
User name: So Smart Software
Category: Programming
On RevNet:
Tutorials section
To donwload RevNet, go to http://www.fourthworld.com/rev/index.html
With best regards,
Eric Chatonet.
---
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
 ---
Web site   http://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Post   24, Bd de Port-Royal 75005 Paris
Phone   (33) 143 317 762
Mobile   (33) 620 745 086
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Identifying the caller

2005-03-07 Thread Éric Chatonet
Hi Graham,
Le 7 mars 05, à 09:04, graham samuel <[EMAIL PROTECTED]> a écrit 
:

Folks, I really should know this by now, but when a handler is called,
can its script identify its caller and if so how? I guess there is some
context description available but I don't know how to find it in the
docs. And while we're at it, what if the invocation of the handler is
the result of a "send", e.g.
send "mouseUp" to myMouseUpHandler
Can I tell from within the handler that it wasn't a true mouse click
that invoked it, and if so how?
Obviously the engine does know this information - it's just a question
of if and how it's made available to the developer.
In order to know if a button received a true mouse click or not, I add 
a boolean parameter when the message is sent by script:

send "mouseUp true" to btn "My Button"
and in the script of the button:
on mouseUp pFlag
  if pFlag then -- sent message
  else -- true mouse click
Amicalement,
Eric Chatonet.

So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Revolution Documentation patch

2005-03-04 Thread Éric Chatonet
Hi everyone,
Since a long time Rev 2.5 documentation behaviour got on my nerves:
You search for a topic; you close the docs and then you reopen the 
docs... since there is a tiny point you want to verify :-)
And... The docs display the first dictionary entry and all the topics 
you searched for previously are lost :-(

So I wrote a little patch in order to remember the last 10 visited 
topics (even between 2 sessions) and to allow the docs displaying the 
last visited topic when you open it again.
Just copy the following line into the message box and hit return to 
display the patch stack:

go url "http://www.sosmartsoftware.com/downloads/Docs%20Patch.rev";
Best regards,
Eric Chatonet.

So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text menu and tools menu in standalone

2005-03-03 Thread Éric Chatonet
Hi Kresten,
Le 3 mars 05, à 18:00, Kresten Bjerg <[EMAIL PROTECTED]> a écrit :
I have suceeded in installing the 7 first items of the UI text menu
(from rev.menubar), but cant find my way to constructing/hacking the
submenus for font, size and color. What is the trick?  Especially color
is of interest. A tools menu with paint and draw tools is another
problem. How do I get that, so it can work in a standalone?
Have a look at the revSetupText handler in revMenubar card.
For further informations download a "How To" stack I posted today on 
RevOnLine :-)
User name: So Smart Software
Category: Programming
Name: #008 How to build a menu on the fly

Best regards,
Eric Chatonet.

So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


New "How To" stack: #008 How to build a menu on the fly

2005-03-03 Thread Éric Chatonet
Hi everyone,
I put a new "How to" stack on RevOnLine:
This stack shows how to build on the fly a pulldown menu with sub-menus 
from an outline of invariant elements stored into a custom property.
Then how to add contextual items, checkmark, disable, etc.
Finally how to respond to the user actions: choosing a menu item, using 
a keyboard shortcut, etc.

User name: So Smart Software
Category: Programming
Name: #008 How to build a menu on the fly
With best regards,
Eric Chatonet.
---
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
 ---
Web site   http://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Post   24, Bd de Port-Royal 75005 Paris
Phone   (33) 143 317 762
Mobile   (33) 620 745 086
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re : scale w/ ticks and snap-to

2005-03-02 Thread Éric Chatonet
Hi Richard, Paul and Ken,
In my last post, point 3 was nonsense ;-)
3. In the scrollbarDrag handler, I prefer set the thumbPos of me to 
round(the thumbPos of me) to set the thumbPos of me to the thumbPos of 
me:
Using round function allows the cursor to follow exactly the mouse 
movement and snap gently at mouseUp
Without round function,  the cursor snaps when the mouse is down (it 
always wins this terrific struggle...) and I don't like interface 
elements that don't obey to the user (i.e. me  :-)
In fact, you are right: using the round function is unnecessary.
The difference is that you use set the thumbPos of me to the thumbPos 
of me in a scrollbarDrag handler and I use it in the mouseUp handler.
So the cursor follows exactly the mouse movement and snap gently at 
mouseUp or snaps when scrollbarDragging...

Best regards,
Le 2 mars 05, à 16:22, Richard Gaskin <[EMAIL PROTECTED]> a 
écrit :

Éric Chatonet wrote:
I proposed a little script to manage a scrollbar with snap-to behavior
so the indicator lines up with the ticks (displayed with Mac OS).
In fact, my script (changing the numberFormat property) was too much
complicated.
The following code is enough to do the job:
on scrollbarDrag pPos
  set the pageInc of me to the endValue of me / (the endValue of me + 
1)
end scrollbarDrag

on mouseUp
  set the thumbPos of me to round(the thumbPos of me)
end mouseUp
The behavior seems to work the same here for me with a script 
containing
only:

on mouseUp
   set the thumbPos of me to the thumbpos of me
end mouseUp
Since the thumbpos is an integer, it does the post-drag snap-to.  I had
hoped to find a snap-as-you-go behavior, and I've gotten close but it's
still a tad jerky (if only we had a preScrollBarDrag message ).
But here's where things get freaky - try this at home:
1. Make a new mainstack
2. Drop a scale onto it
3. Set these properties:
  startValue: 1
  endValue:   5
  pageInc:1
  lineInc:0
  thumbsize:  1
Freak-o-rama:  I see a slider with 4 (count 'em, four!) tick marks.
With a scale of 1 to 5, I would expect 5.
Ultra-freak-o-rama:  Éric's has the same properties set just like mine,
but his has 5 (count 'em, five!) tick marks.
Works the same in Rev and MC.
The mystery deepens: I can copy Éric's, change the endValue to 6, and
get 6 tick marks.  But if I change the endValue to 4 I get 3 tick 
marks.

How comes such to be?  :\
You can examine both scrollbars here:
   go url "http://fourthworld.net/scroll_bar_test.mc";
Paul Looney, Ken Ray, and I have scratched our heads over this today.
Mystified?
It turns out that while Eric's first handler doesn't affect behavior, 
it
does affect appearance.  This bit:

  on scrollbarDrag pPos
   set the pageInc of me to the endValue of me/(the endValue of me +1)
  end scrollbarDrag
...apparently takes care of a bug in the engine.  As soon as you scroll
it you get the tick marks appearing as you would expect.  Apparently
this continues to work even with that handler disabled until the next
time the pageInc or thumbSize is set.
I could't find a Bugzilla report for this, so I just filed one:
<http://support.runrev.com/bugdatabase/show_bug.cgi?id=2644>
Freaky, but at least there's a workaround.
Thanks, Éric.
Amicalement,
Eric Chatonet.

So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re : scale w/ ticks and snap-to

2005-03-02 Thread Éric Chatonet
Hi Richard, Paul and Ken,
I would add some points to your today enjoyment about scrollbars ;-)
1. It is a Mac OS issue since there are no ticks on Windows 
scrollbars... (I love ergonomics!)
2. You are right, the workaround does work from 4 to 15,  but not for 
2, 3 or more than 15!
3. In the scrollbarDrag handler, I prefer set the thumbPos of me to 
round(the thumbPos of me) to set the thumbPos of me to the thumbPos of 
me:
Using round function allows the cursor to follow exactly the mouse 
movement and snap gently at mouseUp
Without round function,  the cursor snaps when the mouse is down (it 
always wins this terrific struggle...) and I don't like interface 
elements that don't obey to the user (i.e. me  :-)
That's with OS X, I don't test it with Win32.
Thanks for bugzilla this irritating feature.

Best regards,
Le 2 mars 05, à 16:22, Richard Gaskin <[EMAIL PROTECTED]> a 
écrit :

Éric Chatonet wrote:
I proposed a little script to manage a scrollbar with snap-to behavior
so the indicator lines up with the ticks (displayed with Mac OS).
In fact, my script (changing the numberFormat property) was too much
complicated.
The following code is enough to do the job:
on scrollbarDrag pPos
  set the pageInc of me to the endValue of me / (the endValue of me + 
1)
end scrollbarDrag

on mouseUp
  set the thumbPos of me to round(the thumbPos of me)
end mouseUp
The behavior seems to work the same here for me with a script 
containing
only:

on mouseUp
   set the thumbPos of me to the thumbpos of me
end mouseUp
Since the thumbpos is an integer, it does the post-drag snap-to.  I had
hoped to find a snap-as-you-go behavior, and I've gotten close but it's
still a tad jerky (if only we had a preScrollBarDrag message ).
But here's where things get freaky - try this at home:
1. Make a new mainstack
2. Drop a scale onto it
3. Set these properties:
  startValue: 1
  endValue:   5
  pageInc:1
  lineInc:0
  thumbsize:  1
Freak-o-rama:  I see a slider with 4 (count 'em, four!) tick marks.
With a scale of 1 to 5, I would expect 5.
Ultra-freak-o-rama:  Éric's has the same properties set just like mine,
but his has 5 (count 'em, five!) tick marks.
Works the same in Rev and MC.
The mystery deepens: I can copy Éric's, change the endValue to 6, and
get 6 tick marks.  But if I change the endValue to 4 I get 3 tick 
marks.

How comes such to be?  :\
You can examine both scrollbars here:
   go url "http://fourthworld.net/scroll_bar_test.mc";
Paul Looney, Ken Ray, and I have scratched our heads over this today.
Mystified?
It turns out that while Eric's first handler doesn't affect behavior, 
it
does affect appearance.  This bit:

  on scrollbarDrag pPos
   set the pageInc of me to the endValue of me/(the endValue of me +1)
  end scrollbarDrag
...apparently takes care of a bug in the engine.  As soon as you scroll
it you get the tick marks appearing as you would expect.  Apparently
this continues to work even with that handler disabled until the next
time the pageInc or thumbSize is set.
I could't find a Bugzilla report for this, so I just filed one:
<http://support.runrev.com/bugdatabase/show_bug.cgi?id=2644>
Freaky, but at least there's a workaround.
Thanks, Éric.
Amicalement,
Eric Chatonet.

So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re : scale w/ ticks and snap-to

2005-02-28 Thread Éric Chatonet
Hi,
I'm sorry, I said something stupid yesterday and I do apologize :-)
I proposed a little script to manage a scrollbar with snap-to behavior 
so the indicator lines up with the ticks (displayed with Mac OS).
In fact, my script (changing the numberFormat property) was too much 
complicated.
The following code is enough to do the job:

on scrollbarDrag pPos
  set the pageInc of me to the endValue of me / (the endValue of me + 1)
end scrollbarDrag

on mouseUp
  set the thumbPos of me to round(the thumbPos of me)
end mouseUp
I updated the little How To stack on RevOnLine.
Regards,
Eric Chatonet.

So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


ANN: How to stack #007 (managing "Snap to" scrollbars )

2005-02-27 Thread Éric Chatonet
Hi everyone,
After the thread you might have followed, I found the subject 
interesting: so, I put a little stack on RevOnLine  :-)

This stack shows how to manage a scrollbar with a snap-to behavior (so 
indicator lines up with the ticks)

User name: So Smart Software
Category: Programming
Name: #007 How to manage "Snap to" scrollbars
With best regards,
Eric Chatonet.
---
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
 ---
Web site   http://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Post   24, Bd de Port-Royal 75005 Paris
Phone   (33) 143 317 762
Mobile   (33) 620 745 086
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: scale w/ ticks and snap-to

2005-02-27 Thread Éric Chatonet
Hi Richard,
Le 27 févr. 05, à 10:18, Richard Gaskin <[EMAIL PROTECTED]> a 
écrit :

I'd like to have a scale in a range from 1 to 5 with 5 ticks on it, and
with snap-to behavior so this indicator will line up with the ticks.
I made a little mistake in my previous post I think you rectified :-)
startValue must be 1
I take advantage to post a more generic code:
just fix the startValue to 1 and the endValue to the range you desire 
and:

on scrollbarDrag pPos
  set the numberFormat of me to "#"
  set the pageInc of me to the endValue of me / (the endValue of me + 1)
end scrollbarDrag
on mouseUp
  set the numberFormat of me to ".#"
  set the thumbPos of me to round(the thumbPos of me)
end mouseUp
Note that (here with Rev 2.5 and Mac OS X) correct display can't be got 
with some end values as 2, 3, 15 and more than 30.
I figure it's a bug :-(

Regards,
Eric Chatonet.

So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: scale w/ ticks and snap-to

2005-02-27 Thread Éric Chatonet
Hi Richard,
Le 27 févr. 05, à 10:18, Richard Gaskin <[EMAIL PROTECTED]> a 
écrit :

I'd like to have a scale in a range from 1 to 5 with 5 ticks on it, and
with snap-to behavior so this indicator will line up with the ticks.
Scrollbar's properties:
startValue: 0
endValue: 5
showValue: true
and:
on scrollbarDrag pPos
  set the numberFormat of me to "#"
  set the pageInc of me to "0.8"
end scrollbarDrag
on mouseUp
  set the numberFormat of me to ".###"
  set the thumbPos of me to round(the thumbPos of me mod 10)
end mouseUp
Hope this helps.
Regards,
Eric Chatonet.

So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


New "How To" stack: #006 How to manage contextual tooltips on the fly

2005-02-25 Thread Éric Chatonet
Hi everyone,
I put a new stack on RevOnLine:
This stack shows how to manage contextual tooltips. The first example 
shows how to change the tooltip of a check box according to its hilite.
The second one shows how to display tooltips within a field depending 
on the location of the mouse (columns, lines), the field contents, etc.

User name: So Smart Software
Category: Programming
Name: #006 How to manage contextual tooltips on the fly
With best regards,
Eric Chatonet.
---
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
 ---
Web site   http://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Post   24, Bd de Port-Royal 75005 Paris
Phone   (33) 143 317 762
Mobile   (33) 620 745 086
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: use-revolution Digest, Vol 17, Issue 72

2005-02-23 Thread Éric Chatonet
Hi Byron,
Le 23 févr. 05, à 11:07, Byron Turner <[EMAIL PROTECTED]> a écrit :
I've been experimenting drag and drop images (eric chatonet's wonderful
demo).  When I drag an image in, clips a portion of any window that's
open over the image area or a portion of the Rev window where the image
resides.  These bits are added to the image as if they were always a
unit.  I saw nothing in this regards at bugzilla so does anyone know if
its even possible to have an error like this in the script?
The method used in this stack to create optimized images uses export 
snapshot command... that exports a snapshot of the screen from the rect 
of an image.
Other windows may overlap the image and then appear on the snapshot :-(
That's a correct behaviour: see export snapshot command in the docs.
Sure you can watch easily for other rev windows overlapping the image 
and smoothly move them first.
For desktop and other apps windows, I think using shell commands would 
be doable to mask them first and show them again when the process is 
finished but I don't know which ones.
I'm sure there are revers on this list who will tell us the trick :-)

Bets regards,
Eric Chatonet.

So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


New "How To" stack: Drag and drop images (discussing different ways to store images)

2005-02-21 Thread Éric Chatonet
Hi everyone,
I put a new stack on RevOnLine:
This stack shows how to import an image by drag and drop and discusses 
about the advantages and the drawbacks of 3 methods for storing an 
image: by referencing to the original file, by storing compressed image 
data into the stack and by referencing to a new optimized file created 
on the fly.

User name: So Smart Software
Category: Programming
Name: #005 How to drag and drop images (discussing different ways to 
store images)

Hope you will enjoy!
With best regards,
Eric Chatonet.
---
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
 ---
Web site   http://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Post   24, Bd de Port-Royal 75005 Paris
Phone   (33) 143 317 762
Mobile   (33) 620 745 086
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


New "How to" stack on RevOnLine

2005-02-18 Thread Éric Chatonet
Hi everyone,
I put on RevOnLine a new stack in the "How to" collection that might 
interest some of you:

#004 How to manage HTML lists on the fly
This "so smart" draft stack shows how to build on the fly a graphic 
list of values with HTML, to display it into a list field and provides 
some additional tricks to hide and fetch the right information.

User name: So Smart Software
Category: Programming
Hope you will enjoy!
With best regards,
Eric Chatonet.
---
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
 ---
Web site   http://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Post   24, Bd de Port-Royal 75005 Paris
Phone   (33) 143 317 762
Mobile   (33) 620 745 086
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Typing foreign characters in RunRev

2005-02-14 Thread Éric Chatonet
Hi Frank,
Le 14 févr. 05, à 18:00, Frank Leahy <[EMAIL PROTECTED]> a écrit :
I'm curious what our German, French and Portuguese Revers do.. Can you
type accents and umlauts into Rev fields?  What happens if you use a US
keyboard instead of a German/French/Portuguese keyboard, can you still
type them?
The keyboards work differently according to the language and the keys 
are not the same in each language (I am telling about hardware).
When a language uses often accentuated vowels, umlauts or tilde, the 
corresponding keyboard offers the right keys without any combination.
You can get them too on any keyboard but you have to know how to get 
them and it's often a little tricky.
If you don't count unicode languages, you can find more than 30 
different "standard" keyboards...
For instance the first keys are "azerty" in French, "qwerz" in German 
and "qwerty" in English...
Imagine what happens for the other keys: "]" in english is  "+" in 
German, "$" in French and Italian, a key combination in Spanish and 
Portuguese (but not the same:  "`" and "´"), etc.
Then, if you are using Mac OS X, activate the languages you want in the 
international preferences panel, ask for displaying the corresponding 
menu into the menubar and open the keyboard utility : you will able to 
test all the keyboards you desire :-)
I never find such an utility in the Windows environment...

Amicalement,
Eric Chatonet.

So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


"How to" stacks on revOnLine

2005-02-10 Thread Éric Chatonet
Hi everyone,
I put on revOnLine 3 stacks that begin a collection of "How to" stacks:
#001 How to magnify images and only images
Shows how to install a variation of the magnifying glass provided with 
my Guides Picker plugin in order to magnify all images in a stack but 
images only...

#002 How to change card dimensions
Shows how to change smoothly the dimensions of any card as in the rev 
property palette.
You can choose the new width, the new height anf the transition delay.

#003 How to install brushed metal appearance on any platform
Creates a new stack with metal appearance, resizing and drag anywhere 
on MacOS, Windows or Linux.
Then it's your turn :-)

User name: So Smart Software
Category: Programming
Hope you will enjoy!
More to come...
With best regards,
Eric Chatonet.
---
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
 ---
Web site   http://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Post   24, Bd de Port-Royal 75005 Paris
Phone   (33) 143 317 762
Mobile   (33) 620 745 086
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Listing all files on a ftp server

2005-02-05 Thread Éric Chatonet
Hi,
I saw a few days ago questions and right answers about a script that 
would look at 1 directory and provide a complete hierarchial list of 
all files within all folders and subfolders.
Here is a complementary function for tracking all files within all 
folders and subfolders on a FTP server.
I did not test it yet on windows nor Linux but it works fine with OS X.
So:

put word 1 to -1 of AllFilesOnServer("/www/") -- any folder on the 
server finishing by a slash
-
function AllFilesOnServer pStartDir
  local tUserName,tPassword,tServer,tPort,tUrl,tDirectories,tDir, 
tFoldersList, tFilesList, tOtherFilesList
  -
  put fld "FTPUserName" into tUserName -- from user prefs
  put fld "FTPPassword" into tPassword -- from user prefs
  put fld "FTPServerAddress" into tServer -- from user prefs
  put fld "FTPPort" into tPort -- from user prefs
  if tPort = empty then put 21 into tPort
  -
  replace numToChar(13) with empty in pStartDir -- important
  put "ftp://"; & tUserName & colon & tPassword & "@" & tServer & colon 
& tPort & pStartDir into tUrl
  if the platform = "MacOS" then put isotoMac(URL tUrl) into 
tDirectories
  else put URL tUrl into tDirectories
  -
  if the result = empty then
sort tDirectories
replace numToChar(13) with empty in tDirectories
-
repeat for each line tDir in tDirectories
  set cursor to busy
  if "." is not in tDir then put pStartDir & FormatAsFolder(tDir) & 
cr after tFoldersList -- ∆
  else put pStartDir & tDir & cr after tFilesList
  -- assuming that all files have an extension (.php, .gif, etc.)
  -- if not sure, use a try structure instead
end repeat
-
if tFoldersList <> empty then
  delete last char of tFoldersList
  repeat for each line tFolder in tFoldersList
put AllFilesOnServer(tFolder) into tList -- recursion
if tList <> empty then put tList after tOtherFilesList
  end repeat
end if
return tFilesList & tOtherFilesList
  else return the result -- error
end AllFilesOnServer

function FormatAsFolder pPath
  if last char of pPath <> slash then return pPath & slash
  return pPath
end FormatAsFolder

Amicalement,
Eric Chatonet.

So Smart Software
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev 2.5 on WinXP: Issues with multiple monitors

2005-02-05 Thread Éric Chatonet
Le 5 févr. 05, à 15:00, Alex Tweedly <[EMAIL PROTECTED]> a écrit :
Perhaps a right-click menu item in the app browser could be used to
move a window to the primary screen.  (Or when Revolution figure out
multiple monitors, to the closest one.)
That would be a good idea - though in this case, the problem was the
Documentation window, so it wouldn't be available in the app browser.
When View>Revolution UI Elements in Lists menu item stays 
uncheckmarked, all stacks whose names begin by "rev" are not shown.
So, checkmark this menu item and search for the stack named "revdocs" 
in the app browser list.
With rev IDE stacks, most of labels and names are different :-)
Hope this helps.

With best regards,
Eric Chatonet.

So Smart Software
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Announcement: SIX PLUGINS for Revolution 2.x. and more to come

2005-02-03 Thread Éric Chatonet
Hi everyone,
I am happy to announce I have released 6 sophisticated  
plugins/utilities for Revolution 2.x.

All are supplied with a bilingual (English/French) help stack and have  
been optimized for Mac OS X and Windows XP.
Most of them are offered free of charge.
With an amazing look and smart functions:

- Color Picker lets you easily pick up, manage, store and apply colors  
and color sets to objects.
- Guides Picker provides intelligent on-screen guides and a “weaver  
lens” (magnifying glass) to help you build sophisticated interfaces  
easily.
- Encoded Text Picker translates plain vanilla ASCII text from/into  
HTML and/or URLEncode with smart additional features.
- Message Box Picker enhances the Rev message box.
- Navigation Picker provides easy navigation and card management.
- Objects Picker lets you edit all the properties/scripts of the  
objects within your project with one click and perform dozens of  
powerful actions.

Other are in the works: Report Picker, Windows Picker, Backups Picker...
For further details, screenshots and downloads, please visit  
http://www.sosmartsoftware.com/

With friendly greetings,
Eric Chatonet
 

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
 

Web site		http://www.sosmartsoftware.com/
Email		[EMAIL PROTECTED]/
Phone		33 (0)1 43 31 77 62
Mobile		33 (0)6 20 74 50 86
 


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text box entery

2005-01-29 Thread Éric Chatonet
Le 29 janv. 05, à 04:29, Paul Salyers <[EMAIL PROTECTED]> a écrit :
However now I need to learn how to input characters in a text box, this
text box will always 6 characters alpha-numerals then after the 6th
characters is typed in I want it to auto continue (pressing of the 
enter
key) without the user doing anything.

NO non alpha-numerals will be used. This is not a password so blocking 
the
characters from showing is not needed.
In the script of your field:
on rawKeyDown pKey
  switch
  case the number of chars of me = 6
enterKey -- ∆
break
  case pKey = 65288 -- delete key
  case (pKey >= 65429) and (pKey <= 65438) -- numbers
  case (pKey >= 65456) and (pKey <= 65465) -- numbers with shiftKey
  case (pKey >= 65) and (pKey <= 90) -- lower case
  case (pKey >= 97) and (pKey <= 122) -- upper case
pass rawKeyDown
break
  default
beep
  end switch
end rawKeyDown

on enterKey
  -- your statements
end enterKey
Hope this helps,
Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Random #'s

2005-01-27 Thread Éric Chatonet
Hi Dwayne,
put GenerateRandom(6,10) -- the right parameters in your case
function GenerateRandom pHowMuchNumbers,pRange
  local tRangeList
  -
  repeat until the number of lines of tRangeList = pHowMuchNumbers
set the randomSeed to random(10)
put random(pRange) into pNum
if pNum is not among the lines of tRangeList then put pNum & cr 
after tRangeList
  end repeat
  delete char -1 of tRangeList
  return tRangeList
end GenerateRandom

Hope this helps.
Le 27 janv. 05, à 11:34, "D.Rothe" <[EMAIL PROTECTED]> a écrit :
Hi All,
I am using the following code to generate a field of 6 random numbers.
repeat 5 times --generate list of 5 random numbers between 1-10
put random(10) & "," after tRnum
end repeat
delete last char of tRnum --delete last comma
put tRnum into fld "numbers"
this works fine but some numbers are repeated in the field, e.g 
(1,2,3,1,5)
How can I include only unique numbers?

Cheers..Dwayne
Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rinaldi's fullFind equivalent for Revolution?

2005-01-13 Thread Éric Chatonet
On Wed, 12 Jan 2005, Tim MacKenzie <[EMAIL PROTECTED]> wrote:
I am a long-time Hypercard user and use Rinaldi's fullFind XFCN
extensively. I am new to Revolution and would like to know if there is
any equivalent function or command for Revolution?
Thanks for any help.
- Tim MacKenzie
University of Tennessee, Knoxville, TN
[EMAIL PROTECTED]
Frederic told me a few months ago that he was working on some scripting 
equivalent to his externals as FullFind and was stunned by Rev speed 
versus Pascal code.
He released yet FullSort 4.5.2 as a Rev script 
(http://www.xcmdfactory.com/)
Be patient :-( or script it by yourself :-)

Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: finding in script

2005-01-03 Thread Éric Chatonet
Le 2 janv. 05, à 18:00, Ernst M. Reicher a écrit :
Hi,
as an unexperienced hobby programmer I often have to seach in scripts 
and
doesn´t really know where in the stack(s).

Using HC there was a basic command called searchscript - worked perfect
Then using MC I modified the HC thing and it worked pretty.
At first trial my modification didn´t work in Rev so I tried to use the
built in searchdialog.
By default it searches in name, script and text - DONT DO THAT - if 
you have
a big stack it will last for hours!

Only checking "script" works satisfactory and it lists the 
searchresults
although it lists repetitions and therefore the list could get long...

But then you have to go to each founditem manually by opening the
application browser and so on.
Just double click into the list to display the script of the selected 
object :-)

Is that called comfortable programming
Yes :-)
Have a good time with Rev during the whole new year!
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Disabled submenu items on Win XP

2004-12-22 Thread Éric Chatonet
Hi all,
Some weeks ago, I asked for a question about disabled menu items but I 
probably was not clear enough and I got no answer.
So:
Imagine a menu with submenus.
For somes reasons depending on the context, the first item in a submenu 
has to be disabled but the following ones in the submenu are enabled.
On Mac OS, there is no problem: so long you are in the menu area, 
flying over enabled or disabled menu items makes no difference and the 
menu stays.
On Windows, if the first submenu item is disabled, you cant catch the 
following enabled submenu items: the menu vanishes :-(
Is that correct behavior according to some guide lines I dont know on 
Windows or is it a kind (...) of bug ?
Any clue would be appreciated,
Thanks,

Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89


Amicalement,

Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Disabled submenu items on Win XP

2004-12-16 Thread Éric Chatonet
Le 16 déc. 04, à 18:01, <[EMAIL PROTECTED]> a écrit :
Bonjour Eric,
just as an example, look in revolution menu,
The Text Menu.
if you don't select any text, everything is disabled, from all
the items of the menu to all the sub-items ( like the Fonts )...
This is normal behavior on Windows, well at least on my computer :-)
or do I miss something more subtle ?
May be ;-)
I am talking about an ENABLED menu item which has a submenu.
In this submenu, the first submenu item is disabled and all followings 
submenu items are enabled:
But you cant catch any one of these enabled submenu items on Win32 
because the whole menu just vanishes when the mouse is flying over the 
first disabled submenu item:

enabled menu item 1
enabled menu item 2
DISABLED submenu item 21
enabled submenu item 22
enabled submenu item 23
enabled menu item 3
etc.
With Rev Win32, you are not able to select submenu item 22 or 23 :-(
On Mac OS X, no problem :-)
Any idea?
HTH, thierry
ÉC> For somes reasons depending on the context, the first item in a 
submenu
ÉC> has to be disabled but the following ones in the submenu are 
enabled.
ÉC> On Mac OS, there is no problem: so long you are in the menu area,
ÉC> flying over enabled or disabled menu items makes no difference and 
the
ÉC> menu stays.
ÉC> On Windows, if the first submenu item is disabled, you cant catch 
the
ÉC> following enabled submenu items: the menu vanishes :-(
ÉC> Is that correct behavior according to some guide lines I dont know 
on
ÉC> Windows or is it a kind (...) of bug ?

Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Disabled submenu items on Win XP

2004-12-16 Thread Éric Chatonet
Hi all,
Some weeks ago, I asked for a question about disabled menu items but I 
probably was not clear enough and I got no answer.
So:
Imagine a menu with submenus.
For somes reasons depending on the context, the first item in a submenu 
has to be disabled but the following ones in the submenu are enabled.
On Mac OS, there is no problem: so long you are in the menu area, 
flying over enabled or disabled menu items makes no difference and the 
menu stays.
On Windows, if the first submenu item is disabled, you cant catch the 
following enabled submenu items: the menu vanishes :-(
Is that correct behavior according to some guide lines I dont know on 
Windows or is it a kind (...) of bug ?
Any clue would be appreciated,
Thanks,

Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 
89___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Locked by modal windows (was : Dialog Box Tutorial)

2004-11-02 Thread Éric Chatonet
Hi Frank and Andre,
When you are locked with a modal window without close button,
just use the contextual menu and change stack's mode to topLevel ;-)
Le 2 nov. 04, à 15:29,  <[EMAIL PROTECTED]> a écrit :
You can also just issue a "sheet" command, but either way, remember a
close button.  I did myself in a couple times already by forgetting
this, it can be quite nasty if you forget one and haven't saved your
hundreds of lines of newly written code ;-)

X, fiddle with modal ... as sheet command, it's pretty cool! remember
to create a button to close your dialog (modal window) or you'll be
locked.

Amicalement,
Éric Chatonet
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Behavior of pop-up menus MacOS versus Win 32

2004-10-26 Thread Éric Chatonet
Hi all,
I wrote a project with Mac OSX and Rev 2.5.
There are some pop-up menus with sub menus.
Sub items can be enabled or disabled.
With Mac OSX, no problem.
Optimizing now this project for Win 32 (rev 2.5 & XP), I found that it 
is impossible to select an enabled sub menu item if the first sub menu 
item (or more) is disabled: the menu vanishes before you can catch 
anything ;-(
I wonder that!
Thanks for your opinions.

Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Seems a bit silly...

2004-10-08 Thread Éric Chatonet
Le 8 oct. 04, à 11:31, "Frank D. Engel, Jr." <[EMAIL PROTECTED]> a 
écrit :

Should this, or should it not, be valid Transcript code for a
preOpenStack handler in a stack script:
if the target is the first card of me then
Upon execution, that code results in the complaint:
Chunk: source is not a container
So I try this:
if the name of the target is the name of the first card of me then
Which is accepted; however, this is in a main stack; opening one of its
substacks should NOT cause the code within the 'if' block to execute,
correct?  But it does...
How can I avoid this problem?
Hi Frank,
In a stack script, I am used to place this handy line at the beginning 
of any handler I want to be trapped only in this stack:

if the short name of me <> the short name of this stack then exit 


It always works "à la perfection"!
Hope this helps.
Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ask cursor (conclusion)

2004-10-05 Thread Éric Chatonet
In your case, the best is to write your own ask dialog as a substack of 
your main stack.
You will call this window with the "modal" command.
Clone (see this command in rev docs) the original Ask dialog stack to 
use it as a basis.

Le 5 oct. 04, à 21:27, [EMAIL PROTECTED] a écrit :
Hi, Eric.   Thanks so much for your response.
I don't think that such a feature is perfectly appropriate, regarding
to human interface guidelines whichever of the platforms you use.
Unless a modifier key is pressed (a menu shortcut for instance), the
user don't expect a dialog box to appear ;-)
Yeah, but I think it works for this stack.  I think you'd agree if you
saw the stack.
But if you want this, as ask dialog is a modal window, you have to
modify As Dialog stack by adding (for instance)

   select after text of field id 1119
So, you're suggesting to put this code in the preopenstack handler of
some stack called "As Dialog"?
What/where is the stack "As Dialog" ?
at the end of the preOpenStack handler in the main card of As Dialog
stack (Rev 2.x).
But be VERY careful when modifying an IDE stack and RESTORE it after
you built your standalone.
what is an IDE stack?
What does it mean to restore one?
Revolution is an Interface Development Environment developed on itself.
This means that the whole interface which allows you to access the 
engine is made of Rev stacks.
That is powerful : you can modify your own development environment.
For instance, Ask and Answer dialogs are rev stacks (they are exactly 
stacks as yours).
To be more precise, they are substacks of stack "Home" whose file name 
is "license.rev" in Rev folder on the desktop.
But, PLEASE, wait to be familiarized with those notions before acting!

What does it mean to restore one?
When you use ask and answer commands in a script, Ask and Answer 
dialogs stacks are called by the engine.
If you modify these stacks for your own purposes, you will restore 
them once the modified version has been included when creating a stand 
alone (.app or . exe).
If you don't restore them, you will never find again standard dialogs 
in the IDE, in the others stacks you will receive or create!

Is there an easier way to solve this problem without tinkering with
external stacks?  Can i just make all the changes within my stack?
Thank you
Andrew
I don't think so:
These dialogs are modal windows, ie once called, you can't do nothing 
but wait :-)
All executions are blocked until the user has clicked any button.
This is the reason why you have to modify the programming of the 
dialog stack itself (which is transcript handlers and functions as in 
your own stacks).
If you accept a piece of advice to begin, have a look at Rev docs, 
especially to "Main stacks, substacks, and the organization of a stack 
file" and "Windows, palettes, and dialog boxes"; all that in the 
"Topics" section.
Hope this helps.
Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ask cursor

2004-10-05 Thread Éric Chatonet
Le 5 oct. 04, à 21:27, [EMAIL PROTECTED] a écrit :
Hi, Eric.   Thanks so much for your response.
I don't think that such a feature is perfectly appropriate, regarding
to human interface guidelines whichever of the platforms you use.
Unless a modifier key is pressed (a menu shortcut for instance), the
user don't expect a dialog box to appear ;-)
Yeah, but I think it works for this stack.  I think you'd agree if you
saw the stack.
But if you want this, as ask dialog is a modal window, you have to
modify As Dialog stack by adding (for instance)

   select after text of field id 1119
So, you're suggesting to put this code in the preopenstack handler of
some stack called "As Dialog"?
What/where is the stack "As Dialog" ?
at the end of the preOpenStack handler in the main card of As Dialog
stack (Rev 2.x).
But be VERY careful when modifying an IDE stack and RESTORE it after
you built your standalone.
what is an IDE stack?
What does it mean to restore one?
Revolution is an Interface Development Environment developed on itself.
This means that the whole interface which allows you to access the 
engine is made of Rev stacks.
That is powerful : you can modify your own development environment.
For instance, Ask and Answer dialogs are rev stacks (they are exactly 
stacks as yours).
To be more precise, they are substacks of stack "Home" whose file name 
is "license.rev" in Rev folder on the desktop.
But, PLEASE, wait to be familiarized with those notions before acting!

What does it mean to restore one?
When you use ask and answer commands in a script, Ask and Answer 
dialogs stacks are called by the engine.
If you modify these stacks for your own purposes, you will restore them 
once the modified version has been included when creating a stand alone 
(.app or . exe).
If you don't restore them, you will never find again standard dialogs 
in the IDE, in the others stacks you will receive or create!

Is there an easier way to solve this problem without tinkering with
external stacks?  Can i just make all the changes within my stack?
Thank you
Andrew
I don't think so:
These dialogs are modal windows, ie once called, you can't do nothing 
but wait :-)
All executions are blocked until the user has clicked any button.
This is the reason why you have to modify the programming of the dialog 
stack itself (which is transcript handlers and functions as in your own 
stacks).
If you accept a piece of advice to begin, have a look at Rev docs, 
especially to "Main stacks, substacks, and the organization of a stack 
file" and "Windows, palettes, and dialog boxes"; all that in the 
"Topics" section.
Hope this helps.

Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ask cursor

2004-10-05 Thread Éric Chatonet
Le 5 oct. 04, à 09:16, [EMAIL PROTECTED] a écrit :
Hi, quick question.
I wanted to allow the user to display an "ask" dialogue by typing a
key, but have the key that they type be the first key to appear as
their response.
But if I do:
on keydown whichkey
   ask "What do you wish to say?" with whichkey
end keydown
Then, the next key you type replaces the first key, since the first key
shows up selected.  How do I place the cursor after the selection or
deselect what's in the response box?
I don't think that such a feature is perfectly appropriate, regarding 
to human interface guidelines whichever of the platforms you use.
Unless a modifier key is pressed (a menu shortcut for instance), the 
user don't expect a dialog box to appear ;-)
But if you want this, as ask dialog is a modal window, you have to 
modify As Dialog stack by adding (for instance)

  select after text of field id 1119
at the end of the preOpenStack handler in the main card of As Dialog 
stack (Rev 2.x).
But be VERY careful when modifying an IDE stack and RESTORE it after 
you built your standalone.

Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Floating Windows

2004-10-05 Thread Éric Chatonet
Le 5 oct. 04, à 09:16, Richard Gaskin a écrit :
Éric Chatonet wrote:
it seems you want a resizable palette.
Rev does not allow this: you have to script your window to resize it.
In which version?  I've been using resizable palettes for the last few
years.  See my 4W Props in RevNet, for example
--
  Richard Gaskin
  Fourth World Media Corporation
You are right and I do apologize!
I was thinking of resizable windows without decorations: I use them 
very often at the moment :-)

Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Floating Windows

2004-10-04 Thread Éric Chatonet
Le 3 oct. 04, à 05:24, [EMAIL PROTECTED] a écrit :
Hi,
I'm new to Revolution (I'm using Dreamcard), though I am familiar with
Hypercard. Here's my question:
I want the ability to display multiple floating windows that are
editable and resizable over any card in a stack . The primary use for
the windows will be to contain text and lists. I've tried scripting
this in Dreamcard but haven't succeeded. In Hypercard stacks I've
scripted, I've used Rinaldi's Textoid and Listoid XCMD's to create
these floating windows. Is there anything similar for Revolution?
Thanks,
John
I just read your question and saw pertinent answers you had from others.
But it seems you want a resizable palette.
Rev does not allow this: you have to script your window to resize it.
Fortunatly, you will find "Mac Style Resizer" and "Win Style Resizer" 
scripted buttons in Object Library (Development/Object Library menu 
item)
...If available in DreamCard :-)

Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Type in upper case

2004-09-30 Thread Éric Chatonet
Le 30 sept. 04, à 00:23, [EMAIL PROTECTED] a écrit :
Hello,
I want the user type in upper case.
I've made a script with the keyup handler to convert lower letter in
upper letter, but the conversion is visible.
How make the conversion in the keydown handler ?
Bonjour Ludovic,
It's a pity but toUpper rev function is unaware of the existence of 
latin vowels :-)
You are french. So  you need to uppercase them:

on keyDown pKey
  if the selectedChunk = empty then pass keyDown
  put InternationalToUpper(pKey) into the selectedChunk -- ∆
end keyDown
--
function InternationalToUpper pKey
  local tASCIIVal
  -
  put charToNum(pKey) into tASCIIVal
  if tASCIIVal >= 97 and tASCIIVal <= 122 then
return numToChar(tASCIIVal - 32)
  else
return RightASCIIValue(tASCIIVal) -- ∆
  end if
end InternationalToUpper
--
function RightASCIIValue pASCIIVal
  -- trap latin accented vowels
  put item itemOffset(pASCIIVal,"141,142,143,136,137,144,207") \
  of "130,131,233,203,229,230,206" into tNewValue
  if tNewValue = empty then return numToChar(pASCIIVal)
  return numToChar(tNewValue)
end RightASCIIValue
Note that Klaus Major formulation works fine unless a selection was 
done in the field.

Hope this helps.
Contact me off list if needed.
Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: auto-hilite text vs. scripting the hilite

2004-09-27 Thread Éric Chatonet
On Sep 27, 2004, at 1:27 PM, [EMAIL PROTECTED] wrote:
I've got a text field that contains a list of filenames, along with 
commands
to "Download", and "View", like this:

Filename1  Download View
Filename2  Download View
Filename3  Download View
Filename4  Download View
 What I want to do is make it so that I can trap that the user has 
clicked on
the word "Download" or "View".   I am presently doing this 
successfully using
the mouseText function and trapping for "Download" or "View"

However, I also want to allow the user to click on the filename, 
hiliite it,
and hit the Delete key to delete the file.   In order to do that, it 
seems
like I need to turn on the "auto hilite text" checkbox, and turn on 
the "use list
behavior" checkbox.   However, when I do that, my ability to trap for 
the
individual word on a line goes away (the mouseText then returns the 
text for the
entire line, so I can't trap for Download or View anymore)

Is there a way I can hilite a line within a text field and still 
permit "the
mousetext" command to work?   (So that it only returns the word the 
user has
clicked on)

OR, if there was a way to set the hilite of a line via Transcript - - 
that
seems like it would work too - - - however, I've found that it only 
works if I
have the "auto hilite/Listbox" checkboxes turned on for the field.
To avoid problems, you could turn on listBehavior and combine the 
hilitedLine and the clickH:

if (the clickH > item n of the tabStops of me) and \
(the clickH < item (n + 1)  of the tabStops of me) then
See the script of field Controls in Rev Application Browser which uses 
this method.
Hope this helps.

Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: the texstyle of the clickline

2004-09-09 Thread Éric Chatonet
Bonjour Leo,
In Revolution, objects inherit some of the properties of their owner.
That is especially true for text attributes, colors, patterns and so on.
When such a property is inherited, asking for it returns empty.
The docs says: Use the effective keyword to get the displayed property 
of an object, regardless of whether the object itself has that property 
set.
So in your handler:

on mouseUp
  if the effective textstyle of the clickline is "plain" then
set the textstyle of the clickline to "bold"
  else
set the textstyle of the clickline to "plain"
  end if
end mouseup
Le 8 sept. 04, à 22:24, [EMAIL PROTECTED] a écrit :
Message: 6
Date: Wed, 8 Sep 2004 18:56:18 +0200
From: [EMAIL PROTECTED]
Subject: the texstyle of the clickline
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Hello,
I have a card with a locked field and many lines of text inside.
The script of this field is :
on mouseup
 if the textstyle of the clickline is "plain" then set the 
textstyle
of the clickline to "bold" else set the textstyle of the clickline to
"plain"
end mouseup

I used this script under Hypertalk with no problem.
Under Revolution, this script don't work correctly.
When the textstyle is "plain", I saw than sometimes the textstyle of
the clickline can be "plain" and sometimes can be empty.
With others textstyles (bold, italic, underline, etc...) there is no
problem.
I rectified this script like this :
on mouseup
   if (the textstyle of the clickline is "plain" or the textstyle of 
the
clickline is empty) then ..
end mouseup

Is there a better solution ?
Thanks
Leo
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: open card question

2004-09-02 Thread Éric Chatonet
Le 2 sept. 04, à 09:38, Yves COPPE a écrit :
Hi list,
I have a mainstack "A" and 2 substacks "B" and "C"
the user can browse through stack "B" which contains multiple cards
how can I know when the user clicks a btn in stack "C" which card is
the open card of stack "B" ?
thank you for your help...
Bonjour Yves,
For instance in the script of stack C button :
set the defaultStack to "B"
put the number of this cd into tCdNum
set the defaultStack to "C"
Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Empty a list of globals

2004-04-07 Thread Éric Chatonet
Le 7 avr. 04, à 17:34, Mark MacKenzie a écrit :

Hit a bit of a stumper for me.

At preopencard time I need to clear a bunch of globals.  I created the
following handler and it doesn't seem to clear the globals involved.   
In
a succeeding handler they keep their previous values.  Am I doing
something fundamentally wrong?

preOpenCard
put
"gBulletCalibre,gBulletDesign,gBulletSizedDiam,gBulletNomWeight,gBullet 
LotCustom"
into gGlobalsToEmpty
repeat with x = 1 to the number of items of gGlobalsToEmpty
  put empty into item x of gGlobalsToEmpty
end repeat
end preOpenCard

When faced with a series of globals to reset to zero or empty how do  
you
do it with a minimum of scripting?

Mark MacKenzie

Hi Mark,
You have to declare global variables :
on preOpenCard
local tGlobalsToEmpty, tGlobalName
-
put  
"gBulletCalibre,gBulletDesign,gBulletSizedDiam,gBulletNomWeight,gBulletL 
otCustom" into tGlobalsToEmpty
repeat for each item tGlobalName in tGlobalsToEmpty
  do "global" && tGlobalName
  do "put empty into" && tGlobalName
end repeat
end preOpenCard

You can also declare your globals outside the handler at the top of the  
script and forget nominal declaration in the preOpencard handler:

global  
gBulletCalibre,gBulletDesign,gBulletSizedDiam,gBulletNomWeight,gBulletLo 
tCustom
-
on preOpencard
local tGlobalsToEmpty, tGlobalName
-
put  
"gBulletCalibre,gBulletDesign,gBulletSizedDiam,gBulletNomWeight,gBulletL 
otCustom" into tGlobalsToEmpty
repeat for each item tGlobalName in tGlobalsToEmpty
  do "put empty into" && tGlobalName
end repeat
end preOpenCard

Hope this helps,
Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Repeating Repeat Loops?? (Rob Cozens)

2004-03-10 Thread Éric Chatonet
Le 10 mars 04, à 22:14, Rob Cozens a écrit :

repeat with x = 1 to the number of buttons
   if the last word of the short name of button x is "Title" then
enable button x
end repeat
Where is "end if" :-)

Amicalement,

Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Filtering with more than 4 types (OSX) - AppleScript

2004-01-29 Thread Éric Chatonet
Your script for filtering with more than 4 types (OSX) with AppleScript 
(Vol 4, Issue 189) works fine :-)
Many thanks.
When "MooV" is among the filters, then all types recognized by 
QuickTime are displayed : moovies, images and sounds as well!
I do regret this!
Due to system and QT?

Rev 2.1.2
OS 10.3.2
QT 6.5
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Filtering with more than 4 types (OSX)

2004-01-28 Thread Éric Chatonet
Bonjour à tous les Reveurs,

OSX 10.3
Rev 2.1.2
I want to display a dialog allowing the user to choose only pictures 
i.e BMP,MooV, JPEG, PNG, GIF and TIFF (cross platform app).
Only the four first types are considered:

answer file tPrompt with filter "MooVJPEGPNGfGIFfTIFFBMP " -- filters 
correctly MooV,JPEG,PNG and GIF while TIFF and BMP files are disabled
answer file tPrompt with filter "PNGfGIFfTIFFBMP MooVJPEG" -- filters 
correctly PNG, GIF, TIF and BMP while MooV and JPEG files are disabled

Any idea to by-pass this apparent limitation?

Mille mercis par avance !

Eric Chatonet

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