Re: Shadow of menu pulldown...

2006-04-19 Thread Gilberto Cuba

From: Mark Wieder [EMAIL PROTECTED]
Sent: Monday, April 17, 2006 6:36 PM



How I can hide the shadow of the stack that open when I click in a button
with style pulldown.
I tried to put false the shadow property of the current stack that It 
will

show and not work fine. Why?


This works fine for me on both OSX and Win2k. What platform and
version are you trying this with? I thought maybe this was something
that just broke with 2.7, but it seems to be working here with that
and with 2.61 as well.


I'm trying in WinXP with 2.6.1 version of Revolution and not work fine.

How I can send a example of my stack when I have a example with .png images 
that customize the enviroment of menu?


Best regards and thank for your response,

Gilberto Cuba 



___
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


Shadow of menu pulldown...

2006-04-17 Thread Gilberto Cuba

Hi,

How I can hide the shadow of the stack that open when I click in a button 
with style pulldown.
I tried to put false the shadow property of the current stack that It will 
show and not work fine. Why?


I understand that when the object is created by the development environment 
this property (shadow) appear with the false value and I write the script


on preOpenStack
 set the shadow of stack myStackName to false
end preOpenStack

and in the openStack message too and not work fine too.

The case is that I am customize the pulldown menu for my application and the 
shadow is include with the background image of the stack is assign with the 
button with the style pulldown, and the menu add another shadow in the 
left and bottom position of the customize stack that work as a pulldown 
menu.


I hope someone understand me.

Best regards,

Gilberto Cuba 



___
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: What happen with function screenloc() and screenrect()?

2006-03-31 Thread Gilberto Cuba

Ken Ray, thank you very much for your answer.

I using 2.6.1 version and now I know to bind with this detail, because many 
many people that work with me in the national project use the 2.6.1 version 
and the version 2.7 have the incompatibilities with older versions.


Best regards,

Gilberto Cuba

- Original Message - 
From: Ken Ray [EMAIL PROTECTED]

To: Use Revolution List use-revolution@lists.runrev.com
Sent: Wednesday, March 29, 2006 7:59 PM
Subject: Re: What happen with function screenloc() and screenrect()?



On 3/29/06 1:19 PM, Gilberto Cuba [EMAIL PROTECTED] wrote:

May any body tell me what I can to do? Because I tried to change the 
values

of windowBoundingRect and not work fine too.


Are you using 2.7 or 2.6? The reason I ask is that in 2.6, your 
application

doesn't know whether the resolution is being resized while it is running,
and so screenLoc(), etc. won't know about the new resolution unless you 
quit

your app and relaunch it. 2.7 includes the ability to know when the
resolutoin has changed (it sends a desktopChanged message), but I'm not
sure if it affects the screenLoc() function. But at least you can display 
a

