New topic: 

MoviePlayer.HasStep

<http://forums.realsoftware.com/viewtopic.php?t=46555>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        barrytraver          Post subject: MoviePlayer.HasStepPosted: 
Mon Jan 14, 2013 3:17 am                         
Joined: Fri Sep 30, 2005 1:53 pm
Posts: 778
Location: Philadelphia, PA                The RB docs say this concerning 
MoviePlayer.HasStep.
_____

BooleanValue = MoviePlayer.HasStep
If True, the controller has forward and reverse arrows to the right of the 
slider. The default is True. 

Example
This example turns HasStep off. Since it is called prior to the assignment of a 
movie to the player, the arrows are not shown for this movie. 

Dim f as FolderItem
f=GetopenFolderItem(FileTypes1.VideoMp4)
if f<>Nil then
MoviePlayer1.AutoPlay = True
MoviePlayer1.HasStep=False
MoviePlayer1.movie=f.OpenAsMovie
end if
_____

Here's what I don't understand.

First, whether the value is true or false, there is a fast-forward arrow to the 
right of the slider (as the RB docs correctly state), BUT the rewind arrow is 
to the left of the slider, not to the right.

Second (and this is more important), If HasStep is declared to be true (or left 
to the default setting) the arrows are shown (as the RB docs correctly state). 
BUT if MoviePlayer.HasStep is declared to be false, the arrows are still shown.

This is contrary to the RB docs. which say, "This example turns HasStep off. 
Since it is called prior to the assignment of a movie to the player, the arrows 
are NOT shown for this movie."

BUT the arrows ARE are shown on my computer for the code below.  Am I missing 
something here?

Barry Traver

P.S.  I'm using the Windows version of REALbasic.  And here's my code:

  Dim MovieTypes As New FileType
  MovieTypes.Name = "Movie files"
  MovieTypes.Extensions = ".mpeg; .mpg; .mp4; .wmv"
  Dim File1 As FolderItem = GetOpenFolderItem(MovieTypes)
  If File1 <> Nil Then
  MoviePlayer1.HasStep=False
  MoviePlayer1.AutoPlay = True
  MoviePlayer1.Movie = File1.OpenAsMovie
  End If   
                             Top                timhare          Post subject: 
Re: MoviePlayer.HasStepPosted: Mon Jan 14, 2013 4:01 am                         
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 11982
Location: Portland, OR  USA                Perhaps it is platform-specific 
functionality and the docs need to be updated.  The description of both arrows 
being on the same side sounds a lot like Mac.  I believe you're on Windows, and 
the control should look different.   
                             Top                barrytraver          Post 
subject: Re: MoviePlayer.HasStepPosted: Mon Jan 14, 2013 9:07 am                
         
Joined: Fri Sep 30, 2005 1:53 pm
Posts: 778
Location: Philadelphia, PA                Tim,

Thanks for the reply. If the Mac has arrows on both sides, that is probably the 
explanation.  I do wish I could turn off the arrows in Windows, because the 
result of moving them is NOT pleasant on the eyes (it looks klutzy) or ears (it 
sounds awful), but the ability to remove the arrows may be missing on the 
Windows Media Player, which is what I think REALbasic uses for Windows.  (There 
may not even be a Windows API call I could use, because that feature just may 
be entirely missing from the software).

Barry   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to