Re: Gif issues

2010-11-17 Thread Trevor DeVore
On Thu, Nov 11, 2010 at 4:27 PM, Andrew Kluthe and...@rjdfarm.com wrote:


  My splash screen presents a login and upon authenticating the actual
 splash
 comes up, checks for updates, then connects to a database using SQLYoga. I
 had made 2 handlers, one for starting and showing the gif, and one for
 stopping, hiding and resetting the gif's state.

 Everything works as it should until SQLYoga actual goes to connect to the
 database. At this point the gif animation freezes until the connection is
 successfully made. The rest of the processes for initialization are
 lightning fast so primarily the gif is for the wait on the connection to
 the
 db.


GIF animations will not animate while the engine is involved in a long
process. If it is taking a while to connect to the database then the engine
is in a revOpenDatabase call which would stop the GIF animation.

I don't know that the GIF animation issue is something that can be addressed
right now but you could submit a request to have revOpenDatabase be
non-blocking. hostnametoaddress was recently update in 4.5 so a to be
non-blocking if [callback] was provided:

hostnameToAddress(hostname, [ callback ])

This is significant because now our applications don't have to lock up if
there is a problem connecting to the internet. Maybe revOpenDatabase could
have a [callback] option as well.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.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: s it possible to access or set individual pixels of an image?

2010-11-17 Thread Trevor DeVore
On Tue, Nov 16, 2010 at 6:50 PM, Marty Billingsley
ma...@ucls.uchicago.eduwrote:

 Is it possible to read and set the color of individual pixels in an image?
  ImageData is a little incomprehensible.

 Basically, I'd like to be able to do something like:
 for each pixel in image x,  set the color of that pixel to some
 calculated value (or a value pulled from a pixel of another image)

 Thanks for any pointers you can give me!


Unfortunately there is no shortcut for looping over each pixel. It would be
great to be able to do this:

repeat with i = 1 to the number of pixels of theImageData
put pixel i of theImageData into thePixelA

put 20 into thePixelA[red]
put 0 into thePixelA[green]
put 255 into thePixelA[blue]

set pixel i of theImageData to thePixelA
end repeat

But we can't :-)

You will need to work with the imageData. It isn't too bad once you get your
head around it. Here is one way you could loop through the imageData of an
image, accessing individual pixels. This may not be the most efficient way
but hopefully it illustrates how to access each pixel clearly enough so that
the format of the imageData makes sense.

put the imageData of img 1 into theImageBytes
repeat with i = 1 to the number of bytes of theImageBytes
put byte i of theImageBytes into theAlphaValue -- always 0
put byte (i+1) of theImageBytes into theRedValue
put byte (i+2) of theImageBytes into theGreenValue
put byte (i+3) of theImageBytes into theBlueValue

## Convert bytes to numbers that you can manipulate
put charToNum(theRedValue) into theRedValue
put charToNum(theGreenValue) into theGreenValue
put charToNum(theBlueValue) into theBlueValue

## manipulate values as needed
...

## Convert back into binary data
put numToChar(theRedValue) into theRedValue
put numToChar(theGreenValue) into theGreenValue
put numToChar(theBlueValue) into theBlueValue

## Store modified pixel in theImageBytes
put theRedValue into byte (i+1) of theImageBytes
put theGreenValue into byte (i+2) of theImageBytes
put theBlueValue into byte (i+3) of theImageBytes

## You might be tempted to use step 4 in the repeat loop up above.
## The problem with this is that the engine will execute one last time
when
## the counter steps to (the number of bytes + 1). This is no good as
there
## will be no pixel starting at (the number of bytes + 1).
## Instead, we rely on the repeat loop incrementing i by 1 and we add on
an
## additional 3 for the equivalent of step 4
add 3 to i
end repeat

set the imageData of img 1 to theImageBytes

Hopefully this helps.

-- 

Trevor DeVore

Blue Mango Learning Systems

ScreenSteps: http://www.screensteps.com

Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.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: Painfully slow performance

2010-11-06 Thread Trevor DeVore
On Sat, Nov 6, 2010 at 2:30 PM, Peter Haworth p...@mollysrevenge.comwrote:

 I just built my first standalone with LiveCode 4.5 (on OSX) and I'm seeing
 painfully slow performance compared to the same application built with 4.0.

 I'm using an SQLite database to populate all the data on the cards in the
 app, not sure if there's some problem with the SQLite side of things.  Only
 other thing I can think of is that I am using several front scripts.
  Opening a card used to be almost instantaneous, now it's taking 30-45
 seconds.  Bringing up the data for a different SQLite row used to be
 instantaneous, now takes 10 seconds or so.  This is consistant across all
 the cards that handle data fro any table in my SQLite database.

 The 4.0 standalone still works just fine using the same database.


I recall someone else having an issue with this and reporting it to RQCC but
I can't find the report now. I think the problem was that a field being
search on in the database was not indexed. For some reason there was a slow
down using the newer SQLite driver included with 4.5. Might be worth looking
into.

Regards,


-- 

Trevor DeVore

Blue Mango Learning Systems

www.bluemangolearning.com-www.screensteps.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: Datagrid error when set to empty

2010-11-05 Thread Trevor DeVore
On Thu, Nov 4, 2010 at 3:38 PM, JosepM jmye...@mac.com wrote:


 I have a strange issue with a datagrid that set the dgdata to empty.
 In IDE mode the app run fine but from the standalone I get this error.


The first thing to check is whether you have password protected your data
grid templates stack. If it is password protected then the row/column
templates cannot be copied.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.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: Datagrid error when set to empty

2010-11-05 Thread Trevor DeVore
On Fri, Nov 5, 2010 at 11:03 AM, JosepM jmye...@mac.com wrote:


  The stack was password protected but it worked properly, then added a new
 grid and that's when the problems have started.


Are you unlocking the stack when running as a standalone by setting the
passkey?

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.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: Datagrid error when set to empty

2010-11-05 Thread Trevor DeVore
On Fri, Nov 5, 2010 at 1:06 PM, JosepM jmye...@mac.com wrote:


 I'm using GLX framework, don't do it automatically? At least until now has
 worked fine.


The framework does not unlock stacks automatically. See this lesson:

http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/5554-If-My-Application-Is-Password-Protected-How-Do-I-Unlock-Certain-Stacks-At-Runtime-

If you have already added the template stack to the list of stacks that get
unlocked then we can look elsewhere. Password protected stacks is the first
thing I check if something works in the IDE but not in the IDE though.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.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: Which messages are sent to a datagrid on opencard?

2010-11-03 Thread Trevor DeVore
On Sun, Oct 31, 2010 at 6:16 AM, Malte Brill revolut...@derbrill.de wrote:

 I have a rather complex stack that needs quite a few datagrids on a card.
 Now when said card is opened it is noticeably laggy. I guess this is due to
 the messages that are sent to the datagrids on (pre)opencard. PreopenControl
 or something the like?  If I remove the dgs, or lock messages before going
 to the card, everything is speedy. Now I wonder: Can I lock messages before
 going to said card and avoid the lagging and still being able to populate
 may data?


Malte,

zryip is correct in that the Data Grid will be initialized later on if
preopenControl is never received. If you want to see exactly what is going
on check out the private command _Initialize in the script of btn Data
Grid of stack revdatagridlibrary.

Given that persistent data is set to false and you don't have any data in
the grids then I think the most time intensive operation would be when the
table columns are created in the call to _table.CreateColumns.

You could experiment with commenting out some of the code in _Initialize to
determine where the bottle neck is. If you can locate it then perhaps we can
determine how to address the speed issue.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.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: Datagrid option menu initialisation

2010-10-05 Thread Trevor DeVore
On Mon, Oct 4, 2010 at 1:18 PM, Peter Haworth p...@mollysrevenge.comwrote:

 I have a datagrid table with two option menu columns in it.  It's OK to
 initialise the first one per your reply but the contents of the second one
 need to be set differently depending on the currently selected value in the
 first option menu.  Any recommendations as to how to do that?


You will need to populate the menu in the FillInData message in this case.
Just fetch the value of the column that dictates the values and then
populate.

http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7313-How-Do-I-Get-Data-Associated-With-a-Row-or-Column-

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.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: Datagrid Default Column Behavior

2010-10-05 Thread Trevor DeVore
On Mon, Oct 4, 2010 at 3:44 PM, Peter Haworth p...@mollysrevenge.comwrote:

 I guess I'm not understanding this correctly.  Here's what I did, assuming
 the column with the option menu in it is named OptionColumn

 On the Datagrid Templates card, I see a button named OptionColumn
 Behavior.  I deleted all the lines from the script for that button then hit
 Apply.  Then I opened the card containing my datagrid but still my default
 column script is only executed for columns that have not been customised.


Deleting the script doesn't change the fact that the button is assigned as
the behavior for the OptionColumn column. You need to set the behavior
property of the OptionColumn group on you template card to empty.
Otherwise you have a column template with no script at all (because you
deleted the script in OptionColumn Behavior).

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.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: Drag drop reordering of a DataGrid form

2010-10-05 Thread Trevor DeVore
On Mon, Oct 4, 2010 at 1:15 PM, Peter Haworth p...@mollysrevenge.comwrote:

 Maybe I'm misunderstanding something but I don't see any code for handling
 drag/drop in the default datagrid behavior script I got when I installed
 LiveCode 4.5


The code is in the data grid behavior script: edit script of btn Data Grid
of stack revDataGridLibrary

Our good friend the Slug posted some links to some example stacks I've made
showing how to use it. The code snippet I posted for Monte and Monsieur Le
Slug was to fix an issue with setting the dragAction. The code snippet goes
in the Data Grid button script.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.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: Drag drop reordering of a DataGrid form

2010-10-05 Thread Trevor DeVore
On Mon, Oct 4, 2010 at 1:15 PM, Peter Haworth p...@mollysrevenge.comwrote:

 Maybe I'm misunderstanding something but I don't see any code for handling
 drag/drop in the default datagrid behavior script I got when I installed
 LiveCode 4.5


The code is in the data grid behavior script: edit script of btn Data Grid
of stack revDataGridLibrary

