CBK Objects
These are special feedback objects.
CBK_Total
If any text object has this Label then the total time from MP3 file will be
displayed here. Make sure you create the text object with enough space around it
to accommodate the number format XX::XX
CBK_Time
Displays the current time of playing MP3 file.
CBK_MP3Type
The type of current MP3 file (MPEG 1 Layer 3)
CBK_MP3Bit
BitRate of current MP3
CBK_MP3Freq
Frequncy of current MP3
CBK_MP3Name
File Name of current MP3
For Example see macmp3_2.mbd
CBK_NumInList
Number of items in the MP3 list
CBK_CurItemList
Currently selected item from the MP3 list. (See mp3Tags.mbd sample)
CBK_MP3EOF
If any script on the current or Master Top layer page has the label
CBK_MP3EOF, the script will be executed when the current playing MP3 song ends up.
If there is no such script with this label on current page, MMB will look into
Master Top Layer, if even there is no such script, the song will just end and
that's all.
There could be anything in the CBK_MP3EOF script - you can put there NextPage
and the MMB will go to the next page when mp3 file reach its end, you can Show
some picture, you can open another MP3 song…
CBK_Menu
Use this to create a Menu group you want to hide if the user clicks away from the group.
Instead of using hotspots around the menu, make the label of the group
starting with CBK_Menu.
Whenever the user clicks on the screen, all objects starting with CBK_Menu
will be hidden, except the menu under the cursor.
CBK_EXIT
Use this to catch the Close button on the title bar or the Escape key.
Note: The object or group MUST be in the Master Top layer.
Whenever the user press Escape or click on the Close button, the CBK_EXIT object will be shown and/or the script (if any) on the MouseUp
of the CBK_EXIT will be launched.
Example:
On Master Top Layer create rectangle.
Insert the text: «Do you want to exit?», and two buttons: «OK» and «Cancel».
Now group all 4 objects.
Rename The Group to CBK_EXIT
Expand the group in the object list so you can access the items in it.
On Button OK: Trigger the Exit action.
On button Cancel: Hide the CBK_EXIT group .
Now hide the whole CBK_EXIT group.
Tip: From the Wizard tool (on tool bar) select Capture Exit and ESC key, then
select the type from submenu - this will insert the object for you.