Mioplanet Lab
Research & Development
SEARCH
     Home | MioScript Experimentation | Flying Notes

  Topics
Multimedia Experimentation
MioScript Experimentation
Software Experimentation
Robotics
Finger Driven Applications
Musical Gadgets
Miscellaneous

  MioScript Experimentation
Valse
Robot Mouse
Digital Jewel
Flying Onion
Waves
DigiCater
Bee
Squared
Magnificator
MioClock
Flying Notes
Mio Jackpot
Magic Carpet
Falling Pooh
Timer

Flying Notes


 A sliding window allows you to save data in six personal notes.

Flying Notes
Mioplanet Lab - Research & Development

This application shows an interesting way to make window available all the time. The sliding is smooth and fast, and the notes can remain visible.

This prototype do not save data but it is easy to update the code to save the content of the notes on the disk. 



Try flying_notes.exe


 You can download and try the application.
This application is a prototype and some features may not work as expected on your computer.

 
 
Fileflying_notes.exe
Size522 Kb
PlatformWindows 98, ME, NT4, 2000, XP, Vista
Start Download Now
Safe Download



Download Source Code


 The full source code is provided as a Mio Archive File.
With MioFactory, you can open this archive file, edit the source code and test the result.

 
 
Fileflying_notes.mioa
Size39 Kb
FormatMioFactory Archive File
Start Download Now
 



MioScript Source Code

 MioScript is a scripting language aimed to create any kind of applications.
A free version of MioFactory is available to compile MioScript applications. 



 Main.k 


event.load
      extern.close("{APP_NAME}") // Only one instance allowed
      app.init("{APP_ID}", "{APP_NAME}", "{APP_VERSION}", "{APP_BUILD}", "{CREATE_LOG}")

      app.booster(true)
      
      &data = "" // Data not saved in this prototype

      window.main.autoClose(false, false)

      // Load Bitmaps
      window.main.shape.load(path.rsc("Shape.bmp"), false)
      draw.main.load(path.rsc("Notes.jpg"))
      draw.main.paint()
      
      &iButtons = draw.mem.createFromFile(path.rsc("Buttons.jpg"))

      // Icons for pages
      &A = CreateButton(5, 5, true)
      &B = CreateButton(25, 25, false)
      &C = CreateButton(45, 45, false)
      &D = CreateButton(65, 65, false)
      &E = CreateButton(85, 85, false)

      &MinX = screen.width() - 52
      &MaxX = screen.width() - window.main.width()
      &Wanted = &MaxX
      &Current = &MinX

      // Window pos
      window.main.movable(yOnly)
      &pX = screen.width() - window.main.width()
      window.main.pos.now(&Current, 250)

      // Input box
      inputBox.main.pos(67, 14,200, 118)
      inputBox.main.visible(true)
      inputBox.main.text.tabsStops(8)
      inputBox.main.text.font("Arial")
      inputBox.main.text.size(9)
      inputBox.main.scrollbar.visible(true)
      &CurrentPage = 1
      inputBox.main.text.set(&Data[1])

      // Boutons
      &CloseID = window.main.create(true, btClose, false, false, false, false)
      window.&CloseID.pos(36, 121, 15, 15)
      draw.&CloseID.load(Path.Rsc("close.bmp"))
      mouse.&CloseID.Cursor(hotspot)
      doEvent.continue()
event.end

event.continue
      // Temps to allow input box to get focus
      inputBox.main.setFocus
      doEvent.animate()
event.end
                                                      
event.mouse:click
      &Wanted = ?(&Wanted = &MinX, &MaxX, &MinX)
      doEvent.Animate()
event.end

event.Animate
      &Set = 20
      // Slide the window
      if(&Current < &Wanted)
            Var.Inc(Current, &Set, &Wanted)
            &DoIt = true
      if.end
      if(&Current > &Wanted)
            Var.Dec(Current, &Set, &Wanted)
            &DoIt = true
      if.end

      window.main.pos.now = &Current, null, (screen.width()-&Current), null

      if(&DoIt = true)
            doEvent.Animate = 20
      if.else
            if(&Current = &MaxX)
                  window.&CloseID.visible(true)
            if.else
                  window.&CloseID.visible(false)
            if.end
      if.end
      &DoIt = false
event.end

event.mouse:Click:PageButton
      mouse.cursor = Hourglass
      &ID = window.eventAuthor()
      &Data[&CurrentPage] = inputBox.main.text.get()
      
      // Redraw buttons
      for(&ptr, 1, 6)
            draw.&ptr.copyFrom.&iButtons(?(&ID = &ptr, 21, 0), &SrcY[&ptr], 21, 18, 0, 0, 21, 18)
            draw.&ptr.paint()
      for.next
      &CurrentPage = &ID
      inputBox.main.text.set(&Data[&ID])

      inputBox.main.setFocus()
      mouse.cursor(normal)
event.end

function.createButton(&SrcY, &TarY, &Selected)
      &ID = window.main.create(true, PageButton, false, false, false, false, false)
      mouse.&ID.cursor(hotspot)
      &SrcY[&ID] = &SrcY
      window.&ID.pos.now = 32, &TarY, 21, 18
      draw.&ID.copyFrom.&iButtons(?(&Selected = true, 21, 0), &SrcY[&ID], 21, 18, 0, 0, 21, 18)
      draw.&ID.paint
      return(&ID)
function.end

// Close
event.mouse:click:btClose
      window.main.visible(false)
      app.close()
event.end

event.terminate
      &Data[&CurrentPage] = InputBox.main.Text.Get()
      // The array Data should be saved on disk here
event.end



In the same topic


 
MioScript Experimentation
Mioplanet Lab - Research & Development
MioScript Experimentation
Various applications created to experiment and improve MioScript.

Bee
Mioplanet Lab - Research & Development
Bee
Bees flying on your desktop.

DigiCater
Mioplanet Lab - Research & Development
DigiCater
A sort of digital caterpillar moving on your desktop.

Digital Jewel
Mioplanet Lab - Research & Development
Digital Jewel
A Digital Jewel for your Desktop.

Falling Pooh
Mioplanet Lab - Research & Development
Falling Pooh
A pooh and it's balloon flying on your desktop.

Flying Onion
Mioplanet Lab - Research & Development
Flying Onion
A ring rolling around a ball.

Magic Carpet
Mioplanet Lab - Research & Development
Magic Carpet
Enigmatic object with an animated shape.

Magnificator
Mioplanet Lab - Research & Development
Magnificator
A simple but perfectly efficient magnifier.

Mio Jackpot
Mioplanet Lab - Research & Development
Mio Jackpot
A jackpot game with sound effects and hi-score.

MioClock
Mioplanet Lab - Research & Development
MioClock
A clock for your desktop.

Robot Mouse
Mioplanet Lab - Research & Development
Robot Mouse
A robot running over your desktop trying to follow the mouse.

Squared
Mioplanet Lab - Research & Development
Squared
A full screen animation.

Timer
Mioplanet Lab - Research & Development
Timer
Rings when time is out.

Valse
Mioplanet Lab - Research & Development
Valse
Move an object with the keyboard and play music.

Waves
Mioplanet Lab - Research & Development
Waves
Simple animation using the MioEngine internal graphic engine.