Our good friend the Slug posted some links to some example stacks I've made
showing how to use it. The code snippet I posted for Monte and Monsieur Le
Slug was to fix an issue with setting the dragAction. The code snippet goes
in the Data Grid button script.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.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: Datagrid Default Column Behavior

2010-10-04 Thread Trevor DeVore
On Sun, Oct 3, 2010 at 9:06 PM, Peter Haworth p...@mollysrevenge.comwrote:

 What is the correct way to set the default column behavior of a datagrid so
 that the script is entered for columns which have been customised to contain
 option menus?

 I have set the default column behavior property for the datagrid but suing
 debug shows that the script is only executed for columns that hve not been
 customised in some way.


When you create a custom column the behavior script of the column template
is assigned to the behavior that is created alongside the column template.
The default column behavior only applies to column templates that do not
have a behavior assigned. Just set the behavior of your new column template
to empty and then it will inherit the default behavior.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.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: LiveCode Datagrid Questions

2010-10-04 Thread Trevor DeVore
On Sat, Oct 2, 2010 at 2:29 AM, Peter Haworth p...@mollysrevenge.comwrote:

 I'm having a number of issues with datagrids created in LiveCode 4.5.
  Datagrids created by Revolution 4.0 still work fine.



 I am unable to create custom column behaviors for any columns using the
 recommended method.  I click the plus sign for the column, the card with the
 row template is displayed, I select the row template group but the Edit
 Group button in the toolbar or on the Object menu is greyed out and doesn't
 function.  If I select the card containing the template for the datagrid,
 then select the Row Template group,  the Edit Group command is available to
 me.


Hi Peter,

Are you sure you are selecting the row template group? By chance do you have
Select Grouped active in the toolbar? If it is then you are selecting one
of the controls in the group and not the group itself.


 I have a default column behavior script which I use for all my datagrids.
  Those created under 4.0 correctly execute the various handlers in that
 script but any created under 4.5 never execute any of the handlers in that
 script (the default column behavior is set to the correct button).


Hard to say without knowing more details. What troubleshooting steps have
you taken thus far?


 I see two new handlers in the default column behavior supplied with
 LiveCode - PreFillinData and ResetData.  What are some uses for these
 handlers?


These two messages are for advanced use cases where you need to know that
data is being unloaded from a row/column.

For example, let's say you dynamically create player objects in rows of a
data grid when the user clicks a play button to sample a song. If the user
then scrolls that row out of view you might want to do something with the
player object you created dynamically. PreFillinData would allow you to do
that.


 I also saw a recent post to this list regarding some new built in drag and
 drop reordering handlers in the default script - they don't appear in my
 default script.


There is no code that goes in the default script. I haven't documented the
drag/drop routines officially but I have posted examples of using it to the
list. I have yet to go through the routines and ensure that I'm completely
happy with the API so they remain undocumented until I do so.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.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: loading a https page on OS X

2010-10-04 Thread Trevor DeVore
On Sun, Oct 3, 2010 at 1:25 PM, Klaus on-rev kl...@major.on-rev.com wrote:

 I tried to load a page from an https server and got of course an
 error because the user certicitate was not found.

 No username or password required for the site!

 the result was:
 error -Error with certificate at depth: 0  issuer  ...
 ...
 ...
 err 20:unable to get local issuer certificate

 So since any internt browser can do this,  my question is how can I do?

 Are there any generic certificates in some folder on the users hd that I
 can
 set the sslcerificates to?


Yes, grab the cert.pem file that curl publishes:

http://curl.haxx.se/ca/cacert.pem

Include it with your app and point the sslcerificates to it.

Also, 4.5 has experimental support for loading SSL certs installed on the
system. I haven't tested this yet but that may be a solution for you as well
if you aren't using 4.5 yet.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.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: Drag drop reordering of a DataGrid form

2010-10-04 Thread Trevor DeVore
On Sat, Oct 2, 2010 at 9:32 AM, zryip theSlug zryip.thes...@gmail.comwrote:

 Just to clarify, this is a change in the datagrid library itself not
 in the LiveCode engine.
 I have tried this by using the revdatagridlibrary stack from the
 LiveCode 4.5 into my version of Revolution 4.5 dp2 and now I have to
 set the dragAction to make the reorder perform.


In the dgDragMove handler update the code that sets the dragAction to this:

## Make sure data grid control will accept drop
if the dragSource contains the long ID of me and (the mouseControl is not
empty and the long id of the mouseControl contains the long ID of me) then
   set the dragAction to move
end if

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.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: Datagrid option menu initialisation

2010-10-04 Thread Trevor DeVore
On Sat, Oct 2, 2010 at 12:22 PM, Peter Haworth p...@mollysrevenge.comwrote:

 I have defined an option menu in a datagrid column whose contents are
 created by reading data from an SQLite database - the contents will be the
 same for each instance of the option menu and should be loaded when the card
 containing the datagrid is opened.  Where should I put the code to create
 the option menu contents?


In the card that contains the data grid :-)

In the preopencard or openCard message query the database, update the menu
button text in the data grid template and then load the data grid. Since the
template has the updated menu text all instances of your column will contain
the updated menu text.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.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: sqlite: foreign keys

2010-09-28 Thread Trevor DeVore

On Sep 25, 2010, at 3:42 PM, David Bovill wrote:

A quick geeky question: does anyone know if foreign key support has  
been

turned on for the recent sqlite driver


I don't think you need to turn it on when compiling. It is a pragma  
setting:


http://www.sqlite.org/pragma.html#pragma_foreign_keys

Untested but try this:

revExecuteSQL theConnectionID, PRAGMA foreign_keys = true

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: sqlite: foreign keys

2010-09-28 Thread Trevor DeVore

On Sep 28, 2010, at 1:32 PM, Peter Haworth wrote:

I think the issue is whether the version of the sqlite drivers in  
LiveCode are up to date enough to include foreign key support at  
all.  According to http://www.sqlite.org/foreignkeys.html, foreign  
keys were supported as of SQlite version 3.6.19 but I don;t know how  
to find out what version of sqlite is included with LiveCode.  If  
foreign key support is included, it's off by default so you do have  
to enable it as detailed by Trevor.


4.5 comes with 3.6.22. You can check the version of SQLite included  
with the IDE by placing the following in a card script of a stack in  
your plugin folder. Just make sure the card has a single field on it.


on preopenCard
   put specialfolderpath(temporary) into theFolder
   put theFolder  /  the milliseconds  .db into theFile
   put revOpenDatabase(sqlite,theFile) into theConn
   put revDataFromQuery(tab, cr, theConn, SELECT sqlite_version())  
into theData

   revCloseDatabase theConn
   put Installed SQLite version:  theData into fld 1
   delete file theFile
end preopenCard

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: sqlite: foreign keys

2010-09-28 Thread Trevor DeVore

On Sep 28, 2010, at 2:01 PM, Trevor DeVore wrote:


on preopenCard
   put specialfolderpath(temporary) into theFolder
   put theFolder  /  the milliseconds  .db into theFile
   put revOpenDatabase(sqlite,theFile) into theConn
   put revDataFromQuery(tab, cr, theConn, SELECT sqlite_version())
into theData
   revCloseDatabase theConn
   put Installed SQLite version:  theData into fld 1
   delete file theFile
end preopenCard


Actually, you don't even need the temporary file. Just use an in- 
memory db.


on preopenCard
  put revOpenDatabase(sqlite,) into theConn
  put revDataFromQuery(tab, cr, theConn, SELECT sqlite_version())  
into theData

  revCloseDatabase theConn
  put Installed SQLite version:  theData into fld 1
end preopenCard

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.com

Email has been scanned for viruses by Altman Technologies' email management 
service - www.altman.co.uk/emailsystems
___
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: LiveCode 4.5 License model

2010-09-21 Thread Trevor DeVore

On Sep 21, 2010, at 1:00 PM, Mark Stuart wrote:


Mouse over the LiveCode Bundle package icons. You will see product
information in a flyout.
Now mouse over the LiveCode 4.5 Complete for the Commercial product.
Notice the pricing at the bottom of the flyover.
The yearly maintenance fee for this product is now US$749.


If you are using Rev to deploy commercial products to Desktop, Web,  
Mobile and Server plus using the LiveCode Developer program I don't  
think the price is bad at all.


If you don't need all of those output options or don't want the  
subscription then just buy the output options you need in the store  
and there is no yearly subscription fee. Then you just have to pay  
when you want to upgrade if a newer version comes out that you want.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Colors in LiveCode

2010-09-20 Thread Trevor DeVore

On Sep 20, 2010, at 12:53 PM, René Micout wrote:

Colors of images imported into liveCode (4.5) are not the sames in  
Rev 4.0 ! Darker in 4.0 !

For you is it the same ?__


LiveCode respects the color profile embedded in the image now.

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: XML+MySQL+UTF8 = MISERY

2010-09-17 Thread Trevor DeVore

On Sep 17, 2010, at 1:39 AM, Tereza Snyder wrote:

  6b I upload the scored survey to a MySQL database on the remote  
server, first escaping it:

   put revXMLText( gTaxoDataA[gCurrentSlot][kID] ,,true) into tXML
   replace \ with \\ in tXML
   replace quote with \  quote in tXML
   replace ' with \' in tXML
   replace tab with \t in tXML
   replace cr with \n in tXML
   put encodeUtf8( tXML ) into tData


What encoding does the column in your MySQL database use? I set the  
default encoding for the DB to UTF-8 and don't have any problems but I  
think you have to do that explicitly.


Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: Mac OS X - how to darken screen?

2010-09-17 Thread Trevor DeVore

On Sep 16, 2010, at 9:41 PM, Andre Garzia wrote:

You can take a screenshot of the screen and manipulate it to darken  
it.


A couple of caveats to be aware of.

This works if you have a single monitor. For dual monitors you will  
get most likely get bitten by bug #3926 (http://quality.runrev.com/qacenter/show_bug.cgi?id=3926 
).


I've also found the importing the entire monitor on OS X to be rather  
slow. The speed on Windows seems to be much faster for the same size  
monitor.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid: simple (non-3D) column header dividers?

