Inserting Image into html text of Field

2011-02-27 Thread RevList
It has been a while since I have done this, but I am building a help system and want to include images in the body of some of my text fields. I have a card (hidden) in my stack that has all of the images in it. now I want to reference those images inline with the html text on a field. I have done

Re: Drag and drop a Bookmark

2011-02-27 Thread Marty Knapp
I just realized I forgot to insert the script (time to go to bed!) This is to drag right from the browser to a field: on dragdrop put url (the dragData) into theHTML put offset("",theHTML)+7 into b put offset("",theHTML)-1 into z put char b to z of theHTML into me put cr & the dra

Re: Drag and drop a Bookmark

2011-02-27 Thread Marty Knapp
My script assumes that you've saved the webloc to disk. If you drag and drop right off the browser window it will just get the url. In that case, you could then grab the url and parse it for the Title tag. Marty Hey Thomas, You need to get the contents of the dragData. Here's a quick a dirty

Re: Drag and drop a Bookmark

2011-02-27 Thread Marty Knapp
Hey Thomas, You need to get the contents of the dragData. Here's a quick a dirty script that will put the name of the bookmark on line 1 and the url on line 2. Put this in the field script: on dragenter set the acceptdrop to true end dragenter on dragdrop set the itemDelimiter to "/"

Re: Grid

2011-02-27 Thread J. Landman Gay
On 2/27/11 9:19 PM, Thomas McGrath III wrote: Jac, Thanks, but that doesn't work when in 'edit group' mode. Alignment in the inspector? It works okay here when editing groups. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On Feb 27, 2011, at 1:54 PM, J. Landman Gay wro

Re: Grid

2011-02-27 Thread Thomas McGrath III
Jac, Thanks, but that doesn't work when in 'edit group' mode. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On Feb 27, 2011, at 1:54 PM, J. Landman Gay wrote: > On 2/27/11 11:30 AM, Thomas McGrath III wrote: >> I guess I should explain more. I have been working with groups

Re: Grabbing/Dragging (was Re: Swipe-able objects in iOS)

2011-02-27 Thread Gerry Orkin
Scott, many thanks! g -- http://gerryorkin.com On 28/02/2011, at 9:23 AM, Scott Rossi wrote: > Recently, Gerry wrote: > >> In HyperCard I used to use the "on mousestilldown" message to make >> objects draggable. LiveCode has a zillion new language elements, so >> before I go old school is th

Re: Disabling Preferences Menu

2011-02-27 Thread Marty Knapp
I knew it was one of the smart ladies on the user list! Thanks for that. Marty Knapp On Mon, Feb 28, 2011 at 3:51 AM, Marty Knapp wrote: Stewart, Change the name of the Edit menu button - like to "EditMenu" and then make the menu items you want. Remove the Preference menu item from the list.

Re: Disabling Preferences Menu

2011-02-27 Thread Sarah Reichelt
On Mon, Feb 28, 2011 at 3:51 AM, Marty Knapp wrote: > Stewart, > > Change the name of the Edit menu button - like to "EditMenu" and then make > the menu items you want. Remove the Preference menu item from the list. Then > in the Inspector change the label of the button "EditMenu" to Edit. LiveCod

Re: OpenField/ExitField Handlers in Datagrid?

2011-02-27 Thread Peter Haworth
Once again, kinda stabbing in the dark but try "pass DeleteFieldEditor" at the end of your DeleteFieldEditor handler Pete Haworth On Feb 27, 2011, at 3:26 PM, RevList wrote: > zryip theSlug on February 27, 2011 at 2:48 PM > -0800 wrote: >> I confirm : in the datagrid's group script. In fact y

Re: OpenField/ExitField Handlers in Datagrid?

2011-02-27 Thread RevList
zryip theSlug on February 27, 2011 at 2:48 PM -0800 wrote: >I confirm : in the datagrid's group script. In fact you can manage the >both in the group: > >on preOpenFieldEditor >enableMtMenu >end preOpenFieldEditor > >on DeleteFieldEditor >disableMyMenus >end DeleteFieldEditor This almost

Re: OpenField/ExitField Handlers in Datagrid?

2011-02-27 Thread zryip theSlug
On Sun, Feb 27, 2011 at 11:17 PM, Peter Haworth wrote: > Good question!  I'm not sure but I think you would put it in the datagrid's > group script. I confirm : in the datagrid's group script. In fact you can manage the both in the group: on preOpenFieldEditor enableMtMenu end preOpenFieldE

Re: Grabbing/Dragging (was Re: Swipe-able objects in iOS)

2011-02-27 Thread Scott Rossi
Recently, Gerry wrote: > In HyperCard I used to use the "on mousestilldown" message to make > objects draggable. LiveCode has a zillion new language elements, so > before I go old school is there now a better way? This is for > something that'll end up in iOS. If you simply want to drag an object

Re: Cursed by insertions

2011-02-27 Thread Peter Haworth
Thanks, that sounds like it should work. I have front scripts for suspendstack and resumestack already so this should be pretty easy. Pete Haworth On Feb 27, 2011, at 1:30 PM, J. Landman Gay wrote: > On 2/27/11 2:12 PM, Peter Haworth wrote: >> I think Richmond is referring to the insertion po

