Search found 3851 matches

by bn
Thu Sep 11, 2008 2:15 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Returning Variable Value
Replies: 12
Views: 8396

Hi bjb007, some remarks regarding local, global variables and custom properties everybody develops his own coding style eventually for all persistent variables dont forget to initialise them i.e. give them an initial value that you control, even if it may seem to be redundant (of course not, when yo...
by bn
Thu Sep 11, 2008 1:07 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Returning Variable Value
Replies: 12
Views: 8396

hi bjb007, I changed your script a little: you might want to make a new button in your stack and compare some of the problems came from using vCount as a global variable and at the same time as a parameter, Rev treated the parameter differently and hence the value 1 in the mouseUp handler Once you d...
by bn
Tue Sep 09, 2008 9:33 am
Forum: Talking LiveCode
Topic: [ANN] BvG Docu
Replies: 10
Views: 8467

revprintfield the id of the mousecontrol this is great, I didnt know this. putting revprintfield the long id of the mousecontrol into the message box and move the mouse over the dictionary then hit enter prints the field put text of the long id of the mousecontrol puts the content into the message ...
by bn
Mon Sep 08, 2008 3:42 pm
Forum: Talking LiveCode
Topic: [ANN] BvG Docu
Replies: 10
Views: 8467

bankog wrote But still : is it possible to copy the content of the field "keyword" (in order to print it, I think you can only print the "entry" from RunRev print menu) ? I dont know how to print all the properties at once, would be nice. But then, I am looking things up in the documentation all the...
by bn
Mon Sep 08, 2008 3:02 pm
Forum: Talking LiveCode
Topic: [ANN] BvG Docu
Replies: 10
Views: 8467

Hi Bangkok, you can use the built-in Revolution dictionary to see the properties. This at first was not obvious to me either when I was looking for a way to see all the properties. In the dictionary type "field" then click on on the 'Type' header to sort the entries and you will find all properties ...
by bn
Sun Aug 31, 2008 11:56 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: QTVR Pan OpenCard
Replies: 5
Views: 5754

Jim, glad it works for you. cpPlayerLoc is a custom property that you create in Rev when you set it. It is persistent because it is saved with the stack. It is a way to store a variable and share it from different handlers, even when they are not in the same script. You can look at these properties ...
by bn
Sun Aug 31, 2008 7:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: QTVR Pan OpenCard
Replies: 5
Views: 5754

Hi Jim, playing around with this I found the second solution to not work anymore. Why??? So here is what works pretty consistently for me opening a card with a QTVR on this card to a non default pan without going visibly from pan 0 to x on preopencard set the alwaysbuffer of player 1 to true set the...
by bn
Sun Aug 31, 2008 3:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: QTVR Pan OpenCard
Replies: 5
Views: 5754

Hi Jim, I dont quite understand what you want If you want to go to a card which has a QTVR already loaded and when opening the card you want it in a certain angle and you dont want the change of angle to be visible then the only way I found was to reload the QTVR on opening the card. like in: on Ope...
by bn
Fri Aug 01, 2008 10:38 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Justifying text in a text field?
Replies: 2
Views: 2269

Hi Peter, apparently there is no way to fully justify text natively in Revolution. It has been discussed on the list several times and there are workarounds. you might want to look at http://thread.gmane.org/gmane.comp.ide.revolution.user/100217/focus=100322 look also at the whole thread may be it g...
by bn
Wed Jul 30, 2008 9:18 am
Forum: Multimedia
Topic: setting the brushColor to transparent color
Replies: 9
Views: 9332

Hi Mark, If you take the snapshot from the global coordinates as in the code I posted it "flattens" the image, i.e. takes a snapshot from the original image and the second image with the marks. Also Jan posted a different approach to flattening the image by grouping them. BTW you probably could do s...
by bn
Tue Jul 29, 2008 11:34 pm
Forum: Multimedia
Topic: setting the brushColor to transparent color
Replies: 9
Views: 9332

Hi Mark, glad it worked for you. just in case you want to 'freeze' the changes to the pict and you want to do it with a snapshot you will want to use the global coordinates to reference the area of the first image, since refering to the rect of the first image gives you a snapshot without the overla...
by bn
Tue Jul 29, 2008 7:41 pm
Forum: Multimedia
Topic: setting the brushColor to transparent color
Replies: 9
Views: 9332

Hi Mark, you could probably overlay your snapshot with an empty image of the same size and set the transparency of this image to about 50 to 60. Then your user can hilite the part of the imported image with a yellow 'pen' on your overlay. Depending on your needs this might work. If you want to prese...
by bn
Mon Jul 28, 2008 8:05 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Rotating an Image with Specified "Forward" Directi
Replies: 5
Views: 4226

Hi, maybe mokogobo is up to something else but I post this anyway if anybody is interested in a nonblocking version of the move and rotate thing Additionally I rotate the image now a lot more smoothly with controllable degrees of the rotational steps, looks much better now. Moving speed is also cont...
by bn
Sun Jul 27, 2008 11:38 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Rotating an Image with Specified "Forward" Directi
Replies: 5
Views: 4226

OK, mokobogo try this and see if it is what you want: you can use the stack from my previous post or make a new one it has an image that is called "i1" make a freehand polygon graphic with not too many points to begin with and call it "g1" now make a button set the script to the button to: ---------...
by bn
Sun Jul 27, 2008 10:29 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Rotating an Image with Specified "Forward" Directi
Replies: 5
Views: 4226

Hi mokogobo, look at angle you can set the angle of an image create an image call it "i1" set the border to false in the inspector fill the image with a color, lets say with the bucket tool create a slider in the inspector set the start value to 0 set the end value to 360 set the script of the slide...

Go to advanced search