Re: Pulling Unicode Data from a DataGrid

2013-03-19 Thread Trevor DeVore
On Mon, Mar 18, 2013 at 5:04 PM, James Little littlejam...@mac.com wrote:

 We're translating our app SmoothieRx into Japanese and have been
 struggling to get UTF-16 text from a DataGrid. We've tried all sorts of
 combinations of uniEncode, uniDecode on the data and it all comes out
 garbled. We first overrode the DataGrid, so we can see that the Japanese in
 the datagrid is correct. But, when we pull it out using GetDataOfLine or
 dgDataOfLine and then try to decode it, it is garbled. Current thinking is
 that we need to create another handler like GetUnicodeDataOfLine. Any ideas?


Todd,

GetDataOfLine and dgDataOfLine return the exact data you stored in the data
grid so you shouldn't need any additional handlers.

A couple of questions:

1) Are you populating the data grid with an array containing UTF-16 data?

2) When you display the Japanese text in the data grid are you setting the
unicodeText of a field in the row?

3) Is the user updating this Japanese text at all or is it read-only?

4) What conversions are you trying to run on the data when you pull it out
with GetDataOfLine?

-- 
Trevor DeVore
Blue Mango Learning Systems
www.clarify-it.com-www.screensteps.com

-- 
Trevor DeVore
Blue Mango Learning Systems
www.clarify-it.com-www.screensteps.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Pulling Unicode Data from a DataGrid

2013-03-19 Thread James Little
1) Are you populating the data grid with an array containing UTF-16 data?
UTF 8, I overrode the default behavior and when I FillInData: I do this:
 set the unicodetext of the long ID of me to uniencode(pData, utf8) 
and this works great. But, when I tried converting to UTF-16, then it is 
garbled.

 set the unicodetext of the long ID of me to uniencode(pData, utf16)

2) When you display the Japanese text in the data grid are you setting the
unicodeText of a field in the row?
-Yes, see above script.

3) Is the user updating this Japanese text at all or is it read-only?
-It's read-only.

4) What conversions are you trying to run on the data when you pull it out
with GetDataOfLine?
   put uniDecode(uniEncode(tVar, UTF16)) into tVar
We basically want to compare UTF-16 strings.

Thanks Trevor for digging into this. :D

-Todd
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Hi-Res imaging in LiveCode

2013-03-19 Thread FlexibleLearning.com
I have found that printing an image at high resolution is not
straightforward in LiveCode. 'Squishing' a large version down to say 50%
dimensions ought to increase the pixel density, but although the kb size is
large the pixel denisty stays at 72dpi. Something to do with how the engine
renders images, I believe.

However...

If I do not import (copy and paste) and resize but 'set the fileName' and
resize instead, the printed output does indeed seem to improve by the
magnitude of squished-ness.

If you already know, please move on, but I am quite chuffed to have
discovered this for a current large-poster display project that is being
ouput from LC to pdf.

Hugh Senior
FLCo


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Pulling Unicode Data from a DataGrid

2013-03-19 Thread Trevor DeVore
On Tue, Mar 19, 2013 at 1:21 PM, James Little littlejam...@mac.com wrote:

 1) Are you populating the data grid with an array containing UTF-16 data?
 UTF 8, I overrode the default behavior and when I FillInData: I do this:
  set the unicodetext of the long ID of me to uniencode(pData,
 utf8)
 and this works great. But, when I tried converting to UTF-16, then it is
 garbled.

  set the unicodetext of the long ID of me to uniencode(pData,
 utf16)


uniencode always converts to UTF-16. unidecode always converts from UTF-16.
The second parameter specifies the encoding the text is currently in. So
the above shouldn't work as your text is not in UTF16 format.


 4) What conversions are you trying to run on the data when you pull it out
 with GetDataOfLine?
put uniDecode(uniEncode(tVar, UTF16)) into tVar
 We basically want to compare UTF-16 strings.


Your data is encoded as UTF-8 so you have to encode to get to UTF-16.