Re: Swipe-able objects in iOS

2011-02-27 Thread John Allijn
I was wondering the same with draging inside lists. The scrollable lists on the iphone bounce when you reach the end. Is one of those 'zillion' new language elements usable for such swipe/scroll and bounce movement within a text field? Sent from my iPad On Feb 27, 2011, at 23:08, Gerry wrot

Re: OpenField/ExitField Handlers in Datagrid?

2011-02-27 Thread Peter Haworth
Good question! I'm not sure but I think you would put it in the datagrid's group script. Pete Haworth On Feb 27, 2011, at 1:52 PM, RevList wrote: > zryip theSlug on February 27, 2011 at 1:25 PM > -0800 wrote: >> Hi Stewart, >> >> Try the DeleteFieldEditor event instead of CloseFieldEditor.

Re: Swipe-able objects in iOS

2011-02-27 Thread Gerry
Oh. I've found the dragImage stuff. So I can drag just an image, then move the object to the mouseup/drop location? g On Mon, Feb 28, 2011 at 9:05 AM, Gerry wrote: > I'm new to LiveCode but I was a very active HyperCard and Director > programmer back when I was young and crazy. Now, 3 career

Re: Drag and drop a Bookmark

2011-02-27 Thread Terry Judd
Is this under Windows? Because on OSX I get the URL and not the title when dragging bookmarks from both Safari and Firefox into a Livecode field. In fact from memory, to get the title on a Mac you need to grab the url, load it and then parse the text between the title tags. Terry... On 28/02/11

Swipe-able objects in iOS

2011-02-27 Thread Gerry
I'm new to LiveCode but I was a very active HyperCard and Director programmer back when I was young and crazy. Now, 3 careers later, I'm taking this stuff up again, as a hobby. In HyperCard I used to use the "on mousestilldown" message to make objects draggable. LiveCode has a zillion new language

Re: OpenField/ExitField Handlers in Datagrid?

2011-02-27 Thread RevList
zryip theSlug on February 27, 2011 at 1:25 PM -0800 wrote: >Hi Stewart, > >Try the DeleteFieldEditor event instead of CloseFieldEditor. So where do I put this script? On DeleteFieldEditor Disable menuItem 1 of button "EditMenu" Disable menuItem 2 of button "EditMenu" Disable menuItem

Re: Cursed by insertions

2011-02-27 Thread J. Landman Gay
On 2/27/11 2:12 PM, Peter Haworth wrote: I think Richmond is referring to the insertion point, not the cursor. He says no, but you've brought up a related issue. I have noticed this before - if you place the insertion point somewhere in an LC control, switch to another application, then switc

Re: OpenField/ExitField Handlers in Datagrid?

2011-02-27 Thread Peter Haworth
Found this in the datagrid manual: "When editing stops (focus leaves field, user presses escape key, etc.) the message DeleteFieldEditor is sent to the data grid. This in turn sends CloseFieldEditor pFieldEditor to pField if the user changed the content or ExitFieldEditor pFieldEditor if no chan

Re: OpenField/ExitField Handlers in Datagrid?

2011-02-27 Thread zryip theSlug
On Sun, Feb 27, 2011 at 10:08 PM, RevList wrote: > Peter Haworth on February 27, 2011 at 12:24 PM > -0800 wrote: >>I think you need to do this in the EditFieldText and CloseFieldEditor >>commands in the datagrid library.  I haven;t used them but they are >>writen up in detail in Trevor's Datagrid

Re: Cursed by insertions

2011-02-27 Thread Peter Haworth
OK, having re-read your original post, I understand what you want, we're talking about two different problems I think. I want the insertion point to stay where it was in LC when I switch to another app then back to LC. When I switch around between any other apps on my Mac, that always happen

Re: OpenField/ExitField Handlers in Datagrid?

2011-02-27 Thread RevList
Peter Haworth on February 27, 2011 at 12:24 PM -0800 wrote: >I think you need to do this in the EditFieldText and CloseFieldEditor >commands in the datagrid library. I haven;t used them but they are >writen up in detail in Trevor's Datagrid Manual. I have been able to enable the menu items by ad

Re: Cursed by insertions

2011-02-27 Thread Richmond
On 02/27/2011 10:12 PM, Peter Haworth wrote: I think Richmond is referring to the insertion point, not the cursor. No; I'm not; but I think my Beta tester is getting a bit confused in this way. I have noticed this before - if you place the insertion point somewhere in an LC control, switch

Re: OpenField/ExitField Handlers in Datagrid?

2011-02-27 Thread Peter Haworth
I think you need to do this in the EditFieldText and CloseFieldEditor commands in the datagrid library. I haven;t used them but they are writen up in detail in Trevor's Datagrid Manual. Pete Haworth On Feb 27, 2011, at 12:08 PM, RevList wrote: > Seems to be my day for questions. > I am buildi

Drag and drop a Bookmark

