Re: Chart widget and axes which are time values

2022-02-23 Thread FlexibleLearning.com via use-livecode
ChartMaker has this feature with a syntax wizard to format the required
implementation...

http://www.flexiblelearning.com/chartmaker/

Free to try it out and see if it meets your needs.

Hugh Senior


___
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: chartsEngine bug with version 10 of LC

2021-12-28 Thread FlexibleLearning.com via use-livecode
> I?ve encountered a problem with the third-party LiveCode product
> chartsEngine now reporting that LiveCode < version 10.0.0 (dp 1) >  is not
a
> high enough version number. (AnimationEngine was reporting a similar error
> which I was able to fix since the scripts are open.)  ChartsEngine is,
however,
> locked. Originally written by Malte Brill, the current owner is, I
believe,
> Bj?rnke von GierkeI. I?ve tried contacting him but haven?t heard anything.
> Anyone else pondering this issue? I use chartsEngine in two commercial
> mobile apps so I?m hoping to work out a solution rather than rebuild the
> charting layout portion of these apps once building with 10.x versions of
LC is
> required.
Has anyone encountered issues with ChartMaker in LC v10?

Hugh Senior
 
> And just for my own curiosity, (this is what I encountered in
animationEngine
> so I?m assuming something similar in chartsEngine) I?m interested in an
> explanation (rather than my own guess) for why   "9.6.6-rc-1? evaluates as
> not less than 5  but "10.0.0-dp-1? evaluates to less than 5 .
> 
> --
> Scott Morrow


___
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: I Have a Problem With a Plug-In

2020-09-27 Thread FlexibleLearning.com via use-livecode
Assuming your openCard handler is in the script of card 1, from the message
box...

edit the script of cd 1 of stack " CollectMyStacks.rev"

Hugh Senior


> I have? CollectMyStacks.rev, close itself after opens the card
> 
> on opencard
>  send "mouseUp" to button  "Position IDE" in  1 seconds
>  close this stack
> end opencard
> 
> Now, this was a bad idea. How to get the message
> 
>  close this stack
> 
> how to delete that?
> 
> set the lockMessages to true
> 
> it has no affect.
> 
> BR


___
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


get URL problems

2019-12-16 Thread FlexibleLearning.com via use-livecode
Why can I 'launch' this url but not 'get' it?

put
"https://www.alphavantage.co/query?function=TIME_SERIES_DAILY=MSFT
ikey=demo" into tURL
launch url tURL --| Works fine, page loads entirely as expected in default
web browser
get url tURL --| Returns empty, nada, not a sausage
put it into tJSON 


I am using libUrl v1.1.6 300506


Thanks peeps!

Hugh


___
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


Merge PDF

2019-10-17 Thread FlexibleLearning.com via use-livecode
Has anyone got an LC-based method to merge pdf files?

Just asking...

Hugh Senior


___
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: My sticky fingers

2019-06-12 Thread FlexibleLearning.com via use-livecode
Straw grasping here...

on keyDown
  do something
  send "flush" to me in 0
  pass keyDown
end keyDown

on flush
 get flushEvents("all")
end flush

Hugh Senior

On Mon, Jun 10, 2019 at 01:43 Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Everyyytime I try to type someting 
> m figerrs get stuuuck on the keys to 
> long . . .
>
> Especially in LiveCode (!)
>
> So?
>
> on keyDown
>do something
>get me the hell out of this so it doesn't happen more than once end 
> keyDown
>
> ?
>
> Richmond.


___
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


Mobile write to text file woes

2018-09-22 Thread FlexibleLearning.com via use-livecode
I have a little app
It works and makes me smile
It reads text data in a snap
But won't write with "Can't open file"

The path is set the same for both
The file is in the bundle
So why can't I write to the file it reads?
Mutter, mumble, grumble, grumble...


Hugh Senior


___
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


[OT] Accommodation in Edinburgh

