Search found 13558 matches

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: 4336

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: 4336

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: 6897

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: 6897

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: 6897

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: 8250

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: 6897

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: 9782

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: 4666

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 ;-)
by Klaus
Wed Jul 11, 2007 3:25 pm
Forum: Animation Engine
Topic: metacard?
Replies: 1
Views: 4519

MetaCard stack = Rev stack!

The fileformat is identical, so yes, it will work with MC stacks :-)


Best

Klaus Major
by Klaus
Sun Jul 08, 2007 12:21 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Menu Builder Puzzle
Replies: 4
Views: 4758

Re: Menu Builder Puzzle

Hmm - what am I missing...?? ... Also, I gather from the docs that these menus are (can be?) stack specific. What if I just want a menu that's the same throughout my whole application? Where does it go? TIA Kai Please check the "defaultmenubar" property in the docs, that is what you are looking for...
by Klaus
Thu Jul 05, 2007 6:51 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Duplicating a card?
Replies: 4
Views: 4627

Hi Derek,

you are looking for "clone" and "copy"! :-)

...
clone this cd
## In the same stack

...
copy cd "My card" of stack "A" to stack "B"
## Between stacks

Hope that helps.


Best

Klaus Major
by Klaus
Thu Jul 05, 2007 2:15 pm
Forum: Multimedia
Topic: MP3 help please!
Replies: 6
Views: 7798

Hi Rick, hmmmm, setting the filename of a player to a MP3 files works without problem, so something else must go wrong here. Afer setting the filenmae you get "could not open movie file" in the result? Can you open that file with QuickTime Player? What exactly is in your script, could you post it pl...
by Klaus
Thu Jul 05, 2007 11:53 am
Forum: Multimedia
Topic: Video files
Replies: 2
Views: 5431

Hi dalkin, the solution: Use a relative pathname for your video! Example: You have your standalone in a folder "Standalone folder" and in there is another folder named "Video" or whatever which contains your video file. Then you can use the relative (to the current folder!) pathname: "Video/your_vid...
by Klaus
Thu Jul 05, 2007 11:42 am
Forum: Multimedia
Topic: stopping videoclip stack objects?
Replies: 5
Views: 7704

Buongiorno Lestroso,

actually the correct syntax is:

-> play stop videoclip XYZ

See also the "dontrefresh" property in the docs!


Best

Klaus Major

Go to advanced search