message saying that the screen resolution has changed and you'll need to
quit and relaunch the application.

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [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


Re: What happen with function screenloc() and screenrect()?

2006-03-31 Thread Gilberto Cuba
Jeanne DeVoto, thank you very much. 

You have a great idea, that maybe solve this problem for me. 
I think about this solution.


Best regards,

Gilberto Cuba

- Original Message - 
From: Jeanne A. E. DeVoto [EMAIL PROTECTED]

To: How to use Revolution use-revolution@lists.runrev.com
Sent: Wednesday, March 29, 2006 11:13 PM
Subject: Re: What happen with function screenloc() and screenrect()?



At 2:19 PM -0500 3/29/2006, Gilberto Cuba wrote:
I am found that functions screenloc() and screenrect() not work fine 
or I don't understanding the documentations.
Occur that I change the resolution when my application start and I 
tried to center the software with


set the loc of this stack to screenloc()

this not work fine. Why? I found that function screenloc() and 
screenrect() keep the values of the last resolution and not refresh 
with the new display resolution.


Yes, all of the screen functions behave like this (screenLoc, 
screenRect, windowBoundingRect, colorMap, colorWorld, screenType). 
They are set only when the application starts up, and they are not 
updated if you change the settings. As it says in the docs for 
screenRect: The value returned by the screenRect function is updated 
only when you start up the application. If you change the screen 
settings after starting up the application, you must quit and restart 
to update the screenRect.


The best way is probably to create your own function. If you are 
setting the resolution, then you know what the new resolution is, and 
you can place the new value in a global variable. Then use that 
instead of the built-in screenLoc or screenRect.

--
jeanne a. e. devoto ~ [EMAIL PROTECTED]
http://www.jaedworks.com



___
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


What happen with function screenloc() and screenrect()?

2006-03-29 Thread Gilberto Cuba

Hi,

I am found that functions screenloc() and screenrect() not work fine or I 
don't understanding the documentations.
Occur that I change the resolution when my application start and I tried to 
center the software with


set the loc of this stack to screenloc()

this not work fine. Why? I found that function screenloc() and screenrect() 
keep the values of the last resolution and not refresh with the new display 
resolution.


May any body tell me what I can to do? Because I tried to change the values 
of windowBoundingRect and not work fine too.


Best regards, and excuse me for my English,

Gilberto Cuba 



___
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


Minimize stack...

2006-03-22 Thread Gilberto Cuba

Hi,

I have a Rev 2.6 in a Debian Sarge distributions, and I tried to minimize my
application in KDE, it work very fine, but I tried to minimized in GNOME
that is not work. Why?

How I can minimize my application in GNOME?

Best regards,

Gilberto Cuba 



___
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


Minimize stack...

2006-03-16 Thread Gilberto Cuba

Hi,

I have a Rev 2.6 in a Debian Sarge distributions, and I tried to minimize my
application in KDE, it work very fine, but I tried to minimized in GNOME
that is not work. Why?

How I can minimize my application in GNOME?

Best regards,

Gilberto Cuba


___
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


Minimize stack...

2006-03-15 Thread Gilberto Cuba

Hi,

I have a Rev 2.6 in a Debian Sarge distributions, and I tried to minimize my 
application in KDE, it work very fine, but I tried to minimized in GNOME 
that is not work. Why?


How I can minimize my application in GNOME?

Best regards,

Gilberto Cuba 




___
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


Messages in setprop...

2005-11-29 Thread Gilberto Cuba


Hi,

I'm working in a setprop of the property set, that is to say, group of 
property, and detect that I modified or set a value of a property of the same 
group or property set, the message dont triggered. How I can do this message 
occur?

Example: 

setprop MyPropSet[propName] newValue

switch propName
case Prop1
  -- (1)
  set the MyPropSet[Prop3] of me to value   
  break
case Prop2
  ...
  -- do something...
  ...
  break
case Prop3
  ...
  ...do something...  (2)
  ...
  break
end switch

end setprop

When i set a value to a property Prop1, it come in to (1), but when the next 
line is executing, it dont pass for (2).
I hope you might understand.

Best regards,

Gilberto Cuba

PD: I request my excuses for my english. I'm speaking spanish.  :DDD
___
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


Messages in setprop...

2005-11-25 Thread Gilberto Cuba

Hi,

I'm working in a setprop of the property set, that is to say, group of 
property, and detect that I modified or set a value of a property of the same 
group or property set, the message dont triggered. How I can do this message 
occur?

Example: 

setprop MyPropSet[propName] newValue

switch propName
case Prop1
  -- (1)
  set the MyPropSet[Prop3] of me to value   
  break
case Prop2
  ...
  -- do something...
  ...
  break
case Prop3
  ...
  ...do something...  (2)
  ...
  break
end switch

end setprop

When i set a value to a property Prop1, it come in to (1), but when the next 
line is executing, it dont pass for (2).
I hope you might understand.

Best regards,

Gilberto Cuba

PD: I request my excuses for my english. I'm speaking spanish.  :DDD
___
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


Messages in setprop...

2005-11-24 Thread Gilberto Cuba
Hi,

I'm working in a setprop of the property set, that is to say, group of 
property, and detect that I modified or set a value of a property of the same 
group or property set, the message dont triggered. How I can do this message 
occur?

Example: 

setprop MyPropSet[propName] newValue

switch propName
case Prop1
  -- (1)
  set the MyPropSet[Prop3] of me to value   
  break
case Prop2
  ...
  -- do something...
  ...
  break
case Prop3
  ...
  ...do something...  (2)
  ...
  break
end switch

end setprop

When i set a value to a property Prop1, it come in to (1), but when the next 
line is executing, it dont pass for (2).
I hope you might understand.

Best regards,

Gilberto Cuba

PD: I request my excuses for my english. I'm speaking spanish.  :DDD
___
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


Messages in setprop...

2005-11-24 Thread Gilberto Cuba


Hi,

I'm working in a setprop of the property set, that is to say, group of 
property, and detect that I modified or set a value of a property of the same 
group or property set, the message dont triggered. How I can do this message 
occur?

Example: 

setprop MyPropSet[propName] newValue

switch propName
case Prop1
  -- (1)
  set the MyPropSet[Prop3] of me to value   
  break
case Prop2
  ...
  -- do something...
  ...
  break
case Prop3
  ...
  ...do something...  (2)
  ...
  break
end switch

end setprop

When i set a value to a property Prop1, it come in to (1), but when the next 
line is executing, it dont pass for (2).
I hope you might understand.

Best regards,

Gilberto Cuba

PD: I request my excuses for my english. I'm speaking spanish.  :DDD
___
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


Char position of token...

2005-11-22 Thread Gilberto Cuba
Hi,

How I can know the position of char of the determined token of the string?

Example:

put a*sin(x+b) into temp
put token 5 of temp   -- that return x
put char 7 of temp  -- that return x
...
now, well
...
put token 3 of temp  -- that return sin
put char 3 to 5 of temp  -- that return sin

then, i need any function that return the follow values:

token 5 of temp ---  char 7 of temp 
token 3 of temp ---  char 3 to 5 of temp

Best regards,

Gilberto Cuba
___
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: Overwrite functions...

2005-11-19 Thread Gilberto Cuba

And overloading of functions???


- Original Message - 
From: Dan Shafer [EMAIL PROTECTED]

To: How to use Revolution use-revolution@lists.runrev.com
Sent: Friday, November 18, 2005 8:14 PM
Subject: Re: Overwrite functions...



Overriding built-ins is not supported in Rev as far as I know.


On Nov 18, 2005, at 6:00 PM, Gilberto Cuba wrote:


Hi,

Exists any way of overwrite a functions that it is defined by the  Engine 
Revolution with my function?


Example, i want to run a function that i defined like sec and not  run 
a function that return the seconds.


function sec tValue
  put value( 1 / cos( tValue ) ) into tResult
  return tResult
end sec

Best regards,

Gilberto Cuba
___
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




~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, Revolution: Software at the Speed of Thought
From http://www.shafermediastore.com/tech_main.html


___
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


Overwrite functions...

2005-11-18 Thread Gilberto Cuba
Hi,

Exists any way of overwrite a functions that it is defined by the Engine 
Revolution with my function?

Example, i want to run a function that i defined like sec and not run a 
function that return the seconds.

function sec tValue
  put value( 1 / cos( tValue ) ) into tResult
  return tResult
end sec

Best regards,

Gilberto Cuba
___
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: Copy image content for object image empty. (Image moving)

2005-09-17 Thread Gilberto Cuba Ricardo

Thank you another time.

Best regards,

Gilberto Cuba

- Original Message - 
From: Klaus Major [EMAIL PROTECTED]

To: How to use Revolution use-revolution@lists.runrev.com
Sent: Saturday, September 17, 2005 6:03 AM
Subject: Re: Copy image content for object image empty. (Image moving)



Buenos diaz Gilberto,


Hi,


you can simply put one image into another one :-)
But this only works with imported images, NOT with referenced images!