2018-09-01 Thread FlexibleLearning.com via use-livecode
We are (finally!) taking a week's holiday north of the border and want to
visit Edinburgh 10-15 September.


Any hotel recommendations? Does not have to be in the city centre!

Hugh


___
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


startUp messaging hierarchy

2018-09-01 Thread FlexibleLearning.com via use-livecode
I find myself unable to answer this rather basic question, and cannot locate
any information...

e.g.
This is both incomplete and also most likely incorrect...

startUp (if engine is not already loaded)
- frontScript:
-- PreOpenStack
-- PreOpenCard
-- openStack
-- openCard
-- preOpenBackGround
-- openBackground

preOpenStack
preOpenCard
openStack
openCard
preOpenBackground (if closed)
openBackground (if closed)

- backscript:
-- PreOpenStack
-- PreOpenCard
-- openStack
-- openCard
-- preOpenBackGround
-- openBackground

Anyone?

Hugh


___
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: fullscreenmode and rect of a substack on mobile device ?

2018-08-24 Thread FlexibleLearning.com via use-livecode
First, I think you have a typo where "/25" should be "-25"...
  set loc group "footer" to ( (item 2 of tRect)/2,(item 4 of tRect)/25 ) #
Typo: -25

Second, for safety, ensure integer values...
 set loc group "footer" to round((item 2 of tRect)/2), (item 4 of tRect)-25 

Third, if still not working on preOpenstack, try...

on preopenstack
  if isMobile() then
mobileSetAllowedOrientations "portrait,portrait upside down,landscape
left,landscape right"
  end if
  hide this stack
end preopenstack

on openStack
  setupStackRect
  show this stack
end openStack 

Hugh

> This thread will never finish (hehe)
> 
> I am still have trouble getting  the two object in the stack in place when
we
> open stack on mobile.
> 
> The resize handlers wrok, and soon as we rotate the phone and back and
> geometry is implemented.
> 
> But not on open stack..
> 
> So I use your script. I was not orienting the stack size against the
screenrect
> first.
> 
> Still not go:
> 
> on preopenstack
> if isMobile() then 
> mobileSetAllowedOrientations "portrait,portrait upside down,landscape
left,landscape right"
> setupStackRect
> end if
> end preopenstack
> 
> --
> 
> # Geometry
> 
> on orientationChanged
> -- setupStackRect
> end orientationChanged
> on setupStackRect pWidth,pHeight
> if pWidth="" and pHeight="" then
> put the effective working screenRect into tRect
> set the rect of this stack to tRect
> set the topLeft of this stack to item 1 to 2 of tRect 
> else
> put the rect of this stack into tRect
> put tWidth into item 3 of tRect # Typo: pWidth
> put tHeight into item 4 of tRect # Typo: pHeight
> set the rect of this stack to tRect
> end if
> set bottom of group "footer" to item 4 of tRect
> set loc group "footer" to ( (item 2 of tRect)/2,(item 4 of tRect)/25 ) #
Typo: -25
> subtract 50 from item 4 of tRect
> set the rect of widget "body" to tRect
> end setupStackRect
> 
> on resizeStack pNewWidth, pNewHeight, pOldWidth, pOldHeight
> # check it is landscape, turn off the navigation Bar
> if pNewWidth > pNewHeight then -- landscape
> put 0, 0, pNewWidth, pNewHeight into tBrowserRect
> set loc widget "body" to (pNewWidth/2,pNewHeight/2)
> hide group "footer"
> else
> put 0, 0, pNewWidth, pNewHeight - 50 into tBrowserRect
> set loc group "footer" to (pNewWidth/2,pNewHeight-25)
> show group "footer"
> end if
> set the rect of widget "body" of me to tBrowserRect
> end resizeStack


___
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: fullscreenmode and rect of a substack on mobile device ?

2018-08-23 Thread FlexibleLearning.com via use-livecode
Coming in late to the thread, but would this not work on all platforms?