2010-08-25 Thread Trevor DeVore

On Aug 25, 2010, at 6:27 AM, Terry Judd wrote:

Well it's a good start (how come it isn't in my datagrid user  
guide?) but
you still get left with a light coloured one pixel wide line  
(leftHilite) to
the left of each column header that 'spoils' the vanilla effect I'm  
looking

for. If there was some way to target this graphic through the dgProps
(either by setting its colour or hiding it) then I think we'd be  
there.


I don't think it is available in the version of the data grid that  
came with rev 4.0 but in the next release you can set the  'header  
divider threeD color' property.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid Column Names

2010-08-24 Thread Trevor DeVore

On Aug 23, 2010, at 3:18 AM, Jim Ault wrote:


Column labels can be any ASCII string.
Hmmm, but can labels be unicode?


By default the text property is used when assigning a column label to  
the field used to display it. You can customize the behavior though so  
that the unicodeText is used (or htmlText for that matter). Just  
override the 'default header behavior' property.


You can use the instructions for changing the default column behavior  
as a guide:


http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7327-How-Do-I-Override-the-Default-Behavior-For-Rendering-Data-to-a-Cell-

You can see the default script in the text editor by executing the  
following in the message box:


edit the script of button Default Header of group Behaviors of  
stack revDataGridLibrary


You would want to update the dgLabel setProp in order to handle unicode.

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: [datagrid] how to search and show the result?

2010-08-24 Thread Trevor DeVore

On Aug 23, 2010, at 2:26 PM, zryip theSlug wrote:


Personally I never considered a datagrid as simple text container.
For me a datagrid is a container for rows or for records and when I
search in a datagrid, I'm waiting to have an entire record as result.

I can't speak for Trevor, but I think he has built the datagrid object
like that.


That is correct zryip.

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid Column Names

2010-08-23 Thread Trevor DeVore

On Aug 22, 2010, at 1:19 PM, Peter Haworth wrote:

It appears that datagrid column names cannot be numeric?  I have a  
datagrid that has alpha column names followed by some numeric ones.  
No matter what method I use for filling in the data, the columns  
with alpha names display correctly but the columns with numeric  
names are empty.  If I change the column names to be alpha and put  
the numeric value in the column label field, all works fine.


Numeric column names trip up the engine when referring to the internal  
data grid controls. Rather than targeting a control named 1 the  
engine targets control # 1.


If I were to go back and rewrite the internal column naming scheme I  
would probably add a prefix to the internal column controls (e.g.  
dgcol1 for a column the developer named 1). I think this would get  
around the issue. For now stay away from numeric column names.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Code signing certificate

2010-08-20 Thread Trevor DeVore

On Aug 19, 2010, at 1:40 AM, Jim Sims wrote:

Does anyone on this List actually use a Code signing certificate  
with apps they build in Rev?


Yes. I sign all of my ScreenSteps related desktop applications and  
installers.


If so, would you explain how you do it?  IOW would you please  
describe the process for doing this for a Rev app?


I took a lot of notes when I was going through the whole process of  
getting a certificate and figuring out how to sign. I've been meaning  
to post some tutorials on the lessons.runev.com site but I just  
haven't had time to go back and create a coherent tutorial yet.


Once you have all of the proper files on your computer it is pretty  
straightforward to sign an executable each time you build it. It's  
just a matter of calling something like the following on the command  
line in Windows:


C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin 
\signtool.exe sign /f C:\my_code_signing.pfx /t http://timestamp.comodoca.com/authenticode 
 /p YOUR_PFX_PASSWORD Z:\Path\To\My\Executable\ScreenSteps.exe


I'll see if I can get something posted by the end of next week the  
explains the process.



My guess is that nobody does.


That would be incorrect :-)

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: (data grid) is there a good workaround for obtaining other column values in FillInData for a Data Grid Table?

2010-08-18 Thread Trevor DeVore

On Aug 17, 2010, at 10:52 PM, Mike Bonner wrote:


If you set a custom behavior for the column you want the sum in, and
where it has the section for filling data, put

  put the dgDataOfIndex[ the dgIndex of me] of the dgControl of me
into theDataA
  set the text of field 1 of me to (theDataA[Col 2] +  
theDataA[Col 3])


Should work fine. Not positive this is the best method, but seems to
work dandy fine with small datasets.  Haven't tried it with big ugly
datasets.


If you didn't want to fetch all of the data for the entire row you  
could use GetDataOfIndex. GetDataOfIndex only retrieves the value of a  
specific column.


put the dgIndex of me into theIndex
set the text of field 1 of me to (GetDataOfIndex(theIndex, Col 2) +  
GetDataOfIndex(theIndex, Col 3))


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Code signing certificate

2010-08-17 Thread Trevor DeVore

On Aug 16, 2010, at 6:54 PM, Bill Vlahos wrote:

I understand that I need to purchase and continually renew a Code  
Signing Certificate for both the installer .exe and the  
application .exe. This way Windows won't complain that the  
application is from an unknown publisher.


Does anyone have any experience and recommendations for getting and  
implementing these?


I used Tucows which in turn uses Comodo - $75/yr. You need to sign up  
for an account at Tucows and then you can purchase the code signing  
certificate. I believe the starting point is here:


https://author.tucows.com/

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: DATAGRID dgDragImageIndex problem

2010-07-21 Thread Trevor DeVore

On Jul 21, 2010, at 4:00 AM, JosepM wrote:

button Data Grid: compilation error at line 305 (export: missing  
'to'),

char 26


I was able to test the code just now and pControl is a complete  
reference already so my suggestion won't do any good. The reference  
looks like this:


group id 1093 of group id 1013 of group id 1011 of group id 1004 of  
card id 1002 of stack Untitled 1


I'm not sure why opening Quartam Reports would cause the data in the  
dgDragImage image to be from another stack. As far as I can tell there  
is no way for the line:


export snapshot from pControl to image dgDragImage of me as PNG

to get image data from a control other than the one in the data grid.  
You are going to need to add some code to debug at which point the  
image data in the dgDragImage image is being assigned the wrong data.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: DATAGRID dgDragImageIndex problem

2010-07-21 Thread Trevor DeVore

On Jul 21, 2010, at 8:47 AM, JosepM wrote:


The point of change is when launch some report with the preview  
option, not
the Quartam Report app, and the image replaced is one inside the  
report.


For if this can help to solve this strange issue..


I don't use Quartam Reports. You are going to have to spearhead the  
debugging effort on this one.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: (data grid) [solved] Can't get the text selected in the Edit Field When It Opens

2010-07-21 Thread Trevor DeVore

On Jul 21, 2010, at 8:56 AM, Andre.Bisseret wrote:

Just after sending I tried to refresh my data grids after assigning  
then the default column behavior button


Thus,
For each of the 12 data grids (they have the same name  
tabloMois),  I made:


set the dgProps[default column behavior] of group tabloMois of  
this cd to the long id of btn My default column behavior of cd 1  
of this stack

dispatch ResetList to grp tabloMois of this cd

This last line was what was being missing

All is working like a charm now ;-)))


Glad you got it working.

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: DATAGRID dgDragImageIndex problem

2010-07-20 Thread Trevor DeVore

On Jul 20, 2010, at 10:19 AM, JosepM wrote:

I have a problem with dgDragImageIndex, at first dragdrop  
operations the
image is correct, some one after the image change to any random, and  
no more

show the correct image for the row selected.


The Data Grid is just setting the dragImage property to the id of an  
image named dgDragImage that resides inside the Data Grid group. You  
could try checking that the dragImage is the id of image dgDragImage  
of group Data_Grid_Name.


Check out the rules for search order when locating the image used in  
dragImage in the docs:


http://docs.runrev.com/Property/dragImage

Another option is that some stack is being opened that has the same id  
as the dgDragImage image and the engine is using that instead.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: (data grid) Can't get the text selected in the Edit Field When It Opens

2010-07-20 Thread Trevor DeVore

On Jul 20, 2010, at 11:26 AM, Andre.Bisseret wrote:

I have a data grid table in which I would like the text appears  
selected when an edit field is opened.


I tried the following:
1 - created a button My default column behavior
2 - set the script of btn My default column behavior to the script  
of button Default Column of stack revDataGridLibrary
3 - set the dgProps[default column behavior] of group MyDataGrid  
to the long id of btn My default column behavior
4 - In the script of the button added a line to the handler command  
EditValue as follow:

command EditValue
  ##In order to select all text before opening
  set the dgTemplateFieldEditor[select text] of the dgControl of  
me to true --ADDED LINE
  EditFieldText the long ID of me, the dgIndex of me, the dgColumn  
of me

end EditValue

5 - verified that the handler: getProp dgDataControl was in the script

