Re: custom color chooser
Thanks for the answers and thank you Richmond. That was precicely what I was looking for. I just wanted a custom color chooser that I could hack. The system specific chooser that "answer color" pops up does not suit my needs. I'm glad I didn't have to explain what I was going to do. Salute Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
custom color chooser
Hi folks Does anyone know if there exists a custom color chooser or wheel made in revolution that I can build on? my version is Rev. 2.7.4 Thanks Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Back to button basics
Tereza, 6. desember 2006 06:30, you wrote >If all the buttons do is signal a state change that will be acted on >later, I would put the following script in the group: Fantistical, Not only did you help me out - you threw in some lessons too. I'm enlightened and my head is in order. What an absolutely tremendous reply. Big handshake, Jan --- Jan Selid [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Back to button basics
Hi folks, Im redesigning my buttons. its been a while since the last time. The autobehaviour drives me nuts. Can someone please tell me what to turn off and on in the following scenario: The buttons belongs to a group. There should be no radiobehaviour. They should all be transparent. No hilited border. Nothing. The only thing that changes is the icon on mouseup. I use a custom on/off state like this: On mouseup If the onstate of me is true Then Set the onstate of me to false Else Set the onstate of me to true End if End mouseup What I want to do is to just change the icon according to the state of onstate property. Should I use a visited icon or a hilited icon? No matter what I turn off or on I seem to get some additional behaviour. Like a border or the traversal border. Im sorry that I have to bother you with this but my early days of lessons is just hidden under layers of other priorities. Sincerely Jan Selid ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Stupid Programming Challenge (Barry Barber)
Because of customisation and control. Want to make a flashy custom scrollbar with a proportional thumb and your own graphics? Well, this is it. (The stack I created as a result of the thread is called "customPropsScrollbar" and is available at rev online under the user name "Jan Selid") Regards, Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Stupid Programming Challenge
Hi again! I've made a small stack based on this little thread. It consists of a custom scrollbar with 2 elements. A rectangle for the rail and a rectangle for the thumb. It's simple and not flashy, only functional. The code in the stack is a "soup" with ingredients from Scott Rossi, Tereza Snyder, Trevor DeVore and Malte Brill's "propscroll" stack, and code from tactile medias "Drag sample" stack. Please feel free to fix and polish my rather amateurish code...:-) The Stack is called "CustomPropScrollbar" and is available at rev online under the user name "Jan Selid" That's all Cheers, Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Stupid Programming Challenge
Trevor wrote: >I think we should just let Solution 1 live on. It's best if we just >sweep Solution 2 under the rug :-) Not if you want to create a custom scrollbar with custom graphics. I'm building one now. Based on all of this. I use a simple rectangle as the thumb. I will post it on rev online when I'm finished. -- Trevor DeVore Blue Mango Learning Systems - www.bluemangolearning.com [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Stupid Programming Challenge
(damn this formatting.) The lines was not separated. Here it is again, hopefully it shows right :) J. Landman Gay wrote on 28. november 2006 17:43, >Could someone post Tereza's whole handler, so those of us who are very >lazy don't have to figure it out? Just for the record and for the searching here is the result of this thread: I you want to make a custom proportional scrollbar here is two solutions that will calculate the thumbsize of the scrollbar and the endvalue. These two solutions are based on a vertical scrollbar object called "scroller" with a reference to a group called "master". If you want to make a proportional scrollbar from scratch with your own graphics I think you have to tweak the calculation a little, but the basics is here: Solution 1, Tereza snyder: set endvalue of sb "scroller" to max(0,(formattedHeight of group "master")) set thumbsize of sb "scroller" to (height of group "master") Solution 2, Trevor DeVore: set the thumbposition of sb "scroller" to 0 set thumbsize of sb "scroller" to 100 * (height of group "master" / formattedheight of group "master") put formattedheight of group "master" - the height of grp "master" intotheEndValue IF theEndValue > 0 THEN add the thumbsize of sb "scroller" to theEndValue ELSE put 0 into theEndValue set endvalue of sb "scroller" to theEndValue END initScrollbar That alright, Jacque? Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Stupid Programming Challenge
J. Landman Gay wrote on 28. november 2006 17:43, >Could someone post Tereza's whole handler, so those of us who are very >lazy don't have to figure it out? Just for the record and for the searching here is the result of this thread: I you want to make a custom proportional scrollbar here is two solutions that will calculate the thumbsize of the scrollbar and the endvalue. These two solutions are based on a vertical scrollbar object called "scroller" with a reference to a group called "master". If you want to make a proportional scrollbar from scratch with your own graphics I think you have to tweak the calculation a little, but the basics is here: Solution 1, Tereza snyder: set endvalue of sb "scroller" to max(0,(formattedHeight of group "master")) set thumbsize of sb "scroller" to (height of group "master") Solution 2, Trevor DeVore: set the thumbposition of sb "scroller" to 0 set thumbsize of sb "scroller" to 100 * (height of group "master" / formattedheight of group "master") put formattedheight of group "master" - the height of grp "master" into theEndValue IF theEndValue > 0 THEN add the thumbsize of sb "scroller" to theEndValue ELSE put 0 into theEndValue set endvalue of sb "scroller" to theEndValue END initScrollbar That alright, Jacque? Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: The basics of a chat program
Mark wrote, >I just made a couple of modifications. I uploaded a new version just >now. The program does work once you enter in the other user's ip. I >just tested in on my MBPro with the Mac talking to my Win system on >Parallels. Worked great! Let me know if you need any direct help on >using it. I get a problem if one of the machines is firewalled. I found another stack on rev online by Alex Tweedly, actually 2 stacks. 'TCP App 2' & 'TCP App 1'. The latter one allows the machine to be more like a server. If I run "TCP App 2" one on the machine with a firewall it connects. With this setup you only need to have 1 open port on one of the machines. Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Stupid Programming Challenge
Trevor wrote, >I think it is actually opposite. Tereza's code seems to make the >thumbsize larger than the code I posted above and seems to be the >right solution. You are definitively right, my stupid mistake, I forgot to remove "100 *" for thumbsize. Sorry to create a mess. I've been boiling my head over this for a long time. Couldn't find it anywhere on the list. Thank you all three - :-) Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: The basics of a chat program
Mark Talluto wrote on 28. november 2006 07:32, >I wrote chatter box but have not looked at it in some time. The only >prerequisite was that you needed to know the ip of the two systems >talking. I'll take a look at it again and make sure it is working. >The program does not work on the server model. It is a peer to peer >model. That would be great, Mark. I tested out chatrev 1.3 and got it working. I'm starting to understand a little more. I think I could learn a lot from making chatter box work, because it has less code. Regards, Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Stupid Programming Challenge
>Trevor DeVore wrote: >ON initScrollbar > set the thumbposition of sb "scroller" to 0 > set thumbsize of sb "scroller" to 100 * (height of group >"master" / formattedheight of group "master") > put formattedheight of group "master" - the height of grp >"master" into theEndValue > IF theEndValue > 0 THEN add the thumbsize of sb "scroller" to >theEndValue > ELSE put 0 into theEndValue > set endvalue of sb "scroller" to theEndValue >END initScrollbar It seems that this solution creates the correct thumbsize. The other makes it smaller than it needs to be. Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Slow response with many objects
Hi Trevor, >It shouldn't. Have you tried running your project in a standalone as opposed to the IDE? Does it run just as slow there?< Yes, I have tried a standalone on a slow laptop. It works very well. It is only when I'm using the pointer tool in the ide. E.G. if "Select grouped controls" is on it takes some time for object A to become selected. But object B becomes selected right away (with no obvious difference between the two objects). The application is not slow, but the rev ide has become sluggish. Sometimes it almost halts. First I suspected it maybe had something to do with the autosave and autoarchive of galaxy, but this is not the case, because that only happens when you compile a script in galaxy. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Slow response with many objects
Hi Trevor, >It shouldn't. Have you tried running your project in a standalone as opposed to the IDE? Does it run just as slow there?< Yes, I have tried a standalone on a slow laptop. It works very well. It is only when I'm using the pointer tool in the ide. E.G. if "Select grouped controls" is on it takes some time for object A to become selected. But object B becomes selected right away (with no obvious difference between the two objects). The application is not slow, but the rev ide has become sluggish. Sometimes it almost halts. First I suspected it maybe had something to do with the autosave and autoarchive of galaxy, but this is not the case, because that only happens when you compile a script in galaxy. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Slow response with many objects
Mark, Good suggestions, I will try them. Needed some outside guidance. I didn't want to search in the dark. (I gave up the geometry manager a long time ago, but there might be something left inside.) I guess I have to do some digging! Salute! Regards, Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Slow response with many objects
Hi Mark, thanks for the response! > If you have thousands of objects, I can very well imagine that Revolution gets very slow. I also believe that having thousands of objects probably indicates a need to re-think the strategy behind your user interface.< The card I'm working on has about 700 objects. I know this is too many before I clean the code and "distill" the interface. I work one section at the time and when I've got something right I clean it up and make it more efficient. But I also know that I have other "sections" ahead of me, so the number: 700 should be somewhere near the final amount. If I could at least keep it under 1000 under the development process, I don't think this should be too much to handle for the engine. >However, if "many" only means a few dozens or even 200 or 300 objects and if your computer is reasonable fast, say >500 Mhz, you should not experience much lagging while editing these objects.< My machine is running at 2.6 ghz with 3gb of ram. So the machine is not the problem I believe. I've tried to build the application and have run it on an old laptop I have. The program is not slow. It works very good. It's only when I edit the objects under rev. >Are you using any scripts that run when objects are resized, moved, or otherwise changed? Do you have any running handlers in the background or many pending messages? Are you using third-party libraries or plugins?< I have no "on idle" handler or no pending message sending. But I do have a couple of mousemove handlers on some of the objects. I use galaxy studio 1.5, all the tactile media plugins and chipp walters altplugin. I don't think the plugins have anything to do with it because the lag exists even without them. I suspect that it has something to do with the amount of groups and maybe groups inside groups. The lags of the ide is only mildly irritating at this stage but it does slow down the workflow. I guess I'm asking about too many things at the same time... so let me ask a simple question: Does groups slow down the ide, more than any other objects? Sincerely and thanks Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Slow response with many objects
My apps interface is not card based and has no pulldown menus. Im using a at your fingertips-approach to the gui. Much like the new office 2007. Im also aiming at a completely customized look and that means I have a lot of groups. It seems now that the revolution ide is becoming slower. When Im using Select grouped controls and the pointer it takes a while before the object is selected. Moving objects is also slow. Using properties to nudge object in any direction has come to the point where e.g. the down arrow stays down and the ide is locked up, with no other solution than to force-quit rev. Anyone have any experience with this? Is it the amount of groups that slows down rev? Or is it the amount of images. I use customized icons, backgrounds, menubars etc. (nothing heavy.) Or is it the sum of it? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: The basics of a chat program
Recently, Scott Rossi wrote: > I believe this is one of the most comprehensive to date (might be more than > you need): > http://homepage.mac.com/bvg/chatrev1.3.rev Thank you Scott, a very "to the point" stack. (I must have overlooked it) It actually contains just (and only) the things I need. How appropriate. Now I have to google a little to find out how to create a user register and communicate with my domain. Thanks a bunch Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
The basics of a chat program
Hi everyone I would be very grateful if anyone on the list could give me some directions in creating a simple chat program. I just need something to start with. Have anyone created one? Is it possible to test it on one single machine (with one IP address.) I tested a program I found on go revnet called chatter box. I tried to communicate with this program from one desktop to a laptop. The desktop was on lan and the laptop was on wlan. Both had different ip addresses. No result. As you probably understand, Im completely green when it comes to communication and just need a simple kick off, a understandable program or code that I can build on. Or am I asking too much? J Hopefully Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Constraining the pointer within a rect
David, It must be the screenmouseloc that slows the mac. As stated earlier. I guess that is practical to know. I have always used tips from the free stacks of Tactile Media. In their dragsample stack, they explain that it's always more efficient to compare variables instead of repeatedly testing the object's dimensions/position. That's why the dimensions and limits is set outside the mousemove handler in my example. I'll think of a way to replace the screenmouseloc. David wrote >Thanks, Jan. It is very jerky and slow here. Maybe this is an OS X thing? I am using Panther, G4 >iMac/TiBook. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Constraining the pointer within a rect
Hi David, I sent you another suggestion. Maybe it slipped through. Try it. It's stable. Just put this into the script of a button or rectangle. Try it --- local constrain,boxL,boxR,boxT,boxB ON mouseDown put item 1 of rect of me+4 into boxL -- change 4 to your own needs put item 3 of rect of me-4 into boxR -- change 4 put item 2 of rect of me+4 into boxT -- change 4 put item 4 of rect of me-4 into boxB -- change 4 put true into constrain END mouseDown ON mouseMove x,y IF not constrain THEN exit mouseMove set the screenmouseloc to \ globalloc(min(boxR,max(boxL,(x))) & "," &min(boxB,max(boxT,(y END mouseMove ON mouseUp put false into constrain END mouseUp ON mouseRelease mouseUp END mouseRelease --- Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Constraining the pointer within a rect
This is just another addition to the suggestions. It is based on Tactile medias dragsample stack. Put it inside whatever object you want. Press and hold the mousebutton and drag the mouse to activate it. Change the mousedown, mouserelease and mouseup to any other handler you want. It is stable but there's still some minor flickering of the mouse cursor. At least on windows... local constrain,boxL,boxR,boxT,boxB ON mouseDown put item 1 of rect of me+4 into boxL -- change number 4 to suit your needs put item 3 of rect of me-4 into boxR -- change 4 put item 2 of rect of me+4 into boxT -- change 4 put item 4 of rect of me-4 into boxB -- change 4 put true into constrain END mouseDown ON mouseMove x,y IF not constrain THEN exit mouseMove set the screenmouseloc to \ globalloc(min(boxR,max(boxL,(x))) & "," & min(boxB,max(boxT,(y END mouseMove ON mouseUp put false into constrain END mouseUp ON mouseRelease mouseUp END mouseRelease ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: RichText Implementation
Hi André and Dan I will definitively keep you updated! If I can do anything about this, it's for everyone. I will post my stack online under Jan Selid, if I feel I'm remotely close to anything. There are 3 big tasks that needs to be done. 1. Individual margins The only solution I have right now is tabstops. 2. A custom wordwrapper that calculates the wordwrap based on the above tabstops. 3. an rtf-exporter A handler that converts the above tabstops to the proper "li"-number of the rtf-code. Since rev already has RTFText property, this is, I believe, not too difficult. - and, as you said, calculations when using different fonts. It's a huge task, and your interest surely helps ;-) André wrote: >I am following attentively your attempt to "simulate" a richtext field. >I hope you will keep informing us about the problems you are encountering and your solutions. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: How to control the ibeam (text cursor)
Ok... I found it. I was tampering with selection and selectedchunk. What I needed to do was to use select. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
How to control the ibeam (text cursor)
Hi there, In my attempt to code a provisional richtext field I have a problem. Im using tabstops in the field to create an illusion of individual margins. What I need to do is to control the ibeam (text cursor) in a rawkeyup handler so that the ibeam is placed at e.g. tab number 4 when the user e.g. presses the down key. How is it possible to control the iBeam. E.g. put it in front of a word. Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: RichText Implementation
Dan- I'm really sorry to let this out. I didn't know that is was under non-disclosure. Well, actually, if I had used my mind, buy I guess the news made me no think and only hope for a solution. At least I know I'm not the only one with this problem. That always help a little. I have wished for this feature since 2003, even started a "campaign" to make people vote for it on bugzilla. But I decided to start building my project anyway, and it's a very big project. I just got an answer from revolution that I should not wait for this feature but do what I need to do... The only rad platform that have this feature is realbasic. But I've tried it several times, and I really don't like it. I grown into rev. I guess I have to take a leap of faith. Because I've done so much work already. Thanks for the answer. Dan wrote: >But I feel your pain. Lack of rich text formatting has forced me onto another dev platform for one big project >and is threatening to do so for another. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: RichText Implementation
Hi again I received a private mail from a user of this list who told me that someone at RevCon said that revolution 2.8 will offer individual paragraph formatting. Anyone heard anything about this? If it takes too long time I have decided to do it the hard way. The best solution I can think of is using tabs in replacement for margins. I cannot wait another year Jan Jan wrote: >>Ive come to the point where I need to implement the Scriptwriter into my application. Ive build all the >>functionality around this function and delayed the scriptwriter until a proper richtext field was implemented >>into revolution. It doesnt seem that revolution will add this feature to revolution in the nearest future. >>So >my question is: Does anyone know of anyone that have hardcoded this function into revolution? Or is my >>only >option to hardcode this myself? >>Im really in need of individual paragraphs. >The scriptwriter needs to know if the user is editing dialogue, a character name, an action etc. >the format of a script looks something like this: >--- > TRUMP > You didn't call, Eliza. You know you > won't get anything if you... > >He goes to the desk and snatches the... >--- >This format needs three different margins. One for the character name, one for the dialogue and one for the >"action" part. One approach I'm thinking of is to use tabstops and have a rawkeyup handler in the field that >checks what type of element the writer is editing and puts the cursor at the right tab if the writer e.g. >pushes the downkey. The challenge with this method is that I have to store every element in the script in a >custom property of the field with the number of tabs for each element. Maybe with a reference to the >linenumber. e.g. "The line1 of fld "Script". Am I on the right track? >Hope this is understandable. Any ideas are appreciated. In the long run it could be handy to make a library of >functions that other revolution users could use. use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: RichText Implementation
The scriptwriter needs to know if the user is editing dialogue, a character name, an action etc. the format of a script looks something like this: --- TRUMP You didn't call, Eliza. You know you won't get anything if you... He goes to the desk and snatches the... --- This format needs three different margins. One for the character name, one for the dialogue and one for the "action" part. One approach I'm thinking of is to use tabstops and have a rawkeyup handler in the field that checks what type of element the writer is editing and puts the cursor at the right tab if the writer e.g. pushes the downkey. The challenge with this method is that I have to store every element in the script in a custom property of the field with the number of tabs for each element. Maybe with a reference to the linenumber. e.g. "The line1 of fld "Script". Am I on the right track? Hope this is understandable. Any ideas are appreciated. In the long run it could be handy to make a library of functions that other revolution users could use. I Wrote: >> Im really in need of individual paragraphs. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RichText Implementation
Salute Ive come to the point where I need to implement the Script function into my application. Ive build all the functionality around this function and delayed the scriptwriter until a proper richtext field was implemented into revolution. It doesnt seem that revolution will add this feature to revolution in the nearest future. So my question is: Does anyone know of anyone that have hardcoded this function into revolution? Or is my only option to hardcode this myself? Im really in need of individual paragraphs. Regards Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Studio License Renewal Cost
Gaskin Wrote: >For noise-making I suppose the list provides a certain satisfaction, but for results have you considered >writing to RunRev directly? Yes I have... This was the response: "Linux 2.7 will follow, it is a little delayed but is planned to appear in a few weeks time." This response is dated 20.03.2006 I'm sure they have other things on their mind. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Studio License Renewal Cost
>B.Marriot wrote >I don't like the pricing plan, either, to be honest. There's no guarantee that they will actually *do* anything >that matters to me in the year following the subscription. I really don't believe in paying for bug fixes. >To me, I prefer the simple model that if you're fixing a bug, the maintenance release should be free. If you're >adding features, then you can charge for it. And generally you don't go adding features till you fix the bugs. This is the way to do it! Runrev is mixing new features with bugs. When I decided to buy Rev it had become 2.7. Before that I had some trial versions and then I used the open source MC Ide. I wanted to be sure... Ok. I bought 2.7 when I was sure - started to build the application I'm building. After some time I discovered that 2.7 do not build for linux/unix like the old ones. The website said almost nothing about this - quite the contrary "Code once: Deploy everywhere". Now I'm using the new features - and to build on linux I have to go backwards. I thought I paid for building on linux - but that is not the fact. Do I have to pay extra for what I "thought" I already paid for. Sure looks that way... But what will I get in the next upgradeU3! >I've already expressed my dislike of the pricing structure. But expressing it here on the mailing list does >nothing but cause unwanted and unneeded dissension among everyone on the list and in the end, won't change >Runtime's pricing structure anyway. I don't understand why we shouldn't use this list to remind the developers that customers shouldn't pay for fixes. That we really want to stick with revolution because we all like it - but not at any cost. We are not friends - we are customers. That doesn't mean we have to be unfriendly. And as far as I can see in the responses on this topic. There are no enemies here. I don't like to hear the usual "If you don't like rev use realbasic". That almost sounds like camaraderie. I'm only a customer. Aren't you? Jan Selid ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Studio License Renewal Cost
I have to agree with you. I'm very happy with rev but there are too many bugs and feature requests that needs to be taken care of before I upgrade. And where is Linux and unix? > If anyone else agree's that the upgrade cost is too high, let me know and speak up. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: How to store objects into a file
Vijay, An important Correction!!! >on doFileOpen >answer file empty with filter "*.*" >lock screen >toplevel stack it "copy button yourbutton to this stack" should be: copy button yourbutton to stack yourmainstack >if there is a stack "Scopy" then delete stack "Scopy" >end doFileOpen Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: How to store objects into a file
This is something I grabbed from my application. You can of course exchange the functions doFile... with a mouseup handler or anything you want. I don't know if this is good coding, but it works for me on doFileSaveAs Create invisible stack "Scopy" copy button Yourbutton to stack "Scopy" ask file empty with "untitled" save stack "Scopy" as it delete stack "Scopy" end doFileSaveAs on doFileOpen answer file empty with filter "*.*" lock screen toplevel stack it copy button yourbutton to this stack if there is a stack "Scopy" then delete stack "Scopy" end doFileOpen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of KALANGI Vijay BABU Sent: 1. august 2006 17:57 To: use-revolution@lists.runrev.com Subject: How to store objects into a file Hi all, This is Vijay. New entry into this mailing list!!! Can someone plzz suggest some way to store a complete object into a file and then retrieve it again? Not by actually saving each n every property of the object into the file and recreating it again but by storing the object as a whole ... Thanks in advance, Vijay ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Space saving and images
My gradients are not right-angled - so I'll try to make them 256 in both directions - that makes sense. 256 grades should stretch quite well. Thanks a lot to both of you. Jan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Wood Sent: 1. august 2006 06:01 To: How to use Revolution Subject: Re: Space saving and images At right-angles to the gradient you can stretch the image as much as you want and it won't band at all. In the same direction as the gradient you can often get away with stretching it as long as the original isn't something absurdly small like ten pixels. To cover the whole screen I'd probably stick with 256px as a sensible dimension. Ian On 1 Aug 2006, at 04:36, Jan Sælid wrote: > Ok. > My knowledge of images is limited. > Doesn't smaller gradients lose their detail when stretched? > And about that blending question. Is the built-in blending in rev > faster than using a png. Image already blended? > > I will try to use smaller images and stretch those. Thanks Chipp > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Chipp > Walters > Sent: 1. august 2006 05:01 > To: How to use Revolution > Subject: Re: Space saving and images > > Jan, > No need to make the gradients that large, a single row or colum if > vertical or horizontal will work and you can stretch it to make it > cover your card. > Even much smaller gradients stretched work fast enough. > > best, > Chipp > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Space saving and images
Ok. My knowledge of images is limited. Doesn't smaller gradients lose their detail when stretched? And about that blending question. Is the built-in blending in rev faster than using a png. Image already blended? I will try to use smaller images and stretch those. Thanks Chipp -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chipp Walters Sent: 1. august 2006 05:01 To: How to use Revolution Subject: Re: Space saving and images Jan, No need to make the gradients that large, a single row or colum if vertical or horizontal will work and you can stretch it to make it cover your card. Even much smaller gradients stretched work fast enough. best, Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Space saving and images
Hi there Ive created some .png files with nice gradients for my application. The gradients size is the same as the app.: Minimum 1024*768 Does this make the standalone slower on older machines? Is there another image format that is faster or take less space? Is the blending function in rev 2.7 faster than a transparent .png image? (or should I use a gif image with the built-in blending in rev.) Sincerely Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Capslockkey function
Eric Chatonet gave me this great and short solution to my problem: --- you can use a simple keydown handler: on keyDown pKey if pKey is an integer then pass keyDown end keyDown This will allow to type numbers only and use the delete key. No more :-) --- Easy as that! By the way I think that the problem with the capslockkey function must be a bug in 2.7 for windows I've reported it to bugzilla. Thanks everyone to the response! Jan - Original Message - From: "Robert Brenstein" <[EMAIL PROTECTED]> To: "How to use Revolution" Sent: Sunday, March 19, 2006 8:32 PM Subject: Re: Capslockkey function >Thanks Eric That's a very good solution. But can I do this in a rawkey handler? The field is a number only field and I have to limit it so the user is only allowed to type numbers. No space or return. I also want to either give the user a warning that the capslock key is on or to translate the capslocked typing into numbers. The best solution I have now is to translate each rawkey into the rawkey of the number. Thats 10 lines of code. But I would rather have a warning The capslockkey function does not seem to report anything other than the "up" state on my system. I'm using rev 2.7 in XP Jan But capslock should not affect typing numbers AFAIK. return or enter are easy to handle with returnkey and enterkey handlers. space and other non-numeric character can be checked and reported or simply weeded out in closeField. Robert ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Capslockkey function
Thanks Eric That's a very good solution. But can I do this in a rawkey handler? The field is a number only field and I have to limit it so the user is only allowed to type numbers. No space or return. I also want to either give the user a warning that the capslock key is on or to translate the capslocked typing into numbers. The best solution I have now is to translate each rawkey into the rawkey of the number. Thats 10 lines of code. But I would rather have a warning The capslockkey function does not seem to report anything other than the "up" state on my system. I'm using rev 2.7 in XP Jan - Original Message - From: Eric Chatonet To: Jan Sælid Sent: Sunday, March 19, 2006 4:18 PM Subject: Re: Capslockkey function Hi Jan, If I understand well (not sure) you want the text always typed in capitals in some fields. if it is the case, you might prefer to transform by yourself the typed text on the fly without worrying about the capslock key: on keyDown pKey put toUpper(pKey) after target end keyDown That's just to give you the idea (you'll have to handle the selectedText to be more accurate :-) Le 19 mars 06 à 15:56, Jan Sælid a écrit : Someone has asked this before, but I haven't found an answer. I cannot get the capslockkey function to work. I have a number limited field where I want the user to be told if the capslock is down when they are typing. I use a rawkeydown handler in the field. The capslockkey always returns 'up". Any suggestions? Best Regards from Paris, Eric Chatonet -- http://www.sosmartsoftware.com/[EMAIL PROTECTED]/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Capslockkey function
Hi there Someone has asked this before, but I haven't found an answer. I cannot get the capslockkey function to work. I have a number limited field where I want the user to be told if the capslock is down when they are typing. I use a rawkeydown handler in the field. The capslockkey always returns 'up". Any suggestions? Sincerely Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How is the built-in controls made?
So... If I understand this right the "Tab Panel" is just a button. And the face of the button is what changes. Ok. But...The "face"? What is the face made of? Polygons? Lines? The reason I'm making a fuzz about this is that I would really like to make a button that behaves like that, instead of making 2 to 10 buttons in a group. It saves space if you can make a button behave like that. And I think it is much cleaner to have 1 object instead of a lot in a group. (just for references) I don't like to use groups all the time, because I don't want to have to many objects in my stack. Jan Jan, tab tab panel is a button that looks like a tab panel, it just looks like, when you press any of the options a simple menuPick message is triggered and the face of the button changes but no control is hidden or displayed, you must take care of those things your self. You can hide/show groups or traverse cards. It's just a nice button that triggers menuPick message like all "menu like" buttons. I don't think there's a huge inner working since all is done by yourself, you need to code your tab panel, all the IDE does is provide you with nice graphics and a pre-packed button. cheers andre ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How is the built-in controls made?
Hi again Eric (Thanks for the patience) I mean the "Tab panel" that you drag from tools to your stack when you want a tab-panel. When I look at the properties this is a button. How is this possible? If you want to do build a tab panel from the ground up you usually have make a group or multiple cards. What is the "inner workings" going on here? (I hope this is clearerSuddenly my confidence in English went on a trip) WR Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How is the built-in controls made?
Thank you both Eric and Andre Now that I have "opened" the IDE stacks for reading, I guess I will be occupied for a couple of weeks:-) I'd still like an answer to one of my questions though. (If there is one. I'm sure there is...) "the built in (IDE stack) tab panel is actually a button. How is this possible/done?" Jan Hi Jan, With the contextual menus: 1. Open the Rev Preferences (general pane) and check the "Contextual menus work in Revolution windows". 2. Use the contextual menu (ctrl/right click) on any object in the IDE to access its properties and its script. With the App Browser: 1. Check the "View/Revolution UI Elements in Lists" menu item. 2. All IDE stacks will appear in the App Browser. IDE stacks are one of the best tool for learning :-) Hope this helps, Best Regards from Paris, Eric Chatonet. Le 9 nov. 05 à 17:36, Jan Sælid a écrit : The more I program the more I want to customize my app, to make it look and work like I want it to. As an example I want to build a custom tab panel. What I'm curious about is how the built in tab panel in the tools palette is built. And where the script for those built in controls is? I know how to make custom tab panel and usually I do it by building a group. But the built in tab panel is actually a button. How is this possible? I think it also would be really useful to check out the script for those built in controls. Like the scrollbar. Is it possible to peek inside? I would learn a lot I think. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
How is the built-in controls made?
Hi Folks The more I program the more I want to customize my app, to make it look and work like I want it to. As an example I want to build a custom tab panel. What I'm curious about is how the built in tab panel in the tools palette is built. And where the script for those built in controls is? I know how to make custom tab panel and usually I do it by building a group. But the built in tab panel is actually a button. How is this possible? I think it also would be really useful to check out the script for those built in controls. Like the scrollbar. Is it possible to peek inside? I would learn a lot I think. Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Communication between modal stack and main stack
Ok Sorry I got It now Xavier. You ment Control as a reference to objects. Not the "control" Keyword. Stupid me. Thanks both to Brenstein and Xavier for the useful suggestions. Thanks alot Xavier (This is really an immensely useful and fast mailing list!!!) I have never used the control keyword before. How does it work? Do you use it like "control 5" instead of "Button "Hitme". (It's funny how dumb you feel in some areas - and how smart in others.;-) ) regards Jan Hi Jan What i do in these cases is to have the mainstack call a prep handler to setup the modal stack's info. When the user clicks on in the Modal stack, there is a handler in the modal that can do 1 of two things: 1: set a global array to retrieve the information 2: send a call to the main stack to send it the information (same process as the main stack calling the modal stack). now, the handler CAN return information. on dothis get that return it end dothis and the calling handler can do dothis get the result -- where information is returned. As for the missing background, you can always specify control thisone of background thatone of stack mymainstack... cheers Xavier Hi I use several modal stacks to communicate with the user. My first question is: Is there a way to pass informasjon from a modal stack back to the function on the stack that opened it? Like "Return"? I use a custom property for now When the modal stack closes the function in the main stack that opened it continues. Just what I want. But for the remaining message path in the function I have to refer to the main stack - even if the fuction resides in the main stack. Or else I get a background not found error. How can I prevent this. Do I need to set the focus back on the main stack? Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Communication between modal stack and main stack
Thanks alot Xavier (This is really an immensely useful and fast mailing list!!!) I have never used the control keyword before. How does it work? Do you use it like "control 5" instead of "Button "Hitme". (It's funny how dumb you feel in some areas - and how smart in others.;-) ) regards Jan Hi Jan What i do in these cases is to have the mainstack call a prep handler to setup the modal stack's info. When the user clicks on in the Modal stack, there is a handler in the modal that can do 1 of two things: 1: set a global array to retrieve the information 2: send a call to the main stack to send it the information (same process as the main stack calling the modal stack). now, the handler CAN return information. on dothis get that return it end dothis and the calling handler can do dothis get the result -- where information is returned. As for the missing background, you can always specify control thisone of background thatone of stack mymainstack... cheers Xavier Hi I use several modal stacks to communicate with the user. My first question is: Is there a way to pass informasjon from a modal stack back to the function on the stack that opened it? Like "Return"? I use a custom property for now When the modal stack closes the function in the main stack that opened it continues. Just what I want. But for the remaining message path in the function I have to refer to the main stack - even if the fuction resides in the main stack. Or else I get a background not found error. How can I prevent this. Do I need to set the focus back on the main stack? Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Communication between modal stack and main stack
Hi I use several modal stacks to communicate with the user. My first question is: Is there a way to pass informasjon from a modal stack back to the function on the stack that opened it? Like "Return"? I use a custom property for now When the modal stack closes the function in the main stack that opened it continues. Just what I want. But for the remaining message path in the function I have to refer to the main stack - even if the fuction resides in the main stack. Or else I get a background not found error. How can I prevent this. Do I need to set the focus back on the main stack? Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Strange cursor behaviour after a drag event...
The problem with the reversed cursor after a drag event is back. I did what mr. Chatonet adviced me to do - but after a while the problem still exists. After a drag of text from one field to another the cursor still shows an Ibeam over buttons and an arrow over fields. This must be a bug... Great Thanks Eric Problem solved. Hi Jan, This happens sometimes in the IDE. Try to add a handler like the following into an appropriate object (field, card, etc. depending if you lock the cursor by yourself elsewhere): on mouseMove >>unlock cursor end mouseMove Hope this helps. Best Regards from Paris, Eric Chatonet. Le 31 oct. 05 à 18:28, Jan Sælid a écrit : Hi I have two fields. In the first one I have placed an empty "On dragEnd" event because I don't want the user to change the field only drag. In the second one I have an "Acceptdrop" event together with an "On dragDrop" event because I want to check the dragdata before I place it in the field. Something like this: In script of Field 1: On dragEnd -- nothing in here end dragEnd In script of field 2: on dragEnter set the acceptDrop to true end dragEnter on dragDrop --- check the dragdata --- place it in the field if it is allowed end dragDrop Now here is the strange behaviour: After the text is dragged and placed into the second field. The cursor behaves in a reversed order. When entering a field the cursor becomes an arrow. When entering a button the cursor becomes an iBeam. The opposite of normal behaviour I would say. This happens only in the event of dragging from field 1 to field 2. I have tried to create two new fields with no script in them. And dragging between these two do not make the same strange behaviour. Have my computer got a fever? what is happening? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: More efficent checking of multiple objects
Thanks Dave That I will do. Really useful. Jan - Original Message - From: "David Burgun" <[EMAIL PROTECTED]> To: "How to use Revolution" Sent: Tuesday, November 01, 2005 5:03 PM Subject: Re: More efficent checking of multiple objects Hi, Here's something I did that you may be able to adapt. In my case they objects are rectangles and the label/name field is not displayed. Also all that needed to happen was if the rectangle was clicked, an action specific to that rectangle had to be performed. To do this I did the following: Setup an array that has the key being the (long) name of the button and the data as the value of being an object-specific field. If the user re-ordered the rects all that needed to be done was to swap the data field of the Array between objects, e.g. Given the following Rectangle List: R1,R2,R3,R4,R5, The Array would look like this: "R1",VALUE1 "R2",VALUE2 "R3",VALUE3 "R4",VALUE4 "R5",VALUE5 if user changes the position so that R5 comes after R2 R1,R2,R5,R3,R4, "R1",VALUE1 "R2",VALUE2 "R3",VALUE5 <- "R4",VALUE3 "R5",VALUE4 So all that is done is to move VALUE5 into R3, VALUE3 into R4 and VALUE4 into R5. Then in the mouseUp handler for each rectangle: on mouseUp put theArray[the name of me] into myValue put DoMouseUpInRect(the name of me,myValue) into myResult end mouseUp You could do the same using custom properties for each object, but I found this harder to maintain and debug. Don't know if this would help in your case, but maybe you can adapt the idea. All the Best Dave Dear Jan, I use a repeat with T=1 to (the number of buttons of group "Timeline") because I need to reorganize all the other buttons if the user moves just one of them. In the future the user can have up to 1000 of these buttons in the timeline. At this point I guess the repeat loop will be very slow. Is there a more efficient method I can use here? If the user eliminates or changes button x, is there any need to adjust buttons 1 through (x-1)? If not, you can start T=X to (the number of buttons of group "Timeline". It won't help much if the target is button 1; but it should help lots if the target is button 999. If the relationship of the buttons is different such that action on button x can require changes to buttons 1 to (x-1), I'd need to know more to offer further suggestions. Rob Cozens, CCW Serendipity Software Company Vive R Revolution! ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: More efficent checking of multiple objects
Hi Rob I have implementet that. The script doesn't check buttons earlier than what is needed. The buttons is only references to customproperties in the group like "the _TitleTextButton1 of group "Buttons" so I only use them to point to different variables. And no, there is no actions in the buttons. I control all the action in the script of the group. the only idea that I have is using the selection tool to draw a rectangle around the buttons that needs to be moved. But this leads to problems cause the group only shows 30 of the buttons at any time. With a scrollbar to move left and right in the group. I guess I need a minimal system requirement for the application.:-) Dear Jan, I use a repeat with T=1 to (the number of buttons of group "Timeline") because I need to reorganize all the other buttons if the user moves just one of them. In the future the user can have up to 1000 of these buttons in the timeline. At this point I guess the repeat loop will be very slow. Is there a more efficient method I can use here? If the user eliminates or changes button x, is there any need to adjust buttons 1 through (x-1)? If not, you can start T=X to (the number of buttons of group "Timeline". It won't help much if the target is button 1; but it should help lots if the target is button 999. If the relationship of the buttons is different such that action on button x can require changes to buttons 1 to (x-1), I'd need to know more to offer further suggestions. Rob Cozens, CCW Serendipity Software Company Vive R Revolution! ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
More efficent checking of multiple objects
Hi there In my project I hav a group of buttons that works like a timeline. Something like this: |btn 1| |btn2| |btn3| |btn4| etc...upto... |btn999| The groups works for me. The user can add and delete buttons. And move buttons to change the order of them. Like this: |btn3| |btn2| |btn4| ...etc. Now my request is this. (I do apologize for not doing the hard work myself - I really have contemplated a lot on the subject :-) ) I use a repeat with T=1 to (the number of buttons of group "Timeline") because I need to reorganize all the other buttons if the user moves just one of them. In the future the user can have up to 1000 of these buttons in the timeline. At this point I guess the repeat loop will be very slow. Is there a more efficient method I can use here? Jan ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Strang cursor behaviour after a drag event...
Great Thanks Eric Problem solved. - Original Message - From: "Eric Chatonet" <[EMAIL PROTECTED]> To: "How to use Revolution" Sent: Monday, October 31, 2005 6:36 PM Subject: Re: Strang cursor behaviour after a drag event... Hi Jan, This happens sometimes in the IDE. Try to add a handler like the following into an appropriate object (field, card, etc. depending if you lock the cursor by yourself elsewhere): on mouseMove unlock cursor end mouseMove Hope this helps. Best Regards from Paris, Eric Chatonet. Le 31 oct. 05 à 18:28, Jan Sælid a écrit : Hi I have two fields. In the first one I have placed an empty "On dragEnd" event because I don't want the user to change the field only drag. In the second one I have an "Acceptdrop" event together with an "On dragDrop" event because I want to check the dragdata before I place it in the field. Something like this: In script of Field 1: On dragEnd -- nothing in here end dragEnd In script of field 2: on dragEnter set the acceptDrop to true end dragEnter on dragDrop --- check the dragdata --- place it in the field if it is allowed end dragDrop Now here is the strange behaviour: After the text is dragged and placed into the second field. The cursor behaves in a reversed order. When entering a field the cursor becomes an arrow. When entering a button the cursor becomes an iBeam. The opposite of normal behaviour I would say. This happens only in the event of dragging from field 1 to field 2. I have tried to create two new fields with no script in them. And dragging between these two do not make the same strange behaviour. Have my computer got a fever? what is happening? So Smart Software For institutions, companies and associations Built-to-order applications: management, multimedia, internet, etc. Windows, Mac OS and Linux... With the French touch Free plugins and tutorials on my website Web sitehttp://www.sosmartsoftware.com/ Email[EMAIL PROTECTED]/ Phone33 (0)1 43 31 77 62 Mobile33 (0)6 20 74 50 86 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Strang cursor behaviour after a drag event...
Hi I have two fields. In the first one I have placed an empty "On dragEnd" event because I don't want the user to change the field only drag. In the second one I have an "Acceptdrop" event together with an "On dragDrop" event because I want to check the dragdata before I place it in the field. Something like this: In script of Field 1: On dragEnd -- nothing in here end dragEnd In script of field 2: on dragEnter set the acceptDrop to true end dragEnter on dragDrop --- check the dragdata --- place it in the field if it is allowed end dragDrop Now here is the strange behaviour: After the text is dragged and placed into the second field. The cursor behaves in a reversed order. When entering a field the cursor becomes an arrow. When entering a button the cursor becomes an iBeam. The opposite of normal behaviour I would say. This happens only in the event of dragging from field 1 to field 2. I have tried to create two new fields with no script in them. And dragging between these two do not make the same strange behaviour. Have my computer got a fever? what is happening? J.S ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Returning scroll values
Check out the object library in the development menu. There is a scrollbar object you can place in your stack. I know this is a quick advice (I'm a rookie). But that scrollbar contains a useful script. And the object library also contains other useful things... J.S - Original Message - From: "Ken Norris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 08, 2004 5:46 AM Subject: Returning scroll values > Howdy, > > How do I get hScroll and vScroll values on the fly from working the > scrollbars of a group? > > Ken N. > > ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Builing a complex text-editor - possible?
Thanks... Actually, a hidden table field could be the right thing. Then I could store information about the lines on the same lines as the original. Because I also need to store detailed information about the users text. I'm building something similar to a scriptwriter - like Final Draft. The lines will have character names, dialoge, etc. If one line has a character name, like: ROGER Dialog.. ..if the user enter the "Roger"-line - the table field will contain info like an array: tab(100), type(Character), instance(the number of rogers), and so on... My next questions (thanks for the help) is: 1. Could I make a chunk of Roger and make the cursor jump to that chunk? (It would then seem like an individual margin) 2. Will this make the typing slow? 3. Is this a good idea at all? J.S. > At 12:54 AM +0100 3/7/2004, Jan Sælid wrote: > >Is it possible to have different margins in different parts of the > >same field - like Word? > >If this is not the case. Does anyone have any suggestion on how to do this? > > It's not (yet) possible - currently the margins and firstIndent > properties don't apply to lines in fields, only to the entire field. > I'm not sure it's practical to build a full word processor in Rev > right now, with variable margins for different paragraphs. > > For *displaying* text with variable margins, I would take the > approach of creating a separate transparent field (with its own > margins and firstIndent setting) for each run of text, then grouping > the fields and giving the group a scrollbar. This makes the group > look like a single scrolling field, but each separate field in the > group can have its own margins, background color, and so on. > > However, for editing this would be problematic. You could create the > fields on the fly to reflect the user's margin settings, but then > you'd have to handle such things as selecting multiple paragraphs > across field boundaries by script. > -- > jeanne a. e. devoto ~ [EMAIL PROTECTED] > http://www.jaedworks.com > ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Builing a complex text-editor - possible?
Is it possible to have different margins in different parts of the same field - like Word? If this is not the case. Does anyone have any suggestion on how to do this? J.S ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
checking multiple objects with same AltID
I have multible buttons with the same altID (2) and want to check them all in one iteresect function call like this: if intersect(button altID2,me) then exit mouseMove the question is...does this work or does it only check the first button with altID 2 in the stack? ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How do I combine Control & Return in a field
Perfect. Thanks! Jan On 2 Mar 2004, at 10:01:03 Sarah Reichelt wrote: >This is untested but should work: >on returnInField > if the controlKey is down then > -- put your "add new page" scripts here >else > pass returnInField >end if >end returnInField >Cheers, >Sarah >On 2 Mar 2004, at 9:16 am, Jan Sælid wrote: > How is it possible to check the controlKey together with the returnKey > in a field? > > This combination seems to be a built-in key-combo in rev. But I'm not > sure what it does...can't find it in the docs. Is there a way to > disable it? It is a commonly used combination for adding a new page in > a document > > Jan ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
How do I combine Control & Return in a field
How is it possible to check the controlKey together with the returnKey in a field? This combination seems to be a built-in key-combo in rev. But I'm not sure what it does...can't find it in the docs. Is there a way to disable it? It is a commonly used combination for adding a new page in a document Jan ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
How to detect individual collision
Hi there I'm trying to make a timeline-bar where you can add or delete rectangles conatinig "whatever". The user is able to move a rectangle left or right, but if it intersects with another rectangle, it will stop Because the user is able to delete and add new rectangles I have to make some sort of function check if the moving rectangle is going to collide with other rectangles to the left and right. (like the timeline in Adobe Premiere) I know this is possible, but how do I do it fast. Checking every rectangle with repeat is to slow.and the only idea I have now is to make a list in a hidden field-table for every new created rectangle.. any ideas? ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Detect individual Collisions
Hi there I'm trying to make a timeline-bar where you can add or delete rectangles containing "whatever". The user should be able to move a rectangle left or right, but if it collides with another rectangle, it should stop Because the user is able to delete and add new rectangles I have to make some sort of function check if the moving rectangle is going to collide with other rectangles to the left and right. (like the timeline in Adobe Premiere) I know this is possible, but how do I do it fast. Checking every rectangle with repeat is to slow.and the only idea I have now is to make a list in a hidden field-table for every new created rectangle.. any ideas? ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution