Tordex Community
Tutorial or SDK reference or HOWTO? - Printable Version

+- Tordex Community (http://forum.tordex.com)
+-- Forum: True Launch Bar plugins (http://forum.tordex.com/forum-4.html)
+--- Forum: Plugin features and improvements (http://forum.tordex.com/forum-15.html)
+--- Thread: Tutorial or SDK reference or HOWTO? (/thread-1401.html)



- JCinDE - 05-09-2004

Anyone know where I can find a reference or tutorial for writing plugins?


- HorusUK - 05-09-2004

Try downloading the True Launch Bar SDK for starters. Big Grin


- JCinDE - 05-09-2004

HorusUK Wrote:Try downloading the True Launch Bar SDK for starters. Big Grin
Thanks. Got that already, though. It's just a little...bewildering. Some sort of documentation for it is what I'm after. Or a SIMPLE tutorial project that implements it and provides source code comments...


- Yuri Kobets - 05-12-2004

Tutorial is under construction still Sad You can ask any question dirrectly to me.


- JCinDE - 05-19-2004

Yuri Kobets Wrote:Tutorial is under construction still Sad You can ask any question dirrectly to me.
Heh...you may not like my question then.

How do I start? =)

For instance, how do I create a plugin that's just a clickable button that pops up a MessageBox?

I've looked at the source of several sample plugins but they all seem to do things differently.


- Yuri Kobets - 05-21-2004

OK. Open memmon sample change or remove code from CMemMonBtn:Big Grinraw where you must draw your button. And add MessageBox into CMemMonBtn::Run()

Code:
STDMETHODIMP CMemMonBtn::Run()
{
    if(m_container)
    {
        HWND hWndBand = m_container->GetBandWND(); // get the toolbar window
        MessageBox(hWndBand, "You've clicked me!", "Title", MB_OK); // Show message box
    }
    return S_OK;
}

and change the value of CLSID_MemMonitorButton in the guid.h using guidgen utility from PSDK.