Does not work here ;-(( the text of the edit field is not selected  
when the field is opened



I just created a new data grid in 4.5, created a column, customized it  
using the + button in the prop inspector, edited the behavior, added  
your code and it worked.


Have you confirmed that the EditValue handler in your script is being  
called (try using a put statement)?


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: DATAGRID dgDragImageIndex problem

2010-07-20 Thread Trevor DeVore

On Jul 20, 2010, at 11:33 AM, JosepM wrote:


set the dgDragImageIndex of me to the ID of image dgDragImage of me

Now no image is showed... :(


That is because you can't do that :-)

dgDragImageIndex is an index within the data grid array, not the id of  
an image.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: DATAGRID dgDragImageIndex problem

2010-07-20 Thread Trevor DeVore

On Jul 20, 2010, at 11:51 AM, JosepM wrote:


I don't see how refer to the dgDragImag



put the id of the image dgDragImage of group YOUR_DG_GROUP_NAME

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: DATAGRID dgDragImageIndex problem

2010-07-20 Thread Trevor DeVore

On Jul 20, 2010, at 12:16 PM, JosepM wrote:


Yes, this is that I do, but the image is empty...

The script:

on dragStart

  put the dgIndex of the dgDataControl of the target into theIndex

  --set the dgDragImageIndex of me to theIndex
  set the dgDragImageIndex of me to the id of the image  
dgDragImage of me


DO NOT set the dgDragImageIndex to the id of the image. It is an index  
value. Set it to an index.


Again, you should start by checking the id of the image and comparing  
it to the dragImage. Insert this code after you assign the  
dgDragImageIndex:


put the id of the image dgDragImage of me  cr  the dragImage

If the values are the same then the dragImage is being assigned  
properly. Next confirm that the image has the data you expect.


Replace the code that outputs the id of the image with code that  
copies the image data to the clipboard:


set the clipboardData[image] to the text of image dgDragImage of me

Paste the clipboard image somewhere where you can see it. Is it your  
row? If so then the data grid code is doing what it is supposed to.


If both of the above tests pass then you need to track down the image  
in another stack that has the same id as the dgDragImage of your data  
grid. Start searching for an image with the same id in any open  
stacks. Once you find it let us know and we can figure out how the  
engine is searching for the image to use and determine how to fix your  
problem.


Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: (data grid) Can't get the text selected in the Edit Field When It Opens

2010-07-20 Thread Trevor DeVore

On Jul 20, 2010, at 1:33 PM, Andre.Bisseret wrote:

I just tried your advice and no, the EditValue handler is not being  
called


I would check as to whether or not you are editing the script that is  
assigned as the behavior for the column or the default column behavior.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: DATAGRID dgDragImageIndex problem

2010-07-20 Thread Trevor DeVore

On Jul 20, 2010, at 3:27 PM, JosepM wrote:


The values are the same.


Next confirm that the image has the data you expect.


The image is different.


And what does it look like? Does it look like what you are seeing  
while dragging or something else?


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: DATAGRID dgDragImageIndex problem

2010-07-20 Thread Trevor DeVore

On Jul 20, 2010, at 3:49 PM, JosepM wrote:


And what does it look like? Does it look like what you are seeing
while dragging or something else?


It's the same that I see when dragging. But this isn't the row image


Edit the script of the data grid behavior:

edit script of btn Data Grid of stack revdatagridlibrary

Look for the command _CreateDragImageFromIndex.

In that handler is the following line of code:

export snapshot from rect theRect of this card to image dgDragImage  
of me as PNG


My *guess* is that this card is not resolving to the card that the  
data grid is on. Try adding a logging function that outputs the long  
name of this card.


...
put the long name of this card
export snapshot from rect theRect of this card to image dgDragImage  
of me as PNG

...

Is it a card other than the card with the data grid on it? If so, who  
is it?


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: DATAGRID dgDragImageIndex problem

2010-07-20 Thread Trevor DeVore

On Jul 20, 2010, at 4:22 PM, JosepM wrote:

I modified the script but nothing happen, almost I don't see any in  
the msg..


I edited and saved it but nothing.


Are you using a form or a table? I gave you the code for modifying a  
table so if you are using a form the code wouldn't have fired.  The  
form code is located in _CreateDragImageFromControl. But that code  
doesn't use a this card reference so I don't see how it could have a  
problem.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: DATAGRID dgDragImageIndex problem

2010-07-20 Thread Trevor DeVore

On Jul 20, 2010, at 6:04 PM, JosepM wrote:

It's strange. If I restart the IDE, the drag image is correct until  
I load
the preview of Quartam Reports, then one image used into the report  
is that

replace the drag image.


Try the following -

In the Data Grid behavior script find the command  
_CreateDragImageFromControl.


Change the line:

export snapshot from pControl to image dgDragImage of me as PNG

to

export snapshot from pControl of me to image dgDragImage of me as PNG

Does that fix the problem?

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: problem posting to a secure connection from a standalone?

2010-07-15 Thread Trevor DeVore

On Jul 14, 2010, at 4:46 PM, Geoff Canyon Rev wrote:


In the development environment this works fine. When I build a
standalone with just the above and nothing else, and all libraries
included, I get this error message:

error -Error with certificate at depth: 1  issuer   =
/C=US/O=Equifax/OU=Equifax Secure Certificate Authority  subject  =
/C=US/O=Google Inc/CN=Google Internet Authority  err 20:unable to get
local issuer certificate


You need to grab an SSL Certificate and set the sslcertificates  
property (http://docs.runrev.com/Property/sslcertificates).


You can get an SSL Certificate here:

http://curl.haxx.se/docs/caextract.html

Download the cacert.pem file and point the sslcertificates to the file  
or the folder containing the file.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: DataGrid Stuff

2010-07-13 Thread Trevor DeVore

On Jul 10, 2010, at 11:31 AM, Roger Guay wrote:

Many thanks to all who responded to my previous post. Can anyone  
tell me why this script doesn't work?


on mouseUp
   ## Create tab delimited data.
   ## Note that first line has name of columns.
   ## Providing names tells Data Grid how to map
   ## data to appropriate columns.
   put state  tab  code  cr  \
ALABAMA  tab  AL  cr  \
ALASKA  tab  AK into theText

   ## Let Data Grid know that first line has column names
   put true into firstLineContainsColumnNames
   set the dgText [ firstLineContainsColumnNames ] of group  
DataGrid 1 to theText

end mouseUp

This is in the  How Do I Create My First Data Grid Table lesson of  
revLessons.


You skipped the step prior to the code snippet (Customizing Columns)  
where you rename the columns to state and code.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Data Grid Form question - How do I select a field of a certain line or index in a Data Grid Form?

2010-07-06 Thread Trevor DeVore

On Jul 2, 2010, at 3:13 PM, Josh Mellicker wrote:

Let's say you add a row or record to a Data Grid, and want to  
automatically select the text of a field in that row so the user can  
start typing. What is the easiest way to do this?


If you are already opening the field editor then this lesson shows you  
how to select the text in the editor when it opens:


http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/10102-How-Can-I-Select-The-Text-in-the-Edit-Field-When-It-Opens-

Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: Data Grid Form question - How do I select a field of a certain line or index in a Data Grid Form?

2010-07-06 Thread Trevor DeVore

On Jul 6, 2010, at 11:40 AM, Josh Mellicker wrote:


I thought the field editor only applied to tables, not forms?


You can use it with both. It is just built-in with the table. The  
lesson you left a comment on yesterday actually explains how to use it  
with a form:


http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7336-How-Can-The-User-Edit-Field-Content-in-a-Data-Grid-Form-

Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: Datagrid click and set background color for a column

2010-06-25 Thread Trevor DeVore

On Jun 23, 2010, at 1:31 PM, JosepM wrote:

And how to change these color in function of the value of other col  
in the
same row? Well, I know how to get the value but the problem is that  
I don't
know the name of the column, so the array is created in function of  
the

position.


How Do I Get Data Associated With a Row or Column?
http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7313-How-Do-I-Get-Data-Associated-With-a-Row-or-Column-

This lesson shows some ways to get data out. It shows how to use the  
dgColumn property in behaviors as well as GetDataOfIndex.  
GetDataOfIndex is what you would use to get values for other columns  
in the row. It is one way you can grab values from invisible columns.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid lost focus to next cell

2010-06-22 Thread Trevor DeVore

On Jun 21, 2010, at 5:48 PM, JosepM wrote:


So in the EditValue left only one?

command EditValue
   if there is a field 1 of me then
   EditFieldText the long id of field 1 of me, the dgIndex of  
me, the

dgColumn of me
   EditFieldText the long id of field 1 of me, the dgIndex of  
me, the

dgColumn of me
   end if
end EditValue


If you change the data grid behavior script then yes. If you want to  
use the double EditFieldText solution then leave it in there twice.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid lost focus to next cell

2010-06-21 Thread Trevor DeVore

On Jun 18, 2010, at 7:32 PM, JosepM wrote:

I have a datagrid inside a group. I add a row and doubleclick to  
edit the
cell value, and pressing tab key jump to the next cell. But If I  
fill some

value and press tab, the next cell is edit but lost the focus and the
datagrid still in edit mode but without the focus.


Seems to be a bug in the engine. Focus is supposed to be on the field  
that opens for editing. If you look at EditFieldText in the data grid  
behavior script you will see these lines:


lock messages
   focus on sFieldEditor
   focus on sFieldEditor ## When tabbing through table cells engine  
would not focus on sFieldEditor without 2nd call


As you can see I have two calls to focus on the field because the  
engine was not behaving properly. When the data grid is inside another  
group even this workaround doesn't seem to do the trick. You could add  
a third call to focus on the field editor and it might do the trick.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid with option menu filled from database

2010-06-14 Thread Trevor DeVore

On Jun 13, 2010, at 6:04 AM, JosepM wrote:

I put the option menu data load into the preopenstack, accessing  
directly to

the datagrid template xx.
I guess that is correct, isn't?


Since you just need to populate the menu once that will work just fine.

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: DataGrid Headers not showing.

2010-06-02 Thread Trevor DeVore

On Jun 1, 2010, at 9:52 PM, Andrew Kluthe wrote:

I recently redid the multiple datagrids that I have across several  
cards into
one datagrid placed as a background. All of a sudden the datagrid  
headers
disappear randomly. It happens when changing from card to card. I  
can get
them back if I select the datagrid and push the Refresh Data Grid  
Button in

the Property Inspector.

Is there a way to prevent this from happening or a way to script the  
refresh

of the datagrid on preOpenCard?


I've never tried sharing a data grid across cards in a group so I'm  
not sure what might be going on.


You could try dispatching RefreshList or ResetList in preopencard.

http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7344-Data-Grid-API

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Survey Caution

2010-06-01 Thread Trevor DeVore

On May 29, 2010, at 1:45 PM, Jim Kanter wrote:


This is becoming an interesting survey about who actually reads
instructions and who just assumes the way things are...


I had a graphics teacher in high school that became so fed up with  
students not reading instructions (and thus wasting materials) that he  
began puttingspecial instructions at the top of every test. The  
instructions spelled out how you should take the test, which questions  
to answer, etc. If you didn't read them you definitely wouldn't pass.


I've been an instruction reader ever since :-)

A favorite quote: If all else fails—Please! Follow instructions.

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Example of scrolling group?

2010-06-01 Thread Trevor DeVore

On May 29, 2010, at 9:20 PM, Jeff Massung wrote:

Anyone have a good example of how to make a group that scrolls (like  
the
data grid)? I haven't seen anything in the User's Guide or on the  
RunRev

site - although I could have missed it.


This lesson shows how to use a group to scroll large images.

http://lessons.runrev.com/spaces/lessons/buckets/784/lessons/11788-How-do-I-scroll-a-card-that-is-taller-or-wider-than-the-window-

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Behaviors handlers not found when re-opening stacks

2010-06-01 Thread Trevor DeVore

On May 31, 2010, at 8:43 AM, Andre.Bisseret wrote:


But
If I save and close these 2 stacks when I reopen them that does not  
work anymore (I get a cant find handler error, and in tRev, the  
tab of the group's script opens up with some empty lines in it !!!??)


http://quality.runrev.com/qacenter/show_bug.cgi?id=8280

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: [Datagrid] Truncating items

2010-05-27 Thread Trevor DeVore

On May 27, 2010, at 5:41 AM, Terry Judd wrote:

Is it my imagination or is there some automatic way of truncating  
items that

are too long to fully display within a column that replaces the extra
characters with an ellipsis?


This lesson has an example showing how to truncate text. The Data Grid  
has a built-in command called TruncateTail.


http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7327-How-Do-I-Override-the-Default-Behavior-For-Rendering-Data-to-a-Cell-

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: GLX Application Framework: difference between a resource and a stack

2010-05-26 Thread Trevor DeVore

On May 25, 2010, at 7:26 PM, David Bovill wrote:


On 25 May 2010 20:59, Trevor DeVore li...@mangomultimedia.com wrote:

Standalone Resources are files that need to be included when  
building the
app but which aren't explicitly loaded when you open the  
application in Rev.


http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/5558-How-Do-I-Include-Supporting-Files-Folders-When-I-Build-My-Application-



So why do you add the Datagrid library as a Resource in the other  
tutorial?


Because you don't want to load the data grid library in the IDE (the  
IDE already does that). This is explained in the lesson on including  
the data grid library.


http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/6887-What-is-the-Best-Way-To-Include-the-Data-Grid-Library-


NB - how do I check that I have the latest version?


The official build is listed on the web page:

http://www.bluemangolearning.com/revolution/software/libraries/glx-application-framework/

This is the build that is documented. I have posted newer builds for  
some folks though and you may have one of those.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Testing a DB connection

2010-05-26 Thread Trevor DeVore

On May 26, 2010, at 1:23 PM, Andre Garzia wrote:

I know sqlYoga does that and if the connection died, it tries to  
reopen it

but I don't know the implementation details.


All SQL Yoga queries go through a central handler that checks for a  
particular error message from RevDB. If the error is known to be  
caused by the server disappearing then SQL Yoga tries to reconnect  
once and run the query again.


I currently have code in place for MySQL and SQLite (SQLite can  
sometimes has issues if running over a network drive).


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid border colour setting?

2010-05-26 Thread Trevor DeVore

On May 25, 2010, at 8:38 PM, Terry Judd wrote:

Does anyone know if there is a setting to change the border colour  
(both the

header and the 'body') of a datagrid? Trevor?


set the dgProps[border color] of the data grid to a color. This  
property isn't in the docs but I will add it in. The getProp isn't  
hooked up for it either but I've addressed that for 4.5.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid border colour setting?

2010-05-26 Thread Trevor DeVore

On May 26, 2010, at 5:00 PM, zryip theSlug wrote:

To a complement to the column divider color can you add also the  
header

divider color, please?


I don't know if this is in the 4.0 release but the 4.5 version has  
header divider color and header divider threed color.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: GLX Application Framework: difference between a resource and a stack

2010-05-25 Thread Trevor DeVore

On May 24, 2010, at 7:44 PM, David Bovill wrote:

Second go digging into this great open source framework: wandering  
the best
way to get a stack loaded as a library on startup. So do I use a  
stack, or
add it as a resource like the suggested route for datagrid the  
library -
wandering what the difference is. The version I have is not teh same  
as the
docs.. will have to check I have the lates... but in the mean time  
does

anyone using the framework know how to best add libraries?


Although your plugin UI might be slightly different the principles are  
the same as described here:


http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/5552-How-Do-I-Add-Stacks-to-My-Application-

Standalone Resources are files that need to be included when building  
the app but which aren't explicitly loaded when you open the  
application in Rev.


http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/5558-How-Do-I-Include-Supporting-Files-Folders-When-I-Build-My-Application-

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Remote SQL databases

2010-05-25 Thread Trevor DeVore

On May 21, 2010, at 6:31 PM, Bob Sneidar wrote:

I'm wondering if the Relational aspect of Trevor's sqlYoga would be  
able to do this, but again, I think I have to be working with two  
tables in the same database for that to work. Trevor?


That is correct. SQL Yoga will only work with relationships between  
tables in the same database.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: [Data Grid] set the dimmed hilite color

2010-05-25 Thread Trevor DeVore

On May 14, 2010, at 1:48 PM, zryip theSlug wrote:


It seems that there is no way to set the (effective) dimmed hilite
color property of a Data Grid.
I checked the setProp handler of the Data Grid library and found
nothing to set this property. Plus the getProp of this property seems
to return always the kDefaultDimmedHiliteColor constant.


Hmm, 'dimmed hilite color' is indeed missing from the setProp handler.  
I just updated the library. If you want to add it to the dgProps  
setProp put it below hilite color


case hilite color
  case dimmed hilite color
 if pValue is a color or pValue is empty then
lock messages
set the dgProps[pProp] of me to _ColorToRGB(pValue)
unlock messages
...

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: [Data Grid] get the header text color

2010-05-25 Thread Trevor DeVore

On May 14, 2010, at 7:05 PM, zryip theSlug wrote:


2010/5/14 zryip theSlug zryip.thes...@gmail.com:

It seems same for the Text color property.


I've fixed getProps for text color, effective text color, header  
text color and effective header text color.


Entries in the getProp dgProps handler are as follows:

 case effective text color
 return the effective textColor of group dgList of me
 break

  case text color
 return the textColor of group dgList of me
 break

 case header text color
 return the textColor of group dgHeader of me
 break

  case effective header text color
 return the effective textColor of group dgHeader of me
 break

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: [data grid] can't hide one of the scrollbar

2010-05-25 Thread Trevor DeVore

On May 13, 2010, at 10:45 AM, Andre.Bisseret wrote:


-
on mouseUp
  local DGRef,
  ---
  copy group DataGrid of group Templates of stack  
revDataGridLibrary to this card

  put it into DGRef
  set the dgProp[show hScrollBar] of DGRef to false
  set the dgProp[show vScrollBar] of DGRef to false
end mouseUp
-
then, the V scroll bar remains visible

If I invert the order of the 2 last lines then it is the H scroll  
bar which remains visible


In other words, the last line is not executed

What am I doing wrong?


Nothing. There was an unbalanced lock messages call in one of the  
handlers that repositioned columns. I've fixed this for the next  
release. If you want to fix it in your own copy of the library find  
the ned of the handler _table.RepositionColumns and add 'set the  
lockmessages to msgsAreLocked' above the unlock screen call.


===
   ...

   set the lockmessages to msgsAreLocked
   unlock screen
end _table.RepositionColumns


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: [data grid] When getting a substack Data grid Templates nnnn is necessary?

2010-05-12 Thread Trevor DeVore

On May 12, 2010, at 8:09 AM, Andre.Bisseret wrote:

Up to now, I thought that a data grid Template substack was  
necessary in any case. Seems that's wrong, isn't it?


Then it seems that a Data grid Template nnn substack is necessary  
only if one needs to customize it? Is this correct?


The template stack is required for data grid forms, not for data grid  
tables. Data grid table columns render using a text field if no custom  
template is defined.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: [Data Grid] Template column behavior problem

2010-05-11 Thread Trevor DeVore

On May 10, 2010, at 5:44 PM, zryip theSlug wrote:


If I assume that it exists one card template group for each Data Grid
I created in a stack:
- Is my problem can come from this duplication?
- Can I fix it by setting manually the dgColumnTemplate?


When you copy the Data Grid the new Data Grid is still pointing to the  
row template of the original data grid. That row template has a custom  
column in it.


If you want to point the new data grid to a different row template  
then set the dgProp[row template] property.


Data Grid Properties: http://lessons.runrev.com/manuals/datagrid/lessons/7343 



--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid can't not find stack

2010-05-07 Thread Trevor DeVore

On May 7, 2010, at 5:41 AM, JosepM wrote:

I have a stack with a datagrid that add and delete rows without  
problem.
Then I open a substack as sheet where the user fill some customer  
data and
close the substack. Then if I try to add a row to the datagrid...  
an error
has ocurred in behavior for the column template: Chunk: can't find  
stack.


Add a try/catch statement around the code in FillInData or  
LayoutControl and then print the error throw to the message box.


on FillInData ...
   try
  ...
   catch e
  put e
   end try
end FillInData

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid can't not find stack

2010-05-07 Thread Trevor DeVore

On May 7, 2010, at 10:52 AM, JosepM wrote:


Error getting rugged id of object
pObject = control id 2111 of stack LMWS
Context = group id 1046 of card id 1002 of stack revNewScriptEditor
1 of stack /Applications/Revolution Enterprise/4.0.0-gm-1/Toolset/
revscripteditor.rev,updateGutterDo,2237
group id  of group id 1046 of card id 1002 of stack
revNewScriptEditor 1 of stack /Applications/Revolution Enterprise/
4.0.0-gm-1/Toolset/revscripteditor.rev,update,35
group id  of group id 1046 of card id 1002 of stack
revNewScriptEditor 1 of stack /Applications/Revolution Enterprise/
4.0.0-gm-1/Toolset/revscripteditor.rev,updateGetContext,94
stack revNewScriptEditor 1 of stack /Applications/Revolution
Enterprise/4.0.0-gm-1/Toolset/revscripteditor.rev,seGetObjectState, 
731

stack /Applications/Revolution Enterprise/4.0.0-gm-1/Toolset/
revscripteditor.rev,seGetRuggedId,896
button id 1041 of card id 1002 of stack /Applications/Revolution
Enterprise/4.0.0-gm-1/Toolset/revlibrary.rev,revRuggedId,2671


The looks like an IDE error rather than an error generated by any of  
your Data Grid code.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: [Data Grid] Duplicate large amount of rows

2010-04-30 Thread Trevor DeVore

On Apr 30, 2010, at 2:04 PM, zryip theSlug wrote:


However the Data Grid command AddData does more than a simple
creation of a new index in an array. This is where I'm suspicious with
my code.


AddData has to update any caches that are created when setting the  
dgData. If you are updating the array and assigning the dgData then  
you are good to go (assuming the array is created properly).


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Sockets

2010-04-28 Thread Trevor DeVore

On Apr 27, 2010, at 4:23 PM, Hershel Fisch wrote:


Hi, could any help me out with a full socket session ? Please!


Perhaps this lesson will help:

http://lessons.runrev.com/spaces/lessons/buckets/784/lessons/12924-How-to-communicate-with-other-applications-using-sockets

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: AW: the externalpackages returns empty, why?

2010-04-27 Thread Trevor DeVore

On Apr 27, 2010, at 9:38 AM, Tiemo Hollmann TB wrote:


Yup, that does the trick in the IDE.
Any idea why the list is empty in my standalone?


Check the externalPackages of stack revExternalLibrary in a  
standalone.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid sorting

2010-04-26 Thread Trevor DeVore

On Apr 21, 2010, at 12:10 PM, Marcello Bertoli wrote:


I need to sort the lines of a datagrid with more than one criteria.

For instance:

The datagrid represents invoices with these columns:

- invoice date
- invoice number
- invoice title

When I click on the invoice date header I would like to sort the  
lines of the invoice datagrid first by invoice date and then by  
number.


Begin by reading this lesson:

http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7330-How-Do-I-Customize-Column-Sorting-

In the switch statement you create for invoice date just perform the  
sort you need using SortDataByKey (http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7334-How-Do-I-Sort-Records-By-A-Specific-Key-s-Values- 
):


on SortDataGridColumn pColumn
switch pColumn
case invoice date
SortDataByKey invoice date, ...
SortDataByKey invoice number, ...
HiliteAndStoreSortByColumn pColumn
break
default
pass SortDataGridColumn
end switch
end SortDataGridColumn

Untested but it should work.

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: [Datagrid] How to remove a column behavior? Bug or not?

2010-04-26 Thread Trevor DeVore

On Apr 25, 2010, at 8:30 AM, zryip theSlug wrote:


How can I remove a column behavior in a datagrid?


The data grid looks for the presence of a control named after the  
column. If you create a custom column template (and accompanying  
behavior) then controls are created on the template card. Deleting the  
column from the list of columns in the data grid won't delete the  
controls that were created.


Take a look at what gets created when you custom a column (scroll down  
to the A Column Template step):


http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7311-How-Do-I-Customize-A-Table-s-Columns-

Just delete the group that was created for the column and the button  
containing the behavior for the column. The group is named after the  
column and the button has the column name with  Behavior appended to  
it.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Encode and decode array

2010-04-26 Thread Trevor DeVore

On Apr 26, 2010, at 12:30 PM, René Micout wrote:


I encoded an array to put data into a text file :
A1  open file vxNomAgencement for write
A2  put arrayEncode(vxMémoireAgencement) into vxAgencementCodé
A3  write vxAgencementCodé to file vxNomAgencement
A4  close file vxNomAgencement
When I decode the text file :
B1  open file vxNomAgencement for read
B2  read from file vxNomAgencement until end
B3  put arrayDecode(it) into vxDataAgencement
B4  close file vxNomAgencement
At line B3, I have a message error, why !?


You need to read/write as binary.

How do I store an array in a text file and then retrieve it again?: http://lessons.runrev.com/spaces/lessons/buckets/784/lessons/9597-How-do-I-store-an-array-in-a-text-file-and-then-retrieve-it-again- 



--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: [Datagrid] How to manage the empty area outside the selectable lines?

2010-04-26 Thread Trevor DeVore

On Apr 24, 2010, at 6:31 PM, zryip theSlug wrote:


What is my best alternative if I assume that I have seen nothing in
the API to manage this empty area?


Hmm, it looks like a couple of additional properties would help here.  
You need to know if 1) you clicked on a row or 2) you clicked in the  
area where data is displayed.


I've added the following to the Data Grid in 4.5 :

the dgClickLine
the dgClickIndex
the dgClickedInDataView

To check if the user clicked in an empty area you would do the  
following in a data grid script:


if the dgClickedInDataView of me and the dgClickIndex of me is empty  
then

## clicked in empty area
end if

I'm including the relevant code to the end of this email if you want  
to add it to your own data grid script. Just edit the script of btn  
Data Grid of stack revDataGridLibrary.



About this, by testing this solution, I seen an odd behavior with
inactive horizontal scrollbars. When you click on the scrollbar and
have lines in the datagrid, you select the corresponding line. Is it
totally normal?


No, not normal. I just tested this and noticed that rev does not  
report a scrollbar as the target of a mouseclick if the scrollbar  
thumb is not visible. I'm not sure why this is but it is what it  
is :-) I've added a workaround for this to the data grid code for 4.5.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.com


===

getprop dgClickLine
   put the dgClickIndex of me into theIndex
   if theIndex  0 then return the dgLineOfIndex[theIndex] of me
   else return empty
end dgClickLine


getprop dgClickIndex
   ## figure out the index clicked on
   put empty into theIndex
   put _RowControlClickedOn() into theControl

   if theControl is not empty then
  put the dgIndex of theControl into theIndex
   end if
   return theIndex
end dgClickIndex


getprop dgClickedInDataView
   ## Note that Rev doesn't report scrollbars as mousecontrol if  
thumb is not
   ## showing. Hence the checks for visibility and click not within  
of vertical scrollbar

   ## (dglist overlaps with rect of vertical scrollbar)

   put the clickLoc into theClickLoc
   return theClickLoc is within the rect of group dgListMask of me \
  and (not the visible of scrollbar dgScrollbar of me \
  or (the visible of scrollbar dgScrollbar of me and  
theClickLoc is not within the rect of scrollbar dgScrollbar of me))

end dgClickedInDataView


private function _RowControlClickedOn
   local theControl

   ## figure out the index clicked on
   put the dgDataControl of the target into theControl

   ## Make sure user clicked in valid area.
   if theControl is empty and the dgClickedInDataView of me then
  ## Perhaps no column in clicked area or no mouse receiving  
controls in column

  put the clickV into theY
  repeat for each line thePotentialControl in  
_ListOfVisibleControls()

 put the rect of thePotentialControl into theRect
 if theY = item 2 of theRect and theY = item 4 of theRect  
then

put thePotentialControl into theControl
exit repeat
 end if
  end repeat
   end if

   return theControl
end _RowControlClickedOn 
___

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: Scrolling in image

2010-04-19 Thread Trevor DeVore

On Apr 16, 2010, at 7:35 PM, edward cawley wrote:

I have a large map image on a card, bigger than the cd window. I  
would like to scroll around the map by moving the image within the  
window using the mouse.


There is a lesson on this at lessons.runrev.com that might be helpful.

How do I scroll a card that is taller or wider than the window? : http://lessons.runrev.com/buckets/784/lessons/11788 



--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Redrawing datagrid from within

2010-04-13 Thread Trevor DeVore

On Apr 12, 2010, at 3:47 PM, Andrew Kluthe wrote:

So, if I the handler that the doubleclick calls can't refresh the  
grid, when

and how can i?


In the mouseDoubleUp handler use send in time.

send HandlerThatRefreshesDataGrid to SOME_TARGET in 0 seconds

Note that this limitation will be lifted in Rev 4.5.

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid - Selecting a line after sorting ..

2010-04-09 Thread Trevor DeVore

On Apr 8, 2010, at 11:03 PM, JACK RARICK wrote:

I have a datagrid with one hundred rows and six columns. The user  
clicks on a cell somewhere in the middle of the grid that  
immediately performs an action and resorts the grid. The row number  
is stored - but how do I get the original line reselected so the  
user knows where he was?


Grab the dgHilitedIndex before you sort and then set the  
dgHilitedIndex after performing the sort. Using the index allows you  
to track rows in the Data Grid regardless of sort order.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid: How get column data from other column behavior

2010-04-09 Thread Trevor DeVore

On Apr 9, 2010, at 10:46 AM, Andre.Bisseret wrote:


Assuming I have a datagrid cellar with

Appellation / Price
Bourgogne / 43
Bordeaux / 38
Aubance / 25

I want to change the price of one wine

1 - the user has to select a line then

put the dgHilitedLines of grp Cellar into tLine
put the dgDataOfLine[tLine] of grp Cellar into theDataA
ask What's the price? with theDataA[Price]
put it into theDataA[Price]
set the dgDataOfLine[tLine] of group Cellar to theDataA


You could also just use SetDataOfIndex here instead of extracting the  
row array, setting a key and reassigning it.


2 - Now I would like to be able to change a price but starting from  
a given wine' name, not from the selection of a its line (not really  
needed currently, but for learning more about datagrid ;-))