2011-02-27 Thread Thomas Bähler
Hi I'd like to drag a bookmark off a browser and drop it in a field in LiveCode. So far I get only the titel of the bookmark in the field but not the URL. For instance, I get "iGoogle" but I would like to get "http://www.google.com/ig";. Or even better, I want to retrieve both chunks. How do I d

Re: Cursed by insertions

2011-02-27 Thread Peter Haworth
I think Richmond is referring to the insertion point, not the cursor. I have noticed this before - if you place the insertion point somewhere in an LC control, switch to another application, then switch back to LC, the insertion point is gone. This is on a Mac. Other applications on the Mac d

OpenField/ExitField Handlers in Datagrid?

2011-02-27 Thread RevList
Seems to be my day for questions. I am building an app and want to control the enabling and disabling of menu items based on where the cursor is. Mostly, I have no problem, except when I am in a datagrid. I have a datagrid that has only one editable column. When I double click on that column on a

Re: Cursed by insertions

2011-02-27 Thread Richmond
On 02/27/2011 09:00 PM, J. Landman Gay wrote: On 2/27/11 3:30 AM, Richmond wrote: Having made a jazzy cursor for my text field I am wondering if there is possibly a way where, after an insertion point has been decided on, the cursor can remain with the insertion point unless the user moves it.

Re: Cursed by insertions

2011-02-27 Thread J. Landman Gay
On 2/27/11 3:30 AM, Richmond wrote: Having made a jazzy cursor for my text field I am wondering if there is possibly a way where, after an insertion point has been decided on, the cursor can remain with the insertion point unless the user moves it. The problem is this: The user is jigging back

Re: Disabling Preferences Menu

2011-02-27 Thread J. Landman Gay
On 2/27/11 11:51 AM, Marty Knapp wrote: Stewart, Change the name of the Edit menu button - like to "EditMenu" and then make the menu items you want. Remove the Preference menu item from the list. Then in the Inspector change the label of the button "EditMenu" to Edit. LiveCode will then disable

Re: Grid

2011-02-27 Thread J. Landman Gay
On 2/27/11 11:30 AM, Thomas McGrath III wrote: I guess I should explain more. I have been working with groups lately and was very frustrated with trying to line them up with other elements not in the group. That led me to the Grid menu item. How does everyone else handle lining up elements in a g

Re: Disabling Preferences Menu

2011-02-27 Thread Joe Lewis Wilkins
Try: on mouseEnter if char 1 of line 2 of menu 2 is not "(" then put "(" before line 2 of menu 2 pass mouseEnter end mouseEnter put this in the application menu's script Joe Lewis Wilkins Architect & Director of Product Development for GSI On Feb 27, 2011, at 9:36 AM, RevList wr

Re: Disabling Preferences Menu

2011-02-27 Thread RevList
Marty Knapp on February 27, 2011 at 9:51 AM -0800 wrote: >Stewart, > >Change the name of the Edit menu button - like to "EditMenu" and then >make the menu items you want. Remove the Preference menu item from the >list. Then in the Inspector change the label of the button "EditMenu" to >Edit. Li

Date/Times/Number/Currency format preferences

2011-02-27 Thread Peter Haworth
I would like to ensure that all dates, numbers, and currency values in my app are formatted according to the user's preferences in the Format tab of the OSX Language and Text Preferences. I found the dateFormat property that helps but haven't found anything in LC that helps with the other form

Re: Disabling Preferences Menu

2011-02-27 Thread Marty Knapp
Stewart, Change the name of the Edit menu button - like to "EditMenu" and then make the menu items you want. Remove the Preference menu item from the list. Then in the Inspector change the label of the button "EditMenu" to Edit. LiveCode will then disable the Preference menu. I'm pretty sure

Disabling Preferences Menu

2011-02-27 Thread RevList
I would like to disable the Preferences menu on a Stand Alone Mac app. Disabling it in Menu Builder does not work. The app name is Colour Palette Adding this code on OpenStack does not work On OpenStack Disable MenuItem 2 of menu "Colour Palette" end OpenStack Any ideas? My application does

Re: Grid

2011-02-27 Thread Thomas McGrath III
I guess I should explain more. I have been working with groups lately and was very frustrated with trying to line them up with other elements not in the group. That led me to the Grid menu item. How does everyone else handle lining up elements in a group with those outside of a group? -- Tom Mc

Grid

2011-02-27 Thread Thomas McGrath III
Is the Grid menu item supposed to 'show' a grid on the card? I don't remember using it before and wasn't sure how it is supposed to work. Or is it just a snap to grid that can't be seen? Thanks -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net ___

Re: Getting a list of groups on a card

2011-02-27 Thread Geoff Canyon Rev
This should work: *function* allGroupNames X *-- returns all groups for id X* *repeat* with i = 1 to the number of groups of X *put* the short name of of *group* i of X & cr after R *end* *repeat* *return* R *end* allGroupNames __

Cursed by insertions

2011-02-27 Thread Richmond
Having made a jazzy cursor for my text field I am wondering if there is possibly a way where, after an insertion point has been decided on, the cursor can remain with the insertion point unless the user moves it. The problem is this: The user is jigging back and forth between the textField in th