on preOpenStack
  setupStackRect
end preOpenStack

on orientationChanged
  --  setupStackRect
end orientationChanged

on setupStackRect pWidth,pHeight
  if pWidth="" and pHeight="" then
put the effective working screenRect into tRect
set the rect of this stack to tRect
set the topLeft of this stack to item 1 to 2 of tRect
  else
put the rect of this stack into tRect
put tWidth into item 3 of tRect
put tHeight into item 4 of tRect
set the rect of this stack to tRect
  end if
end setupStackRect

You would obviously need to handle individual control geometry as needed,
but I found using a (hidden) master group of template graphics to define
regions a straightforward way to implement consistent geometry settings...

Set [the geometry] of [object] to [the geometry] of [graphic]
e.g. set the topleft of fld "About" to the topLeft of grc "template_Body"

Hugh Senior


> Le 22 ao?t 2018 ? 22:24, J. Landman Gay via use-livecode
 a ?crit :
> 
> On 8/22/18 3:13 PM, J. Landman Gay via use-livecode wrote:
>> But the stack should still fill the screen and it doesn't.
> 
> This will resize the stack the same way as your "adapt" handler does, so
you can eliminate that entirely:
> 
> on preopenstack
>  mobileSetAllowedOrientations("portrait")
>  iphoneUseDeviceResolution true,true
>  set the fullscreenmode of stack "ipad" to "exactFit"
> end preopenstack

Many thanks for finding that this command !
Sadly, it?s only for iOS.


___
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: DataGrid image display woes

2018-08-04 Thread FlexibleLearning.com via use-livecode
 I recently wrote... 

> Okay, I have a datagrid Form with a template to display an image and 4
fields.
> 
> The fields display the correct data for each line/record, but the unique
image
> for each line/record is not being correctly displayed.
> 
> If the dataGrid height can show all records, the image for the last record
is
> displayed in the first line and all the other images are empty. If the
dataGrid
> requires scrolling to display all the records, only every 7th line
displays an
> image and the image changes as the group is scrolled. I have tried all the
> versions I have from from 5.54 up to 8.1 with the same problem.
> 
> Is this a known issue?
> 
> Hugh Senior


Cancel all that... my object referencing error by omitting "of me". Must be
tyred.

Except now the dataGrid no longer scrolls... Restart the engine... Now it
scrolls.

I should write a book entitled "DataGrids or Voodoo, you decide"

Hugh Senior




___
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


DataGrid image display woes

2018-08-04 Thread FlexibleLearning.com via use-livecode
Okay, I have a datagrid Form with a template to display an image and 4
fields. 

The fields display the correct data for each line/record, but the unique
image for each line/record is not being correctly displayed.

If the dataGrid height can show all records, the image for the last record
is displayed in the first line and all the other images are empty. If the
dataGrid requires scrolling to display all the records, only every 7th line
displays an image and the image changes as the group is scrolled. I have
tried all the versions I have from from 5.54 up to 8.1 with the same
problem.

Is this a known issue?

Hugh Senior


___
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: [ANN] Release 9.0.1 RC-1

2018-07-11 Thread FlexibleLearning.com via use-livecode
Mark Wieder wrote:
 > ...bartender says "we don't serve tachyons in here"
 >
 > A tachyon walks into a bar...

I don't have time for tachyon jokes :)

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: modal window = block handler?

2017-07-10 Thread FlexibleLearning.com via use-livecode
If “popup” is non-blocking then it’s a bug. However, I hope that the 
non-blocking behaviour of “open invis as modal” is retained, or there is no way 
to indicate progress in a modal.

 

Hugh Senior

FLCo

 

From: Andre Garzia [mailto:an...@andregarzia.com] 
Sent: 10 July 2017 19:15
To: How to use LiveCode <use-livecode@lists.runrev.com>
Cc: FlexibleLearning.com <ad...@flexiblelearning.com>
Subject: Re: modal window = block handler?

 

