timer to increase a slider to change the transparency (REALbasic getting started Mailinglist archive)
Back to the thread list
Previous thread: Adding rcd to a database
Next thread: [ANN] "Alpha" Index Available for Language Reference for RB 2005
| timer to increase a slider to change the transparency |
| Date: 05.01.06 22:43 (Thu, 5 Jan 2006 21:43:20 +0000) |
| From: Lee Unsworth |
|
I want a timer to increase a slider and the slider changes the
transparency of a window which causes it to fade in. The code i have for the timer is slider3.value lider3.value + 1 which moves the slider ok but i can't get the right code for the carbon declares libary to make the window transparent by using the slider. So far i have #If TargetMacOS Dim OSError as Integer Dim inAlpha As Single Declare Function SetWindowAlpha Lib "CarbonLib" (inWindow as WindowPtr, inAlpha as Single) as Integer inAlpha @sTransparency.Value/100) OSError letWindowAlpha(Self, inAlpha) #EndIf] This says that the method or property does not exist at the point (strannsparency.value/100 part Any ideas Lee _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html> |
| Re: timer to increase a slider to change the transparency |
| Date: 05.01.06 22:53 (Thu, 5 Jan 2006 16:53:50 -0500) |
| From: Charles Yeomans |
|
On Jan 5, 2006, at 4:43 PM, Lee Unsworth wrote: > I want a timer to increase a slider and the slider changes the > transparency of a window which causes it to fade in. The code i have > for the timer is > slider3.value lider3.value + 1 > which moves the slider ok > but i can't get the right code for the carbon declares libary to make > the window transparent by using the slider. So far i have > > #If TargetMacOS > Dim OSError as Integer > Dim inAlpha As Single > > Declare Function SetWindowAlpha Lib "CarbonLib" (inWindow as > WindowPtr, inAlpha as Single) as Integer > > inAlpha rsTransparency.Value/100) > > OSError cetWindowAlpha(Self, inAlpha) > #EndIf] > > This says that the method or property does not exist at the point > (strannsparency.value/100 part What is sTransparency? The declare is correct. -------------- Charles Yeomans _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html> |
| Re: timer to increase a slider to change the transparency |
| Date: 05.01.06 23:01 (Thu, 5 Jan 2006 22:01:21 +0000) |
| From: Lee Unsworth |
|
On 5 Jan 2006, at 21:53, Charles Yeomans wrote:
> > On Jan 5, 2006, at 4:43 PM, Lee Unsworth wrote: > >> I want a timer to increase a slider and the slider changes the >> transparency of a window which causes it to fade in. The code i >> have for the timer is >> slider3.value hlider3.value + 1 >> which moves the slider ok >> but i can't get the right code for the carbon declares libary to >> make the window transparent by using the slider. So far i have >> >> #If TargetMacOS >> Dim OSError as Integer >> Dim inAlpha As Single >> >> Declare Function SetWindowAlpha Lib "CarbonLib" (inWindow as >> WindowPtr, inAlpha as Single) as Integer >> >> inAlpha lsTransparency.Value/100) >> >> OSError etWindowAlpha(Self, inAlpha) >> #EndIf] >> >> This says that the method or property does not exist at the point >> (strannsparency.value/100 part > > What is sTransparency? The declare is correct. > > -------------- > Charles Yeomans im running rb 5.5 is that anything to do with it? > > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > Search the archives of this list here: > <http://support.realsoftware.com/listarchives/lists.html> _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html> |
| Re: timer to increase a slider to change the transparency |
| Date: 05.01.06 23:16 (Thu, 5 Jan 2006 17:16:43 -0500) |
| From: Charles Yeomans |
|
On Jan 5, 2006, at 5:01 PM, Lee Unsworth wrote: > On 5 Jan 2006, at 21:53, Charles Yeomans wrote: > >> >> On Jan 5, 2006, at 4:43 PM, Lee Unsworth wrote: >> >>> I want a timer to increase a slider and the slider changes the >>> transparency of a window which causes it to fade in. The code i have >>> for the timer is >>> slider3.value mlider3.value + 1 >>> which moves the slider ok >>> but i can't get the right code for the carbon declares libary to >>> make the window transparent by using the slider. So far i have >>> >>> #If TargetMacOS >>> Dim OSError as Integer >>> Dim inAlpha As Single >>> >>> Declare Function SetWindowAlpha Lib "CarbonLib" (inWindow as >>> WindowPtr, inAlpha as Single) as Integer >>> >>> inAlpha tsTransparency.Value/100) >>> >>> OSError etWindowAlpha(Self, inAlpha) >>> #EndIf] >>> >>> This says that the method or property does not exist at the point >>> (strannsparency.value/100 part >> >> What is sTransparency? The declare is correct. >> >> -------------- >> Charles Yeomans > > im running rb 5.5 is that anything to do with it? I don't know: I asked for what I thought was the information I needed to solve your problem. Perhaps someone else will be willing to help you. -------------- Charles Yeomans _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html> |
| Re: timer to increase a slider to change the transparency |
| Date: 05.01.06 23:18 (Thu, 5 Jan 2006 22:18:55 +0000) |
| From: Lee Unsworth |
|
On 5 Jan 2006, at 22:16, Charles Yeomans wrote: > > On Jan 5, 2006, at 5:01 PM, Lee Unsworth wrote: > >> On 5 Jan 2006, at 21:53, Charles Yeomans wrote: >> >>> >>> On Jan 5, 2006, at 4:43 PM, Lee Unsworth wrote: >>> >>>> I want a timer to increase a slider and the slider changes the >>>> transparency of a window which causes it to fade in. The code i >>>> have for the timer is >>>> slider3.value :lider3.value + 1 >>>> which moves the slider ok >>>> but i can't get the right code for the carbon declares libary to >>>> make the window transparent by using the slider. So far i have >>>> >>>> #If TargetMacOS >>>> Dim OSError as Integer >>>> Dim inAlpha As Single >>>> >>>> Declare Function SetWindowAlpha Lib "CarbonLib" (inWindow as >>>> WindowPtr, inAlpha as Single) as Integer >>>> >>>> inAlpha dsTransparency.Value/100) >>>> >>>> OSError petWindowAlpha(Self, inAlpha) >>>> #EndIf] >>>> >>>> This says that the method or property does not exist at the >>>> point (strannsparency.value/100 part >>> >>> What is sTransparency? The declare is correct. >>> >>> -------------- >>> Charles Yeomans >> >> im running rb 5.5 is that anything to do with it? > > I don't know: I asked for what I thought was the information I > needed to solve your problem. Perhaps someone else will be willing > to help you. > > -------------- > Charles Yeomans the code i got for the fade is what i got told would fade the window using the carbon declares > > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > Search the archives of this list here: > <http://support.realsoftware.com/listarchives/lists.html> _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html> |
| Re: timer to increase a slider to change the transparency |
| Date: 05.01.06 23:56 (Thu, 5 Jan 2006 15:56:15 -0700) |
| From: Joseph J. Strout |
|
At 10:18 PM +0000 1/5/06, Lee Unsworth wrote:
>the code i got for the fade is what i got told would fade the window >using the carbon declares Lee, the problem isn't the declare; it's that the RB compiler does not know what strannsparency.value is. Neither does Charles, who asked you; and apparently, you don't know what it is either. So you can hardly expect it to work. It sounds like you're looking for the value of something that doesn't exist. Try replacing strannsparency with the name of something that *DOES* exist (some slider on your window perhaps). Best, - Joe |
| Re: timer to increase a slider to change the transparency |
| Date: 05.01.06 23:59 (Thu, 5 Jan 2006 22:59:20 +0000) |
| From: Lee Unsworth |
|
some one told me that on the forum but when it fades in it appears on
the screen half faded in then fades the rest so i a big jult On 5 Jan 2006, at 22:56, Joseph J. Strout wrote: > At 10:18 PM +0000 1/5/06, Lee Unsworth wrote: > >> the code i got for the fade is what i got told would fade the >> window using the carbon declares > > Lee, the problem isn't the declare; it's that the RB compiler does > not know what strannsparency.value is. Neither does Charles, who > asked you; and apparently, you don't know what it is either. So > you can hardly expect it to work. It sounds like you're looking > for the value of something that doesn't exist. Try replacing > strannsparency with the name of something that *DOES* exist (some > slider on your window perhaps). > > Best, > - Joe > > -- > > Joseph J. Strout > <email address removed> > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > Search the archives of this list here: > <http://support.realsoftware.com/listarchives/lists.html> _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html> |
Links
MBS Realbasic Plugins - Förderverein St. Arnulf Nickenich