I understand this.


on mouseUp
   put image img01 into image Visor ##of cd 17 of stack  
another  cool stack

end mouseUp

This works to the a thousand marvels. Thanks.


Great :-)

This is a little less scripting and you do not have to take care  
that  the dimensions
As you spoke of the dimensions I stayed thinking and when carrying  
out a code I found a detail that   I wanted to be able to clarify.


I made the following script in the image.

on mouseUp
   lock screen
   put image img01 of stack myStack into image Visor
   set the width of image Visor to 200
   set the height of image Visor to 200
   unlock screen
end mouseUp

And it happens that when I press the click in the image, the image  
goes moving up in a position and me the only thing that I make is  
to change their dimensions.


Why does this happen?


Sorry, no idea...


I don't have neither the smallest idea.


I also found that setting height and/or width will also change
the loc of an object.

I ususally work around this with:

on mouseUp
   put the loc of img visor into tOldloc
   lock screen
   put image img01 of stack myStack into image Visor
   set the width of image Visor to 200
   set the height of image Visor to 200
   set the loc of img visor to tOldloc
   ## :-)
   unlock screen
end mouseUp


of both images are identical(!) as you have with imagedata.
Hope that heps.


Yes and thanks you.

Greetings,

Gilberto Cuba



Regards from germany
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de