Friends,

 

Just to add a related note here, at least on 9dp5 the "popup" command is also 
not pausing. It is supposed to pause the handler that calls it until menupick 
happens but in my experience here it simple keeps running even while the modal 
is open.

 

This might be related.

 

om om

andre

 

On Mon, Jul 10, 2017 at 2:18 PM, FlexibleLearning.com via use-livecode 
<use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com> > wrote:

Opening a modal as normal (i.e. visible) obviously still does what you
specify. We simply have a 'hidden feature' that enables a non-blocking modal
should it be required (e.g. a progress indicator that prevents user-clicks
on other windows).

Hugh Senior
FLCo

> I'm going to have to disagree here. I open windows modally for the
specific
> purpose of halting code in the calling stack until the modal window is
> dismissed so that I can proceed with input from the user. An Answer dialog
is
> simply a modal stack if I am not mistaken. It's interesting though that a
> hidden window is not modal. I will have to experiment with that.
>
> Bob S
>
>
> > On Jul 10, 2017, at 24:03 , FlexibleLearning.com via use-livecode  livec...@lists.runrev.com <mailto:livec...@lists.runrev.com> > wrote:
> >
> > (modal blocks underlying windows, not necessarily code)



___
use-livecode mailing list
use-livecode@lists.runrev.com <mailto: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




-- 

http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.

___
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: modal window = block handler?

2017-07-10 Thread FlexibleLearning.com via use-livecode
Opening a modal as normal (i.e. visible) obviously still does what you
specify. We simply have a 'hidden feature' that enables a non-blocking modal
should it be required (e.g. a progress indicator that prevents user-clicks
on other windows).

Hugh Senior
FLCo

> I'm going to have to disagree here. I open windows modally for the
specific
> purpose of halting code in the calling stack until the modal window is
> dismissed so that I can proceed with input from the user. An Answer dialog
is
> simply a modal stack if I am not mistaken. It's interesting though that a
> hidden window is not modal. I will have to experiment with that.
> 
> Bob S
> 
> 
> > On Jul 10, 2017, at 24:03 , FlexibleLearning.com via use-livecode  livec...@lists.runrev.com> wrote:
> >
> > (modal blocks underlying windows, not necessarily code)


___
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: modal window = block handler?

2017-07-10 Thread FlexibleLearning.com via use-livecode
If you open invisible, then display it, a modal will not block. This
non-modal behaviour of a modal has been incredibly useful for displaying a
progress  indicator in a modal window. I do not consider it a bug as such
(modal blocks underlying windows, not necessarily code), and would hope this
quirk remains available. Otherwise we would need something like "go stack as
modal with messages".

2p

Hugh Senior

> Hi everyone, i only recently switched to v8 ..and have found out that in
> this version, opening a modal window does not block the handler that
> opened
> it (until the window closes)  did that used to be a bug that is fixed
> now? is it a bug now? or was it a purposeful change in the engine?
> anyone familiar with this?
> 
> Thanks,
> 
> Tom


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

2017-06-28 Thread FlexibleLearning.com via use-livecode
This is how ChartMaker (www.flexibleLearning.com/chartmaker ) works, with
only the required name-value pairs and in any order. It does make
implementing modifications to chart displays a lot easier for exactly the
reasons you give!

Hugh Senior
FLCo

> -Original Message-
> I don't know when OL will be available or how it'll work.  I only know
> one thing it won't support, based on an earlier conversation with Mark
> Waddingham:  R-style arguments (similar in many respects to CSS values).
> 
> In R, things like the plot command have reasonably-useful defaults, so
> that you can just pass in data with nothing else and get a useful result.
> 
> But if you want to tailor it you pass arguments in as name-value pairs,
> e.g.:
> 
>plot(cars, type="o", col="blue", ylim=c(0,12))
> 
> What I like about that is I'm free from having to remember parameter
> order, which also means I don't need to add a hundred commas if I want
> to pass in a value for the 101st param.
> 
> With name-value pairs I can include only the options I want, and in any
> order.
> 
> Extra bonus points that the purpose of any argument is made explicit by
> including its name.  If I see "o" I don't need to count commas and guess
> about what that applies to, I know very clearly looking at the name
> provided with it that it governs the plot type.