I found the following; for example I have to change the price of the  
Aubance:


put the dgData of grp cellar into theDataA
repeat for each key theIndex in theDataA
if theDataA[theIndex][Appellation] is Aubance then
Ask What's the new price for Aubance?
put it into theDataA[theIndex][Price]
end if
set the dgData of grp cellar to theDataA
end repeat


For simple finds you can use FindIndex.

dispatch FindIndex to group cellar with Appellation, Aubance
put the result into theIndex

if theIndex  0 then
-- change pricee of row.
end if

API page: 
http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7344-Data-Grid-API

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid locking field

2010-04-09 Thread Trevor DeVore

On Apr 9, 2010, at 11:20 AM, jrar...@hpsk12.net wrote:

I am very appreciative of all the things that dg can do. But what I  
need is a way to PREVENT the user from editing a fld. I need to be  
able to disable the mousedouble messages. Is this possible? I am  
using the guide and the tutorials ... But obviously not well enough!


You can always trap messages in the data grid group script so that  
they don't pass to the data grid behavior script. If you catch  
mouseDoubleUp/Down and don't pass it then you effectively override the  
normal behavior.


BUT if you just want to turn off editing of a column in a table check  
out the dgColumnIsEditable property:


http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7343-Data-Grid-Properties

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid: How get column data from other column behavior