put uniencode(tVar, utf8) into theUTF16Text

-- 
Trevor DeVore
Blue Mango Learning Systems
www.clarify-it.com-www.screensteps.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Excel question in forums

2013-03-19 Thread Colin Holgate
Someone tracked us down via the Facebook page. Could one of you hard core file 
reader types take a look at this question:

http://forums.runrev.com/viewtopic.php?f=7t=14469




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Pulling Unicode Data from a DataGrid

2013-03-19 Thread James Little

Thanks so much Trevor and Nicolas! Unicode text has been my bane of existence 
for the last few days/weeks. I can now move forward. 

Trevor: Your suggestion worked! I'm very happy. put uniencode(tVar, utf8) 
into theUTF16Text was the key.

Nicolas: I will be bookmarking this code for later use. :D

-Todd

P.S. I think I might take a nap after this. Too much excitement.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Pulling Unicode Data from a DataGrid

2013-03-19 Thread Trevor DeVore
On Tue, Mar 19, 2013 at 3:08 PM, James Little littlejam...@mac.com wrote:


 Trevor: Your suggestion worked! I'm very happy. put uniencode(tVar,
 utf8) into theUTF16Text was the key.


Good. Unicode is so much fun :-)

One other thing to be aware of - when using uniencode and unidecode the
byte order in the UTF16 text is dependent on the processor your application
is running on. See the docs for uniencode. What this means is that if you
have UTF-16 text from some other source then you have to make sure that it
uses the same byte order when you do comparisons. I find it easier to do
comparisons on UTF-8 text when working with 3rd party data.

-- 
Trevor DeVore
Blue Mango Learning Systems
www.clarify-it.com-www.screensteps.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Where did all the color go?

2013-03-19 Thread J. Landman Gay

On 3/18/13 6:16 PM, Cal Horner wrote:


So It must have been the preferences stack.

The only niggling thing is that vague worry about stability. Wouldn't you
think that after reaching version 5.5.4 of a product it would have more
stability.


I think a script somewhere must have set the color info that way, since 
so far you're the only person to have seen the problem as far as I know.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


How to select lines in a field under a scroller in IOS

2013-03-19 Thread Michael Doub
Can someone give me some advice as to how to allow the user to select lines in 
a field that is under an IOS scroller?   I want the field to be able to scroll, 
but I also want the user to be able select a set of lines.

Thanks
   Mike


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Xcode 4.6.1

2013-03-19 Thread Chip Thomas
I tried selecting the Xcode.app and received an error.

Then I opened the Contents and tried to select the Developer folder and it
won't allow me to select that folder.

