Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about Find in Search
#4
I just discovered a new anomaly concerning Search --> Find. Copy the following code into the IDE.

Go to Search, then Find, and type in _rgb for the search term then hit ENTER

The first instance of _RGB32 is highlighted but not the second instance.

Now, click on the menu toolbar anywhere this is not menu text, just to the right of Tools for example. The second highlight will appear.

The very first time I did the search they both highlighted. But subsequent searches had this strange anomaly.

** Update, ok, now I'm having problems getting this to happen again. It seems using the mouse to access the menu options versus the keyboard may have something to do with this?

Code: (Select All)
'* Animation Demo *
SpriteSheet& = _LOADIMAGE("walksheet104x156.png", 32) '              load sprite sheet
_CLEARCOLOR _RGB32(255, 0, 255), SpriteSheet& '                      set transparent color
SCREEN _NEWIMAGE(104, 156, 32) '                                    enter graphics screen
DO '                                                                begin animation loop
    _LIMIT 5 '                                                      5 frames per second
    CLS , _RGB32(255, 255, 255) '                                    clear screen white
    c = c + 1 '                                                      increment cell counter
    IF c = 6 THEN c = 0 '                                            reset when necessary
    _PUTIMAGE , SpriteSheet&, 0, (c * 104, 0)-(c * 104 + 103, 155) ' display cell from sheet
    _DISPLAY '                                                      update screen change
LOOP UNTIL _KEYDOWN(27) '                                            leave when ESC pressed
SYSTEM '                                                            return to OS
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply


Messages In This Thread
Question about Find in Search - by TerryRitchie - 05-02-2024, 03:27 PM
RE: Question about Find in Search - by SMcNeill - 05-02-2024, 04:15 PM
RE: Question about Find in Search - by TerryRitchie - 05-02-2024, 05:29 PM



Users browsing this thread: 1 Guest(s)