2010-04-08 Thread Trevor DeVore

On Apr 6, 2010, at 5:07 PM, JosepM wrote:

I need to customize one column behavior in function of the data of  
other

column.
How can get the value of the other column from the script of the  
behavior

for the column?

Any idea?


Use GetDataOfIndex().

Data Grid API: http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7344-Data-Grid-API 



Examples:

How Can I Colorize Individual Lines in a Table?: http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7332-How-Can-I-Colorize-Individual-Lines-in-a-Table- 



How Do I Get Data Associated With a Row or Column?: http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7313-How-Do-I-Get-Data-Associated-With-a-Row-or-Column- 



--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: sqlYoga: sqlite primary key and a few detailed questions

2010-04-08 Thread Trevor DeVore

On Apr 6, 2010, at 1:44 PM, David Bovill wrote:


I've had some time to start implementing the local handler database in
sqlYoga: and have noticed a couple of things:

  1. An sqlite table handler db with a field id set as a primary  
key
  does not show in the db schema of sqlYoga. Do I have to script  
this using
  something ike sqlrecord_set theRecordA, id, theProjectID - and  
if so

  using a model behavior called when the table is created?


If you have already called dbobject_reloadSchema and the primary key  
field is not showing up under schema  tables  handler  primary key  
(use the plugin to check) then email your database to supp...@bluemangolearning.com 
 so I can take a look.


  2. How do I delete multiple records - can;t find an example to  