___
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


URGENT: Mixed orientation printing to PDF

2017-05-19 Thread FlexibleLearning.com via use-livecode
I have a 5.02 legacy stack that prints A4 pages to PDF using "open printing
to pdf".

The documentation says that the printPaperSize must be set before calling
open printing, suggesting that changes to the printPaperSize after "open
printing" are not supported (I tried, and it seems so).

I can successfully set the printPaperSize to 595,842 for Portrait or 842,595
for Landscape. printPaperOrientation seems redundant and also cannot be
changed after initialisation.

So is it possible to print mixed portrait and landscape pages in the same
PDF?

Help! I only get digests, so please email me direct!

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: Drag List Items Up and Down

2017-02-04 Thread FlexibleLearning.com via use-livecode
This modification honours the minimum and maximum drag line to avoid the
inadvertent insertion of empty lines, and cosmetically works for both list
and standard fields...


-- Field script
on mouseDown
  put the num of lines of me into tmax # Store drag constraint
  put word 2 of the clickLine into tcl
  if not the listBehavior of me then set the textcolor of line tcl of me to
"red" # Cosmetic
  if line tcl of me is empty then
exit mousedown
  end if
  put item 2 of the mouseLoc into tstarty
  put the effective textHeight of me into th
  repeat while the mouse is down
if item 2 of the mouseLoc - tstarty > (th/2) then
  if within (me, the mouseLoc) is true then
lock screen
if tcl (th/2) then
  if within (me, the mouseLoc) is true then
lock screen
put line tcl of me & cr before line (tcl - 1) of me
delete line tcl + 1 of me
subtract 1 from tcl
if tcl<1 then put 1 into tcl # Constrain drag to min lines
if not the listBehavior of me then set the textcolor of line tcl of
me to "red" # Cosmetic
subtract th from tstarty
 if the listBehavior of me then set the hilitedLine of me to tcl #
Update hilitedline
unlock screen
  end if
end if
  end repeat
  if not the listBehavior of me then set the textcolor of line tcl of me to
empty # Cosmetic
end mouseDown

Hugh Senior
FLCo

> On Feb 2, 2017, at 11:48 AM, AndyP via use-livecode  livec...@lists.runrev.com> wrote:
> 
> Modified script
> added
> 
> /if within (field "myField", the mouseLoc) is true then /
> 
> on mouseDown
> 
>   put word 2 of the clickLine into tcl
>   set the textcolor of line tcl of me to "red"
>   if line tcl of me is empty then
>  exit mousedown
>   end if
>   put item 2 of the mouseLoc into tstarty
>   put the effective textHeight of me into th
>   repeat while the mouse is down
>  if item 2 of the mouseLoc - tstarty > (th/2) then
> if within (field "myField", the mouseLoc) is true then
>lock screen
>put cr & line tcl of me after line tcl + 1 of me
>delete line tcl of me
>add 1 to tcl
>set the textcolor of line tcl of me to "red"
>add th to tstarty
>unlock screen
> end if
>  else if tstarty - item 2 of the mouseLoc > (th/2) then
> if within (field "myField", the mouseLoc) is true then
>lock screen
>put line tcl of me & cr before line tcl - 1 of me
>delete line tcl + 1 of me
>subtract 1 from tcl
>set the textcolor of line tcl of me to "red"
>subtract th from tstarty
>unlock screen
> end if
>  end if
> end repeat
>   set the textcolor of line tcl of me to "black"
>   set the hilitedLine of me to tcl
> 
> end mouseDown
> 
> 
> 
> -
> Andy Piddock


___
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