Page 1 of 1

Dangling Participles

Posted: Tue Oct 14, 2003 11:55 pm
by AgentOrange
I don't care much for leaving graphics out in the open. I read about the IncludeBinary. Once included, is there a way to access the binary without having to write it out to the disk?

Code: Select all

  If CreateToolBar(0, WindowID())
    ToolBarImageButton(0, LoadImage(0, "Icons\Load.ico"))
    ToolBarSeparator()
    ToolBarImageButton(3, LoadImage(0, "Icons\Stop.ico"))
    ToolBarImageButton(2, LoadImage(0, "Icons\Play.ico"))
    ToolBarImageButton(4, LoadImage(0, "Icons\Pause.ico"))
    ToolBarSeparator()
    ToolBarImageButton(12, LoadImage(0, "Icons\About.ico"))
  EndIf
ao

Posted: Wed Oct 15, 2003 12:56 am
by Karbon
There sure is - check out CatchImage()

..

Posted: Wed Oct 15, 2003 2:11 am
by AgentOrange
Karbon wrote:There sure is - check out CatchImage()
Hey thanks a bunch.. I think what's happening, is that I'm making this harder than it needs to be... the Visual Designer is freakin sweet.

Especially, the Include Event Loop..

Very nice.. so should I be so bold to ask, is it going to be this easy to include and play a wav file? I'm not into using compressed audio at the moment.. waves only

ao

Posted: Wed Oct 15, 2003 12:29 pm
by Kale
is it going to be this easy to include and play a wav file?
Yes! Binary include it within a datasection, use CatchSound() to grab it from binary to memory then use PlaySound() to play it! :D

Posted: Thu Oct 16, 2003 1:19 am
by AgentOrange
Kale wrote:
is it going to be this easy to include and play a wav file?
Yes! Binary include it within a datasection, use CatchSound() to grab it from binary to memory then use PlaySound() to play it! :D
Thanks Kale.. that was too easy.. :lol:

Posted: Thu Oct 16, 2003 6:34 pm
by Karbon
Be sure to check out PureVision too - another visual designer. http://www.reelmediaproductions.com/purevision/

..

Posted: Thu Oct 16, 2003 8:00 pm
by AgentOrange
Karbon wrote:Be sure to check out PureVision too - another visual designer. http://www.reelmediaproductions.com/purevision/
I've seen that before.. Just wish the screen shot was bigger. :cry:

ao