Search found 13579 matches

by Klaus
Fri Jul 20, 2007 9:17 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Why developers have flat foreheads
Replies: 5
Views: 5213

Hi dalkin, implementing drawing capabilities is a bit tricky as your flat forehead can tell ;-) Looks like these messages "mousedown/leave etc..." are not send with a drawing tool selected. I did it in the past but used a PALETTE window for the "tools". Another approach will be to "poll" the mouselo...
by Klaus
Thu Jul 19, 2007 8:21 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Taborder (layer) problem
Replies: 2
Views: 3368

Hi Kai, you can put a handler into the card script and trap "tabkey" manually. on tabkey put the target into tField ## will contain: field "Name of field" delete word 1 of tField replace QUOTE with empty in tField ## -> Name of field switch tField case "top left field" focus field "bottom left field...
by Klaus
Thu Jul 19, 2007 1:03 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Quicken Date Behavior
Replies: 5
Views: 5366

Hi Alan, just put the "keydown" handler into any of your "date" fields and just change this line: ... switch pKey case "T" case "+" case "-" case "M" -- if it's a key that needs special care, handle it put ModifyDate(pKey) into me ... Then change and put the other handler into your stack script and ...
by Klaus
Thu Jul 19, 2007 10:03 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Write to text file
Replies: 6
Views: 7605

Hi proza, please let me first give the advise to also read related threads here! "newbie question; write to file, read from file?" already has much info about this topic! I do not know what exactly is going wrong in your script but I suggest that you use another syntax to read and write things to fi...
by Klaus
Wed Jul 18, 2007 4:08 pm
Forum: Databases
Topic: to remove externals folder for standalone application
Replies: 4
Views: 5789

Hi selva, of course I mean the "standalone application settings", where you can select the "script libraries" and "database drivers" (= DLLs). It is not only the creation of that folder but REV also adds a couple of scripts so your app will be able to use the DLLs, and THAT is the tricky part. Do yo...
by Klaus
Wed Jul 18, 2007 12:53 pm
Forum: Databases
Topic: to remove externals folder for standalone application
Replies: 4
Views: 5789

Hi selvabits, well, Rev does this (and everything that is necessary to use the dlls!) automatically for you when you include "Script Libraries" in the "Standalone Builder Settings" dialog. You can do this manually with one or more scripts in your (standalone) stack, but this is definitively advanced...
by Klaus
Sun Jul 15, 2007 10:24 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Hiliting tab panel tabs on open card
Replies: 3
Views: 4380

Hi Paul,

here is another not too inuitive hint concerning tabbed buttons:
If you want to simulate a "mouseclick on one of the TABS" you can use:

set the menuhistory of btn "tabbed button" to 1
## or any other (tab) number


Best

Klaus
by Klaus
Sun Jul 15, 2007 9:44 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Hiliting tab panel tabs on open card
Replies: 3
Views: 4380

Hi Paul,

yes, this is a bit tricky :-)

You can:
select line 1 of btn "Your tabbedbutton here..."
## Or any other line...

This will "hilite" the first TAB.


Best

Klaus
by Klaus
Sun Jul 15, 2007 6:29 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array question
Replies: 8
Views: 6959

Hi all,

and again we proved that there are many rev-ways to skin a rev-cat :-)
by Klaus
Sun Jul 15, 2007 4:59 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array question
Replies: 8
Views: 6959

Mark wrote:Hi Klaus and Kai,

Wouldn't that be "repeat for each element" in this case"

Best,

Mark
Hi Mark,

can you retrieve the key with this? Don't think so.
Kai needs to get the "unknown" key from a "known" value.


Best

Klaus
by Klaus
Sun Jul 15, 2007 2:25 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array question
Replies: 8
Views: 6959

Hi Kai,

since Rev introduced "repeat for each key tKey in tArray" in version 2.7.2,
maybe a repeat loop is a bit faster nevertheless?


Best

Klaus
by Klaus
Sun Jul 15, 2007 10:56 am
Forum: Multimedia
Topic: Screen Size/Monitor Depth
Replies: 4
Views: 8308

Hi Ricklionhart (how was the last crusade? ;-)), I don't think that Rev should have the ability to change the screen resolution. I personally would NOT like if an app changes MY resolution automatically without asking me. Maybe it is possible with AppleScript but for Win you will have to use some th...
by Klaus
Sat Jul 14, 2007 8:29 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array question
Replies: 8
Views: 6959

Hi Kai, sorry, no nifty function ;-) But you could use a nifty trick using the "combine" function to extract the "key" from the array like this: Given "tArry" is your array and "unique_value" is the value of the unknown key you are looking for. ... combine tArray by CR and TAB ## This will turn your...
by Klaus
Sat Jul 14, 2007 8:13 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: newbie question; write to file, read from file?
Replies: 12
Views: 9917

Hi homer, please don't give up too soon, help is on its way! This is what you want, its not very efficient, but effiency will come to your code later after you understood all the basics :-) The basic syntax for writing contents to textfiles is like this: (If you use "write ... to file ..." then you ...
by Klaus
Sat Jul 14, 2007 7:53 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array of fields
Replies: 4
Views: 4703

Hi proza,

use brackets and it will work :-)

repeat with i=1 to whatever
put i into field ("f" & i)
end repeat

Rev will evaluate the string first to "f1", "f2" etc.


Regards

Klaus


P.S.
But an array is a complete different animal ;-)

Go to advanced search