learn from

  - I'm trying something along the lines of:

 -- put id is in :1 into theParamsA [conditions]
 -- put 1,2 into theParamsA [condition bindings][1]

 put handler.object is ':1' into theParamsA [conditions]
 put someObject into theParamsA [condition bindings][1]
 sqlrecord_find handler, theParamsA, theRecordsA

 sqlrecord_delete theRecordA

But I'm only getting one record returned in theRecordsA. Does anyone  
have a

code snippet for deleting multiple records?


If you copied and pasted this code directly then you have a typo. You  
are using theRecordsA with sqlrecord_find and you are passing  
theRecordA to sqlrecord_delete.


I'd also love to know a little about how to pass the arrays around  
between
objects - I'm digging into the innards of the arrays now, but it  
would be

great to have some more examples? Like how do you take an array from
sqlquery_X and use it with sqlrecord_


You don't :-)

sqlquery_ calls directly convert results from a query to an array in  
Rev. All columns returned are stored in the second dimensions of the  
array.


sqlrecord_ calls store meta information about the table the data comes  
from, etc. Query results will also be converted to nested arrays  
depending on the relationships of the tables in the query. You can  
also use callbacks and custom table properties with SQL Records. SQL  
Record objects carry more overhead.


If you ever want to look inside the arrays just use printKeys(), a  
helper function included with SQL Yoga.


put printkeys(theRecordA)


Finally in the example below:

put sqlrecord_createObject(projects) into theRecordA


## Fill in primary key field for 'projects'
sqlrecord_set theRecordA, id, theProjectID

## Delete record
sqlrecord_delete theRecordA put the result into theError



does - sqlrecord_set theRecordA, id, theProjectID really set the
primary key - it is not in the API documentation, or is it something
specific to the record object?


sqlrecord_set is in the API docs:

http://www.bluemangolearning.com/revolution/docs/sql_yoga/api_docs/Documents/stack_libSQLYoga_command_sqlrecord_set.htm

It just fills in the value for the id property in the SQL Record  
object (theRecordA). It is similar to a line of revTalk that sets the  
property of a button object (just not as pretty):


set the hilite of button MyButton to true

Although theRecordA is just an array in Rev, you use sqlrecord_get/set  
because meta information is stored in the array as well. That meta  
information is updated whenever you set a property (like 'id').


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: sqlYoga: failing to do simple record deletion?

2010-04-08 Thread Trevor DeVore

On Apr 6, 2010, at 3:09 PM, David Bovill wrote:

What am I doing wrong - must be something simple and obvious, but I  
can't
figure out how to delete records, I'm adding them OK - but somewhere  
in the

stew is a bug stopping me deleting them. This is what I do:

on hdb_DeleteHandler

  put GetSelectedID() into handlerID

  put sqlrecord_CreateObject (handler) into theRecordA
  sqlrecord_set theRecordA, id, handlerID
  sqlrecord_delete theRecordA
  put the result into someError

  display_HkeyDataBase
end hdb_DeleteHandler


I imagine this fails because the SQL Yoga schema doesn't know that the  
'id' column is the primary key. If we figure out the cause of that  
then this should start working.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: getting info from a Data Grid - which out of three methods is best?

2010-04-08 Thread Trevor DeVore

On Apr 7, 2010, at 5:03 PM, Josh Mellicker wrote:


Would you:

1. scan the grid line by line, trying for a value match with data  
grid commands?


2. get the dgData and loop through the array?

3. get the dgText and loop through the tab delimited data?

(NOTE: We can't really depend on the filter command, since it's  
conceivable columns could change order or position in the future.)


Grab the dgData and loop through it.

put the dgData of group MyGrid into theDataA

repeat for each key theIndex in theDataA
 ... perform find on theDataA[theIndex][firstName], etc.
end repeat

Note that the above will not loop through the records in the order  
they appear but that may or may not matter to you. In the end you have  
the index (theIndex variable) that you can use in the Data Grid API.


If you want to loop through the records in order then follow the  
example in the lesson on exporting data.


How Do I Export Data From A Data Grid?: http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7323-How-Do-I-Export-Data-From-A-Data-Grid- 



--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Images, icons and Objects and Data Grid Tables?

2010-04-02 Thread Trevor DeVore

On Apr 1, 2010, at 6:50 PM, John Patten wrote:

If pdata is returning the name of my image correctly, how can I use  
that to display the image in my DataGrid table? As an image object?  
As the icon of a button?


I would try using an image object and assign the path to your image on  
disk.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Data grids in standalones

2010-04-02 Thread Trevor DeVore

On Apr 2, 2010, at 10:28 AM, Joe F. wrote:

The tutorial shows how to make the library be included when you're  
starting from a new main stack/substack combo; but an existing stack  
with data grid has to be taken apart to go into a new main stack (my  
case), so this probably caused all the confusion.


Okay. If you happen to come up with a recipe that causes problems for  
the standalone let me know and I will add some notes to the lesson.


Thanks,

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: DataGrid Forms, checkboxes and Pull-Down buttons

2010-04-01 Thread Trevor DeVore

On Mar 31, 2010, at 11:08 PM, John Patten wrote:


The problem is with my checkbox button. The script I used is:

Checkbox Button Column Behavior-
getProp dgDataControl
  return the long id of me
end dgDataControl

on mouseDown pMouseBtnNum
  dgMouseDown pMouseBtnNum
  setDataOfIndex the dgHilitedIndexes of me, the dgColumn of the  
target, (the hilited of target)

end mouseDown

There are two problems. The first is that when I look at the data in  
the Data Grid after highlighting the checkbox, the data from the  
datagrid reports that the hilite is 'false. If I uncheck the  
checkbox, and grab the data again, the Data Grid reports that the  
hilite is 'true. It is reversed from what is normal.


Use mouseUp rather than mouseDown. On mouseDown the hilite of the  
checkbox has not been updated yet.


Second problem is that if I click in the column with the check box,  
missing the button, I get an error stating that the (column) does  
not have that property (assume it means the hilite property). I  
attempted to put an:


Don't use 'the target', use 'of me'. When you click in the column but  
not on the checkbox then the target is not a button with a hilited  
property. Try this:


SetDataOfIndex the dgIndex of me, the dgColumn of me, the hilited of  
button 1 of me


If you just want to update the value when the checkbox itself is  
clicked on then check the target:


if word 1 of the target is button then
SetDataOfIndex the dgIndex of me, the dgColumn of me, the hilite  
of button 1 of me

end if

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Data grids in standalones

2010-04-01 Thread Trevor DeVore

On Apr 1, 2010, at 9:32 AM, Joe F. wrote:

In my case the project was an existing stack with a datatgrid that  
had already been built as a standalone, copied and changed many times.
Then I decided to try the splash/launcher scheme, so the stack and  
data grid template became substacks of the main.
So there is a stack named Data Grid Template 12xxx (whatever  
number)


Was the Data Grid Templates X stack a substack of the  
launcher stack that you built the standalone stack with or a substack  
of the mainstack that the launcher loaded after startup?



At one point I noticed that datagrid template stack has a title:
Editing template for group DataGrid 1 of card id 1002 of stack / 
Volumes/Server Stuff/Joe's Stacks/OriginalStackName.rev


The file name and path are both obsolete. Maybe that has something  
to do with the problem.


I think the IDE just assigns that title when you edit the row  
template. I don't think that would cause any problems.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: DataGrid Forms, checkboxes and Pull-Down buttons?

2010-03-31 Thread Trevor DeVore

On Mar 30, 2010, at 1:43 PM, John Patten wrote:

I have been searching the list and found those same resources you  
describe. I'm closer, but still not quite getting the concept. I  
noticed that tutorial examples are using Table and not Form  
DataGrids.  I have been using the Form version of the DataGrid, are  
the examples you mention only workable when the DataGrid is a Table  
style?


Yes, the example will work with a form.

These are the steps you will go through when working with the data in  
your data grid:


1) Assign data to data grid. Data grid stores internal array.

2) The FillInData handler in the row template inserts data from array  
into UI controls.


3) User interacts with UI control (clicks on checkbox, makes selection  
using option menu)


4) You store result of user interaction back in data grid array.

5) You ask the data grid for the value of the array using the  
dgDataOfIndex/dgDataOfLine or GetDataOfIndex/GetDataOfLine.


At which point are you getting stuck?

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Data grids in standalones

2010-03-31 Thread Trevor DeVore

On Mar 30, 2010, at 7:40 PM, Sarah Reichelt wrote:


Can I tell the standalone builder to include the data grid library
even if setting inclusions manually?
Or do I have to un-protect my stack to get this to work.


Add a Data Grid Templates substack and the standalone builder will  
include

the Data Grid library:

http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7339-What-Do-I-Need-to-Do-To-Deploy-a-Standalone-With-A-Data-Grid-


Yes, I read this lesson, but the screen shots showed that you had the
Standalone Builder searching for inclusions.
When I selected the inclusions manually, there was no option to select
the Data Grid library and I did not think it was being included.
I was having other problems at the time, so I may be wrong on this,
but please could you confirm this.


Confirmed. As long as you have a stack that starts with Data Grid  
Templates  then the data grid library is included. My test:


1) Create stack.

2) Configure standalone settings. Just switched radio menu from search  
to select inclusions.


3) Create substack named Data Grid Templates Dud

4) Add button to main stack with script:

on mouseUp
answer there is a stack revdatagridlibrary
end mouseUp

5) Build standalone and test. Clicking mouse answers true.

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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


RSS feed for revLessons

2010-03-31 Thread Trevor DeVore
For those who aren't aware there is an RSS feed for new lessons that  
the folks at RunRev have been creating at http://lessons.runrev.com.  
Subscribing is an easy way to see the latest lessons that are being  
created for desktop, mobile and server platforms.


The RSS feed url is:

http://lessons.runrev.com/spaces/lessons.rss

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.com

Email has been scanned for viruses by Altman Technologies' email management 
service - www.altman.co.uk/emailsystems
___
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: DataGrid Forms, checkboxes and Pull-Down buttons?

2010-03-30 Thread Trevor DeVore

On Mar 29, 2010, at 6:11 PM, John Patten wrote:

I'm using datagrids to display some data out of a mySQL database. I  
created a check box and a option button in the template for my data  
grid row.


I would like to be able to check if data row checkbox hilite is true  
or not and would like to store data in my db based on the option of  
my option button.


How do I get the hilite of my individual checkboxes in each row, and  
along the same lines, how would I get the information selected in my  
option button from each row of the datagrid?


Does this lesson on storing an option menu value help?

How Can I Store An Option Menu Value When The User Makes a Selection?:  
http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7317-How-Can-I-Store-An-Option-Menu-Value-When-The-User-Makes-a-Selection- 



If you update the data associated with a row when the UI element  
(checkbox or option menu) changes then you can just grab the data from  
the data grid whenever you need the current value (see GetDataOfIndex/ 
Line or the dgDataOfIndex/Line in API docs).


http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7344-Data-Grid-API

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Data grids in standalones

2010-03-30 Thread Trevor DeVore

On Mar 29, 2010, at 8:38 PM, Sarah Reichelt wrote:


Can I tell the standalone builder to include the data grid library
even if setting inclusions manually?
Or do I have to un-protect my stack to get this to work.


Add a Data Grid Templates substack and the standalone builder will  
include the Data Grid library:


http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7339-What-Do-I-Need-to-Do-To-Deploy-a-Standalone-With-A-Data-Grid-

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Data grids in standalones

2010-03-30 Thread Trevor DeVore

On Mar 30, 2010, at 1:30 PM, Joe F. wrote:

I just had to deal with this and the solution was to manually put  
revdatagridlibrary.rev into the compiled app's bundle.

For OS X = MyApp.appContentsMacOS
For Windows in the app folder at the same level as the executable.

My project was a completed stack (with substacks, including its own  
datagrid template) that I had been compiling as a standalone but  
then wanted to move it into a splash stack arrangement.


The Datagrid Template Dud didn't work for me.


The stack needs to be named Data Grid Templates Dud.

I'm not aware of any cases where this won't work if you create a  
substack of the stack you are building a standalone with named Data  
Grid Templates Dud. If you have one let me know and I will update the  
lesson.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Automatic Builds

2010-03-29 Thread Trevor DeVore

On Mar 29, 2010, at 4:56 AM, David Bovill wrote:


OK _ I just checked out the latest glxApp
tutorialshttp://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/5668-How-Do-I-Package-My-Application-For-Use-With-An-Installer-Or-Auto-Update- 


it seems that you need to use the Rev IDE to create the standalones:

*Note: *Currently you need to build the executables for both OS X and
Windows before using the application packager.

And that you can't use the glx application packager outside of the  
IDE:
The application packager would ideally run as a standalone  
application but
during the packaging process some scripts are modified which exceed  
the 10
line limit. So for the time being you must package from within the  
IDE.


But it may still be possible to automate from within the IDE? Has  
anyone
hacked into the rev / and/or glxApp stacks to automate builds in  
cases where
you need to do this daily? NB - the splash stack approach will work  
in some
cases, but may not work for revWeb applications, and won't work for  
mobile

apps!


On the Google Group I handed out a url to an unreleased version of the  
framework a few weeks ago. The plugin included with that distribution  
has a will that will automatically build standalones for you. Just  
look on the General tab. Here is the thread with the download link at  
the end:


http://groups.google.com/group/glxapp/browse_thread/thread/c0c7cc1607be2e4b

I added this in when I kept getting customers who complained that the  
version info in my executables didn't match the about screen during  
the BETA testing phase. If you just update your stacks when you  
automatically install an update then your version numbers will always  
be out of sync. For this reason I always update both stacks and  
executables now.


You will notice that the build button is included with the IDE plugin  
rather than the application packager. This is because I have to code  
sign the Windows executable before I can send it out to users and I  
haven't sat down to figure out if I can automate when running on OS X  
and using VMWare.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: data grid by hand doesn't create a data grid templates' substack

2010-03-24 Thread Trevor DeVore

On Mar 24, 2010, at 1:01 PM, Andre.Bisseret wrote:

When one drags a data grid from Tools one gets a data grid templates  
substack nnn


But if one creates a datagrid with:
--
copy group DataGrid of group Templates of stack  
revDataGridLibrary to card 1 of this stack

put it into theDataGridRef
--
there is not such a substack.


Correct. The IDE automates this part. If you are doing everything  
yourself then you have to create the substack yourself.


then I suppose that the data grid will work only in the IDE? (being  
dependent of the revDataGridLibrary)


It will work in a standalone as long as you create a stack that starts  
with Data Grid Templates stack.



Could be that In the lesson, I don't well understand the following:

set the dgProp[row template] of theDataGridRef to the long id of  
group MyRowTemplate of stack

MyStack
You should probably create this ahead of time using the IDE. For  
example, you could create a data
grid and then delete it while leaving the row template behind (it  
will exist on a card in Data Grid

Templates xxx stack).
--
With what should I replace MyRowTemplate?


The long id of the row template group you want to use. The Data Grid  
won't work if you don't assign a row template to it. The IDE does this  
for you and the row template resides on one of the cards in the Data  
Grid Templates stack.


Unless you have a need in your program to dynamically create Data  
Grids I would recommend you use the Tools Palette.


Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: Still Having Data Grid Row Coloring Problems

2010-03-24 Thread Trevor DeVore

On Mar 23, 2010, at 8:14 PM, Len Morgan wrote:
This worked just like I wanted with one exception which I may not be  
able to get (and I'm VERY happy with just having the colored  
lines).  You already have a column separator line but it would be  
much easier to read across (this list takes almost 2/3rds of the  
screen width) if there were row borders too.  Is there some way to  
get both colors AND row separator lines?  I noticed that the  
alternating row colors kind of does this for you but it's not quite  
the visual effect I was after.


You could get this if you create a custom template for each column.  
The template might consist of a field and a line graphic. You would  
then just resize the field and line graphic in the column behavior  
script.


Start by following the directions here: 
http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7311-How-Do-I-Customize-A-Table-s-Columns-

After customizing one of your columns to look/act like you want using  
the above method you can just make duplicates of the column template  
group and name the duplicates after the other columns in your table.  
All of the duplicates will point to the same column behavior script so  
you just have to update your code in one place.


Let me know if you need more clarification on any of the above.

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: sqlYoga: best way to import lots of data

2010-03-24 Thread Trevor DeVore

On Mar 24, 2010, at 3:27 PM, David Bovill wrote:

I'm working on a database for rev handlers using sql yoga. I want to  
import
a few thousand hander references into the db. So far I've got  
something

like:

put sqlrecord_CreateObject (handler) into theRecordA


 sqlrecord_set theRecordA, name, menu_CreateTable
 sqlrecord_set theRecordA, type, c
 sqlrecord_set theRecordA, object, scriptObject
 sqlrecord_set theRecordA, number, 1

 sqlrecord_create theRecordA


I'm thinking it would be better / faster to create one big numerically
indexed array and then update - any ideas on the syntax for that?


sqlrecord_create will take a numerically indexed array.

theRecordsA[1] = a record array
theRecordsA[2] = another record array

So you could update your code to stuff each record you create into an  
index of a theRecordsA array and then pass the theRecordsA array to  
sqlrecord_create.


...

put sqlrecord_CreateObject (handler) into theRecordA

sqlrecord_set theRecordA, name, menu_CreateTable
sqlrecord_set theRecordA, type, c
sqlrecord_set theRecordA, object, scriptObject
sqlrecord_set theRecordA, number, 1

put theRecordA into theRecordsA[the number of elements of theRecordsA  
+ 1]


...

sqlrecord_create theRecordsA

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Datagrid edit cell question

2010-03-24 Thread Trevor DeVore

On Mar 24, 2010, at 3:33 PM, Marcello Bertoli wrote:


I have some questions about editing data directly inside datagrids.

The scenario is a datagrid where the user can edit only certain  
columns. I've accomplished this turning off the allow text editing  
of the datagrid and allowing the text editing of the column I want  
in the mouseDoubleUp handler. Here it is a sample code:


I think that setting the dgColumnIsEditable to false for the columns  
you don't want to edit should do the trick. Try that. Docs are on this  
page:


http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7343-Data-Grid-Properties

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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


  1   2   3   4   5   6   7   8   9   10   >