Search found 10 matches

by criobot
Mon Apr 16, 2012 11:41 am
Forum: Coding Questions
Topic: Proper ListIconGadget locking to prevent greying out?
Replies: 8
Views: 1227

Re: Proper ListIconGadget locking to prevent greying out?

A good aproach when adding so much items is to use multithreading. Adding items asynchroniously will update gadget's window and keep the gadget responsive.
Procedure additems(param)
For i = 0 To 10000
AddGadgetItem(0, -1, "Item " + Str(i))

Next
EndProcedure

If OpenWindow(0, 100, 100, 300, 100 ...
by criobot
Fri Apr 06, 2012 9:43 pm
Forum: Tricks 'n' Tips
Topic: [MSW] CommandLinkButton Gadget (Updated!)
Replies: 12
Views: 4852

Re: [MSW] CommandLinkButton Gadget (Updated!)

Thanks for that example. Below is a snippet which should help you get Comctl32's version. Many windows dlls have the DLLGetVersion function. :)

dvi.DLLVERSIONINFO


Library = OpenLibrary(#PB_Any, "Comctl32.dll")
If IsLibrary(Library)

dvi\cbSize = SizeOf(DLLVERSIONINFO)
CallFunction(Library ...
by criobot
Thu Sep 08, 2011 10:38 am
Forum: Tricks 'n' Tips
Topic: Skype API Protocol Example [Windows]
Replies: 4
Views: 3199

Skype API Protocol Example [Windows]

Tested on Windows Vista 32bit with Skype 5.5. Check out Skype's Public API Reference for more info about protocol versions and command compatibility.

Global DiscoverSkype = RegisterWindowMessage_("SkypeControlAPIDiscover")
Global AttachSkype = RegisterWindowMessage_("SkypeControlAPIAttach")
Global ...
by criobot
Tue Aug 16, 2011 8:02 am
Forum: Coding Questions
Topic: How can I get the ImageID from a TreeGadget item?
Replies: 4
Views: 941

Re: How can I get the ImageID from an TreeGadget item?

You could use TreeView API to get each gadget item's icon. Sadly making this cross-platform will be much more complicated.
Example (PB 4.6):
For i = 1 To 7
CreateImage(i, 16,16)

StartDrawing(ImageOutput(i))
DrawText(4,1,Str(i))
StopDrawing()
Next

If OpenWindow(0, 0, 0, 355, 180, "TreeGadget ...
by criobot
Sun Sep 19, 2010 11:06 pm
Forum: Coding Questions
Topic: Draw Progressbar
Replies: 11
Views: 2526

Re: Draw Progressbar

Basic progressbar I've been using in one of my projects.

Procedure SetProgress(State, Idle = #False)
ProgressImage = CreateImage(#PB_Any, GadgetWidth(0), GadgetHeight(0))
ActiveWidth = (ImageWidth(ProgressImage) / 100) * State
InactiveWidth = ImageWidth(ProgressImage) - ActiveWidth ...
by criobot
Fri Sep 10, 2010 5:46 pm
Forum: Coding Questions
Topic: Best icon techniques?
Replies: 13
Views: 2730

Re: Best icon techniques?

IcoFX - Freeware icon editor, supports all kind of icons (including Vista's)
by criobot
Thu Sep 09, 2010 6:51 pm
Forum: Announcement
Topic: Screenshots for WebSite + Box
Replies: 102
Views: 171703

Re: Screenshots for WebSite + Box

SVD 1.7.1 - Software for downloading videos and subtitles from vbox7.com (bulgarian video portal) and YouTube.com, and converting them to other video/audio formats. Open source, program source code is installed with the program.
Website

Image
by criobot
Tue Jul 27, 2010 1:45 pm
Forum: Windows
Topic: Strange problem with FFMPEG's stdout
Replies: 16
Views: 15570

Strange problem with FFMPEG's stdout

I'm not sure if the problem is with PB's Process library or within FFMPEG itself. I am using the latest FFMPEG build. And it behaves very strange even with these simple parameters from the code below. It returns only exit code 1 and no output, but if I change the parameters to "-h", it behaves ...
by criobot
Wed Dec 30, 2009 12:49 pm
Forum: Windows
Topic: Winamp General Purpose Plugin
Replies: 4
Views: 1816

Re: Winamp General Purpose Plugin

This line is wrong:

ProcedureReturn *PLUGIN

change it to

ProcedureReturn @PLUGIN

And you should use ".i" as default type for pointers, or your code won't work on x64.

First I used the .i type for the Structure members and the addressof (@) symbol, but it did not work. I've changed the ...
by criobot
Wed Dec 30, 2009 8:54 am
Forum: Windows
Topic: Winamp General Purpose Plugin
Replies: 4
Views: 1816

Winamp General Purpose Plugin

Hello,
I tried to create a Winamp plugin, using the specifications of the Winamp SDK and by following the Beginner's Guide , but my plugin isn't shown in the General Purpose plugins list in Winamp. I found 2 plugin examples in the Code Archive from PureArea, but they are for Visualisation and for an ...