On Mon, Mar 18, 2013 at 8:24 PM, Rick Harrison harri...@all-auctions.comwrote:

 Hi Chip,

 Yes, I just did the same thing.  Same problem.

 You have to repoint LiveCode to the SDK.
 Of course when you try to use Find to
 locate it, all one finds are old versions, because
 Apple has now hidden things inside Xcode itself.

 I had to search old LC emails for the clues.

 Go to your LiveCode Preferences

 Under Mobile Support

 add an entry

 /Applications/Xcode.app/Contents/Developer

 (Selecting Xcode may be enough as the LC seems smart
 enough to know what to do next.)

 Close Preferences

 (You might have to restart LC for this to work
 I don't recall)

 Then under the Development Menu
 select Test Target and choose the
 simulator you want.

 I hope that does it for you.

 Good luck!

 Rick



 On Mar 18, 2013, at 9:31 PM, Chip Thomas livecode.l...@gmail.com wrote:

  So I updated my device to 6.1 and so then I had to update Xcode.  But
 now I
  can't get LiveCode to work with this new version.  Keep getting an error
  that Armv 7 builds require the iOS 6.0 SDK to be installed.
 
  How can I fix this?
 
  Thanks in advance!
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode


 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to select lines in a field under a scroller in IOS

2013-03-19 Thread Devin Asay

On Mar 19, 2013, at 2:24 PM, Michael Doub wrote:

 Can someone give me some advice as to how to allow the user to select lines 
 in a field that is under an IOS scroller?   I want the field to be able to 
 scroll, but I also want the user to be able select a set of lines.

Mike,

Sounds like you're just using a LiveCode field wrapped in an iOS scroller. You 
should just be able to set the autohilite and listbehavior properties to true 
on the LiveCode field and have them hilight in the iOS app. Or am I 
misunderstanding what you're doing?

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to select lines in a field under a scroller in IOS

2013-03-19 Thread Michael Doub
Devin, you are correct.   I have a LiveCode field wrapped in an IOS scroller.   
I have been playing with various list behavior and autohilite properties.   
Since I am trying to select multiple lines at the same time I am seeing a 
conflict between the behavior of the field and the scroller.

Looking at the behaviour of the native input control,  apple seems to use a 
double tap to get into a select mode.  They seem to turn off the scroll while 
the selection is taking place then turn it back on again.  

It seems that I need to figure out how to disable scrolling during the 
selection process and then enable it again.

-= Mike


On Mar 19, 2013, at 5:07 PM, Devin Asay devin_a...@byu.edu wrote:
 
 Mike,
 
 Sounds like you're just using a LiveCode field wrapped in an iOS scroller. 
 You should just be able to set the autohilite and listbehavior properties to 
 true on the LiveCode field and have them hilight in the iOS app. Or am I 
 misunderstanding what you're doing?
 
 Devin
 
 
 Devin Asay
 Office of Digital Humanities
 Brigham Young University
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to select lines in a field under a scroller in IOS

2013-03-19 Thread Mark Talluto

On Mar 19, 2013, at 2:27 PM, Michael Doub miked...@gmail.com wrote:

 Devin, you are correct.   I have a LiveCode field wrapped in an IOS scroller. 
   I have been playing with various list behavior and autohilite properties.   
 Since I am trying to select multiple lines at the same time I am seeing a 
 conflict between the behavior of the field and the scroller.
 
 Looking at the behaviour of the native input control,  apple seems to use a 
 double tap to get into a select mode.  They seem to turn off the scroll while 
 the selection is taking place then turn it back on again.  
 
 It seems that I need to figure out how to disable scrolling during the 
 selection process and then enable it again.
 
 -= Mike


Here is some code that I use for my scrolling fields.  I can determine if you 
are clicking or scrolling.  It will also give you a tap to end of field 
(opposite of Apples tap at top of screen to quick scroll to top feature).


on LC_MESSAGES
end LC_MESSAGES
on preOpenCard
 put false into gWeAreScrollingFlag

 if the environment is mobile then
  set the traversalOn of fld search of card gSettingsA[search] of 
stack gSettingsA[mainStack] to false
  set the lockText of fld search of card gSettingsA[search] of 
stack gSettingsA[mainStack] to true
  set the doubleClickDelta to 100
  set the vScrollBar of fld users to false
 else
  set the doubleClickDelta to 4
  click at the loc of fld find
  set the vScrollBar of fld users to true
 end if
 
 if gSettingsA[hiliteColor]  empty then set the hiliteColor of fld 
users to gSettingsA[hiliteColor] else set the hiliteColor of fld users to 
255,114,0 
end preOpenCard



command csGetDatabaseFirstTime
 --DOWNLOAD THE DATABASE ON FIRST RUN
 if gFirstRun then
  set the vis of fld users to false
  
  flashInternetIndicatorOff the short name of this card,the short name 
of this stack
  put false into gFirstRun
  
  if the environment is mobile then
   --KEYBOARD
   mobileSetKeyboardType default
   set the acceleratedRendering of this stack to true
   iphoneUseDeviceResolution false
   
   --CREATE SCROLLER FOR FIELD USERS IF NEEDED
   put mobileControls() into tControlList
   if Users Scroller is not in tControlList then
send csSetupMobileScroller  users,gUsers to me in 
10 ticks
   end if
  end if
  
  set the vis of fld users to true
 end if
end csGetDatabaseFirstTime



on csTraversalOn
 set the traversalOn of fld search of card gSettingsA[search] of stack 
gSettingsA[mainStack] to true
end csTraversalOn



on CREATE_SCROLLER
end CREATE_SCROLLER
on csSetupMobileScroller pField,pGroup
 if the environment  mobile then exit csSetupMobileScroller
 
 --SET UP THE USERS FIELD AND DATABASE GROUP
 lock screen
 set the vScroll of group pGroup to 0
 set the vScroll of fld pField to 0
 
 set the vis of fld pField to true
 set the listbehavior of field pField to true
 put the formattedHeight of field pField into tHeight
 put the width of field pField into tWidth
 
 --GIVE FIELD EXTRA SPACE SO WE CAN BOUNCE FIELD WITH LESS THAN A FULL 
SCREEN OF TEXT
 put the height of grp pGroup into tDatabaseHeight
 if tHeight  tDatabaseHeight + 10 then
  put true into tShortField
  set the height of field pField to tDatabaseHeight + 1
 else
  --DO NORMAL SPACING
  set the height of fld pField to tHeight
 end if
 
 put the height of fld pField into tHeight
 put the top of group pGroup into tDatabaseTop
 set the top of fld pField to 65
 
 put the rect of group pGroup into tRect
 set the unboundedvScroll of group pGroup to true
 
 --CREATE SCROLLER
 mobileControlCreate scroller,Users Scroller
 put the result into gUsersScrollerId
 mobileControlSet gUsersScrollerId,rect,tRect
 
 mobileControlSet gUsersScrollerId,contentRect,(0,0,tWidth,tHeight)
 
 mobileControlSet gUsersScrollerId,visible,true
 mobileControlSet gUsersScrollerId,canBounce,true
 
 mobileControlSet gUsersScrollerId,declerationRate,fast
 mobileControlSet gUsersScrollerId,scrollingEnabled,true
 mobileControlSet gUsersScrollerId,canScrollToTop,true
 mobileControlSet gUsersScrollerId,delayTouches,false
 mobileControlSet gUsersScrollerId,canCancelTouches,true
 
 mobileControlSet gUsersScrollerId,hIndicator,false
 mobileControlSet gUsersScrollerId,vIndicator,true
 
 mobileControlSet gUsersScrollerId,indicatorInsets,0,0,5,0
 mobileControlSet gUsersScrollerId,vScroll,0
 mobileControlSet gUsersScrollerId,hScroll,0
 
 
 --SCROLL TO THE END OF THE FIELD
 --IF THE FIELD IS FULL OF TEXT
 

Free Valentina Studio, Server ADKs for LiveCode Upgraded to 5.1

2013-03-19 Thread Lynn Fredricks
Hello all,

Valentina products, including the free Valentina Studio, Valentina DB ADK
for LiveCode, Valentina Reports ADK for LiveCode and Valentina Server are
all updated to version 5.1.

The new SSH features should be useful for working with remote servers like
you might use with On-Rev with Valentina Studio. Also, if you are a
Valentina Developer Network customer, Valentina Server now incorporates
powerful email functions.

Scroll down for the entire PR if you would like, but you can get your free
version of Valentina Studio and Server now from http://www.valentina-db.com.

Best regards,

Lynn Fredricks
President
Paradigma Software
http://www.paradigmasoft.com

Valentina SQL Server: The Ultra-fast, Royalty Free Database Server 



=

Beaverton, Oregon - Paradigma Software is pleased to announce the release of
database and reports tool Valentina Studio 5.1 and the enterprise reports
and database server Valentina Server 5.1 for Windows, Mac OS X and Linux.

Valentina Studio 5.1 lets you manage, query and administer popular databases
including MySQL, Postgre, SQLite and Valentina DB. Valentina Studio 5.1 is
available for Mac OS X, Windows and Linux for free.

* Free Valentina Studio 5.1 now allows reverse-engineering with creation and
saving of diagrams; Studio Pro 5.1 allows forward-engineering features to
modify schema and generate scripts
* New Data Transfer Tool allows the easy copying of few/all records from one
DB into another
* New SSH support allows highly secure connections to remote DB servers such
as mySQL, PostgreSQL and Valentina Server
* New SSH parameters can be embedded into Valentina Report templates

Valentina Studio Pro 5.1 has additional features over Valentina Studio,
including Query Builder, SQL DIFF, database diagramming and a powerful
visual Reports Designer. Reports generated from Valentina Studio 5 can be
exported as web pages, PDF and images. Valentina Studio Pro is available for
$199.

Valentina Server 5.1, allows reports to be served from many database
sources, including MySQL, Postgre, SQLite and Valentina DB. It also
incorporates the object-relational, columnar database Valentina DB.
Valentina Server 5.1 includes new features:

* New support for MAIL SQL command to allow email as data
* Newly improved Preference Panel to allow users of the free version of
Valentina Server to easy start it under Mac OS X

Valentina 5.1 is available in an entry version for free for Mac OS X,
Windows and Linux. A free iOS client is available for mobile management.

Developer solutions for local applications allow incorporating the ultra
fast Valentina DB and Valentina Reports engines into desktop applications
and cost $199 per platform. Valentina ADK 5.1 (application developer kits)
for Valentina DB and Valentina Reports integrate the new features available
in the Valentina kernel.

Valentina Reports 5.1 ADK integrates visually rich business reports into
applications. Valentina Reports 5 supports connectivity to MySQL, Valentina
DB, Postgre, SQLite and ODBC data sources, with royalty free deployment.

Valentina DB 5.1 ADK allows developers to build local datastores using the
ultra fast Valentina DB engine and to connect to remote Valentina Server,
with royalty free deployment.

All products are immediately available from the Paradigma Software website.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Sending mouseUp

2013-03-19 Thread Peter Haworth
Got a problem sending a mouseUp event to a button during preOpenCard.

My preOpenCard handler calls another handler that contains the send of the
mouseUp.  When that handler is called from preOpenCard, the mouseUp handler
never receives the message - I have an answer statement as the first
statement in the button mouseUp handler and it never triggers.

The same handler is called from other places after the card is opened and
the mouseUp message is received OK.

I changed the send to a dispatch and checked the it variable after the
dispatch and it contains handled even during preOpenCard processing.
 Also tried the send in form of send with various times up to 1000
milliseconds, still no luck

Does anyone know of any issues sending mouseUp messages during preOpenCard?
 I've run into several problems with code not working as expected during
preOpenCard but haven't run into this one before.

Pete
lcSQL Software http://www.lcsql.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sending mouseUp

2013-03-19 Thread Mike Bonner
You might try hard pathing the send. If there is a context issue going on
that should solve it, and during preopencard I would wonder if the context
is incorrect when the send is done.  so dispatch or send it to button
whatever card whatever of stack whatever to test and eliminate the
possibility.


On Tue, Mar 19, 2013 at 6:10 PM, Peter Haworth p...@lcsql.com wrote:

 Got a problem sending a mouseUp event to a button during preOpenCard.

 My preOpenCard handler calls another handler that contains the send of the
 mouseUp.  When that handler is called from preOpenCard, the mouseUp handler
 never receives the message - I have an answer statement as the first
 statement in the button mouseUp handler and it never triggers.

 The same handler is called from other places after the card is opened and
 the mouseUp message is received OK.

 I changed the send to a dispatch and checked the it variable after the
 dispatch and it contains handled even during preOpenCard processing.
  Also tried the send in form of send with various times up to 1000
 milliseconds, still no luck

 Does anyone know of any issues sending mouseUp messages during preOpenCard?
  I've run into several problems with code not working as expected during
 preOpenCard but haven't run into this one before.

 Pete
 lcSQL Software http://www.lcsql.com
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sending mouseUp

2013-03-19 Thread Peter Haworth
Hi Mike,
Good thinking, I had not included the card and stack in the path to the
button.  However, I changed that and still no joy.

What's really strange is that it contains handled after a dispatch to
the button, yet its clear the message is never making it that far.

I've narrowed this down a bit further.   The problem only occurs when I run
Livecode and open the stack from the File menu.  If I then close the stack
and open it again, all works fine.  Even more weird is if I close the stack
and remove it from memory, then open it again from the File menu, all works
fine!  It's just that very first open of the stack after running Livecode
when the problem occurs.

Pete
lcSQL Software http://www.lcsql.com


On Tue, Mar 19, 2013 at 5:15 PM, Mike Bonner bonnm...@gmail.com wrote:

 You might try hard pathing the send. If there is a context issue going on
 that should solve it, and during preopencard I would wonder if the context
 is incorrect when the send is done.  so dispatch or send it to button
 whatever card whatever of stack whatever to test and eliminate the
 possibility.


 On Tue, Mar 19, 2013 at 6:10 PM, Peter Haworth p...@lcsql.com wrote:

  Got a problem sending a mouseUp event to a button during preOpenCard.
 
  My preOpenCard handler calls another handler that contains the send of
 the
  mouseUp.  When that handler is called from preOpenCard, the mouseUp
 handler
  never receives the message - I have an answer statement as the first
  statement in the button mouseUp handler and it never triggers.
 
  The same handler is called from other places after the card is opened and
  the mouseUp message is received OK.
 
  I changed the send to a dispatch and checked the it variable after the
  dispatch and it contains handled even during preOpenCard processing.
   Also tried the send in form of send with various times up to 1000
  milliseconds, still no luck
 
  Does anyone know of any issues sending mouseUp messages during
 preOpenCard?
   I've run into several problems with code not working as expected during
  preOpenCard but haven't run into this one before.
 
  Pete
  lcSQL Software http://www.lcsql.com
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
  subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sending mouseUp

2013-03-19 Thread Mike Bonner
Hmm might try the combination of the 2 things then.  Do a send in time with
absolute pathing.  Also i've noticed recently that inserting a wait 0 with
messages prior to where a problem like this occurs sometimes magically
fixes it.  Its as if there is other housekeeping/engine stuff going on that
interferes despite the message apparently getting through.


On Tue, Mar 19, 2013 at 7:11 PM, Peter Haworth p...@lcsql.com wrote:

 Hi Mike,
 Good thinking, I had not included the card and stack in the path to the
 button.  However, I changed that and still no joy.

 What's really strange is that it contains handled after a dispatch to
 the button, yet its clear the message is never making it that far.

 I've narrowed this down a bit further.   The problem only occurs when I run
 Livecode and open the stack from the File menu.  If I then close the stack
 and open it again, all works fine.  Even more weird is if I close the stack
 and remove it from memory, then open it again from the File menu, all works
 fine!  It's just that very first open of the stack after running Livecode
 when the problem occurs.

 Pete
 lcSQL Software http://www.lcsql.com


 On Tue, Mar 19, 2013 at 5:15 PM, Mike Bonner bonnm...@gmail.com wrote:

  You might try hard pathing the send. If there is a context issue going on
  that should solve it, and during preopencard I would wonder if the
 context
  is incorrect when the send is done.  so dispatch or send it to button
  whatever card whatever of stack whatever to test and eliminate the
  possibility.
 
 
  On Tue, Mar 19, 2013 at 6:10 PM, Peter Haworth p...@lcsql.com wrote:
 
   Got a problem sending a mouseUp event to a button during preOpenCard.
  
   My preOpenCard handler calls another handler that contains the send of
  the
   mouseUp.  When that handler is called from preOpenCard, the mouseUp
  handler
   never receives the message - I have an answer statement as the first
   statement in the button mouseUp handler and it never triggers.
  
   The same handler is called from other places after the card is opened
 and
   the mouseUp message is received OK.
  
   I changed the send to a dispatch and checked the it variable after the
   dispatch and it contains handled even during preOpenCard processing.
Also tried the send in form of send with various times up to 1000
   milliseconds, still no luck
  
   Does anyone know of any issues sending mouseUp messages during
  preOpenCard?
I've run into several problems with code not working as expected
 during
   preOpenCard but haven't run into this one before.
  
   Pete
   lcSQL Software http://www.lcsql.com
   ___
   use-livecode mailing list
   use-livecode@lists.runrev.com
   Please visit this url to subscribe, unsubscribe and manage your
   subscription preferences:
   http://lists.runrev.com/mailman/listinfo/use-livecode
  
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
  subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Xcode 4.6.1

2013-03-19 Thread Rick Harrison
Hi Chip,

What error are you getting?

You should search the archives and the iOS Release Notes for picking the SDK.

Try several approaches, one might just work.  I know it is a real pain, but 
hang in there.

Rick

On Mar 19, 2013, at 4:44 PM, Chip Thomas livecode.l...@gmail.com wrote:

 I tried selecting the Xcode.app and received an error.
 
 Then I opened the Contents and tried to select the Developer folder and it
 won't allow me to select that folder.
 
 On Mon, Mar 18, 2013 at 8:24 PM, Rick Harrison 
 harri...@all-auctions.comwrote:
 
 Hi Chip,
 
 Yes, I just did the same thing.  Same problem.
 
 You have to repoint LiveCode to the SDK.
 Of course when you try to use Find to
 locate it, all one finds are old versions, because
 Apple has now hidden things inside Xcode itself.
 
 I had to search old LC emails for the clues.
 
 Go to your LiveCode Preferences
 
 Under Mobile Support
 
 add an entry
 
 /Applications/Xcode.app/Contents/Developer
 
 (Selecting Xcode may be enough as the LC seems smart
 enough to know what to do next.)
 
 Close Preferences
 
 (You might have to restart LC for this to work
 I don't recall)
 
 Then under the Development Menu
 select Test Target and choose the
 simulator you want.
 
 I hope that does it for you.
 
 Good luck!
 
 Rick
 
 
 
 On Mar 18, 2013, at 9:31 PM, Chip Thomas livecode.l...@gmail.com wrote:
 
 So I updated my device to 6.1 and so then I had to update Xcode.  But
 now I
 can't get LiveCode to work with this new version.  Keep getting an error
 that Armv 7 builds require the iOS 6.0 SDK to be installed.
 
 How can I fix this?
 
 Thanks in advance!
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sending mouseUp

2013-03-19 Thread dunbarx
Pete.


Something like this has come up before. I remember that preOpenCard is 
invoked before the card (and the stack?) is even loaded into memory. I think. 
So there may be no valid target handler yet available to access. Why the 
handled value is set is odd, for sure, but I bet the answer is tangled up 
with the fact that these events are happening just a tad too early, before 
things have settled down.


There were other threads about this sort of thing. I think Jacque chimed in 
with more information.


Test: Does everything work fine if you move the handler to an openCard script?


Craig Newman



-Original Message-
From: Mike Bonner bonnm...@gmail.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Tue, Mar 19, 2013 9:27 pm
Subject: Re: Sending mouseUp


Hmm might try the combination of the 2 things then.  Do a send in time with
absolute pathing.  Also i've noticed recently that inserting a wait 0 with
messages prior to where a problem like this occurs sometimes magically
fixes it.  Its as if there is other housekeeping/engine stuff going on that
interferes despite the message apparently getting through.


On Tue, Mar 19, 2013 at 7:11 PM, Peter Haworth p...@lcsql.com wrote:

 Hi Mike,
 Good thinking, I had not included the card and stack in the path to the
 button.  However, I changed that and still no joy.

 What's really strange is that it contains handled after a dispatch to
 the button, yet its clear the message is never making it that far.

 I've narrowed this down a bit further.   The problem only occurs when I run
 Livecode and open the stack from the File menu.  If I then close the stack
 and open it again, all works fine.  Even more weird is if I close the stack
 and remove it from memory, then open it again from the File menu, all works
 fine!  It's just that very first open of the stack after running Livecode
 when the problem occurs.

 Pete
 lcSQL Software http://www.lcsql.com


 On Tue, Mar 19, 2013 at 5:15 PM, Mike Bonner bonnm...@gmail.com wrote:

  You might try hard pathing the send. If there is a context issue going on
  that should solve it, and during preopencard I would wonder if the
 context
  is incorrect when the send is done.  so dispatch or send it to button
  whatever card whatever of stack whatever to test and eliminate the
  possibility.
 
 
  On Tue, Mar 19, 2013 at 6:10 PM, Peter Haworth p...@lcsql.com wrote:
 
   Got a problem sending a mouseUp event to a button during preOpenCard.
  
   My preOpenCard handler calls another handler that contains the send of
  the
   mouseUp.  When that handler is called from preOpenCard, the mouseUp
  handler
   never receives the message - I have an answer statement as the first
   statement in the button mouseUp handler and it never triggers.
  
   The same handler is called from other places after the card is opened
 and
   the mouseUp message is received OK.
  
   I changed the send to a dispatch and checked the it variable after the
   dispatch and it contains handled even during preOpenCard processing.
Also tried the send in form of send with various times up to 1000
   milliseconds, still no luck
  
   Does anyone know of any issues sending mouseUp messages during
  preOpenCard?
I've run into several problems with code not working as expected
 during
   preOpenCard but haven't run into this one before.
  
   Pete
   lcSQL Software http://www.lcsql.com
   ___
   use-livecode mailing list
   use-livecode@lists.runrev.com
   Please visit this url to subscribe, unsubscribe and manage your
   subscription preferences:
   http://lists.runrev.com/mailman/listinfo/use-livecode
  
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
  subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Valentina DB

2013-03-19 Thread Magicgate Software - Skip Kimpel
Anybody have the latest version of Valentina running in LC?  I used
Valentina years ago with Director and wanted to take advantage of the free
offer.  I have downloaded the LC version and installed it but the install
instructions seem a little old and I don't see where it appears within the
LC structure.

Any advice would be greatly appreciated!

SKIP
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Valentina DB

2013-03-19 Thread Magicgate Software - Skip Kimpel
Never mind I didn't explore the installed files good enough.

SKIP


On Tue, Mar 19, 2013 at 10:02 PM, Magicgate Software - Skip Kimpel 
s...@magicgate.com wrote:

 Anybody have the latest version of Valentina running in LC?  I used
 Valentina years ago with Director and wanted to take advantage of the free
 offer.  I have downloaded the LC version and installed it but the install
 instructions seem a little old and I don't see where it appears within the
 LC structure.

 Any advice would be greatly appreciated!

 SKIP

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sending mouseUp

2013-03-19 Thread Mark Wieder
Pete-

Tuesday, March 19, 2013, 6:47:33 PM, Craig wrote:

 Something like this has come up before. I remember that
 preOpenCard is invoked before the card (and the stack?) is even
 loaded into memory. I think. So there may be no valid target handler
 yet available to access. Why the handled value is set is odd, for
 sure, but I bet the answer is tangled up with the fact that these
 events are happening just a tad too early, before things have
 settled down.

Yep. Why are you trying to call a mouseUp handler on preOpenCard
anyway? Take the code in mouseUp, put it in its own handler, and call
it from mouseUp. Then call the same thing from preOpenCard.

-- in button script
on mouseUp
  doTheStuffThatUsedToBeHere
end mouseUp

on doTheStuffThatUsedToBeHere
  stuffThatUsedToBeHere
end doTheStuffThatUsedToBeHere

-- in card script
on preOpenCard
  dispatch stuffThatUsedToBeHere to button yaddayadda
end preOpenCard

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode