Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drop Down Menu
#1
Here is a bare bones of a drop down menu which I have been using. I have had to use a Slowing value to smooth out the speed at which the drop down occurs. I was wondering if there might be a better way to control the speed.

Cls
Screen _NewImage(1200, 900, 32)
Dim Shared DarkGreen&
Dim Shared Yellow&
Dim Shared Pink&
DarkGreen& = _RGB32(0, 129, 0)
Yellow& = _RGB(255, 255, 0)
Pink& = _RGB(216, 50, 166)


'Large background box
Line (0, 0)-(1199, 50), Pink&, BF
Sleep
c1 = 7
r1 = 7
c2 = 126
r2 = 46
'The 5 smaller box
Line (c1, r1)-(c2, r2), DarkGreen&, BF

r1 = 51
r2 = 93
'The Drop Down
For DDwn = 1 To 25
    Color Yellow&
    _PrintString (12, 15), "Opening Info"
    Line (c1, r1)-(c2, r2), DarkGreen&, BF
    For slow = 1 To 10000000: Next
    r1 = r1 + DDwn
    r2 = r2 + DDwn
Next
Sleep
Reply


Messages In This Thread
Drop Down Menu - by Dimster - 10-21-2022, 03:29 PM
RE: Drop Down Menu - by SMcNeill - 10-21-2022, 03:37 PM
RE: Drop Down Menu - by Pete - 10-21-2022, 03:40 PM
RE: Drop Down Menu - by Pete - 10-21-2022, 03:53 PM
RE: Drop Down Menu - by Pete - 10-21-2022, 04:08 PM
RE: Drop Down Menu - by Dimster - 10-21-2022, 05:34 PM
RE: Drop Down Menu - by Pete - 10-21-2022, 05:58 PM
RE: Drop Down Menu - by Dimster - 10-21-2022, 06:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Universal Menu Concept Pete 3 390 01-05-2026, 07:31 PM
Last Post: Pete
  Is there a menu function? Mad Axeman 17 1,121 12-17-2025, 04:43 AM
Last Post: SMcNeill
  performance drop on LINUX with PSET in v4.2 Herve 12 972 11-20-2025, 02:00 PM
Last Post: SpriggsySpriggs
  Trying to create a simple menu CMR 8 1,241 06-18-2025, 06:59 PM
Last Post: CookieOscar
  Another way to use Hardware Images and Transparency (alpha channel) for a PopUp Menu TempodiBasic 1 521 03-30-2025, 05:10 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)