Greetings,

My name is Gilberto Cuba and I live in Cuba.


I almost guessed ;-)

Have a nice weekend.


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de




___
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: Copy image content for object image empty. (Image moving)

2005-09-16 Thread Gilberto Cuba Ricardo

Hi,


you can simply put one image into another one :-)

But this only works with imported images, NOT with referenced images!


I understand this.



on mouseUp
   put image img01 into image Visor ##of cd 17 of stack another  cool 
stack

end mouseUp


This works to the a thousand marvels. Thanks.



This is a little less scripting and you do not have to take care that  the 
dimensions


As you spoke of the dimensions I stayed thinking and when carrying out a 
code I found a detail that   I wanted to be able to clarify.


I made the following script in the image.

on mouseUp
   lock screen
   put image img01 of stack myStack into image Visor
   set the width of image Visor to 200
   set the height of image Visor to 200
   unlock screen
end mouseUp

And it happens that when I press the click in the image, the image goes 
moving up in a position and me the only thing that I make is to change their 
dimensions.


Why does this happen?

I don't have neither the smallest idea.


of both images are identical(!) as you have with imagedata.

Hope that heps.


Yes and thanks you.




Greetings,

Gilberto Cuba


Regards from germany

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de



Greetings,

My name is Gilberto Cuba and I live in Cuba.




___
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


Copy image content for object image empty.

2005-09-15 Thread Gilberto Cuba Ricardo

Hello colleagues,

I am trying to copy an image that is in a stack for an object image empty, 
but it doesn't work; that makes it is to copy a dirty image for the object 
image.


Script in the object image Visor

on mouseUp
   put the imagedata of image img01 of this stack into tImageData
   put the tImageData into the imagedata of image Visor
end mouseUp

I'm tried too with the property paintcompression, but not work, i.e., i'm 
tried to put the paintcompression into object image Visor.


Some idea of as making it would be welcome.

Greetings,

Gilberto Cuba 




___
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


Stack in runtime...

2005-09-08 Thread Gilberto Cuba Ricardo

Hello colleagues,

I'm a new in the use of the Revolution and recently I began their study.
Today studying many of their things, has been that when I make a stack in
runtime with the invisible property, then when I will show the stack, 
doesn't

make it, and neither closes it in case I doesn't put the invisible property.

This is my code the which they can check to see in what I have made a 
mistake.


In the script button:

on mouseUp numberButton
   if numberButton = 1 then
   create invisible stack MyStack
   set the visible of stack MyStack to true
   wait 10 seconds
   close the defaultStack
   delete stack MyStack
   end if
end mouseUp

Best regards,

Gilberto Cuba

PD: Excusame my english, i'dont know the english correctly.



___
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