Writing plugins - How to questions..
Started by mark76uk


Rate this topic
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


16 posts in this topic
Yuri Kobets
Posting Freak
*****


10
6,208 posts 429 threads Joined: Jan 2002
04-21-2003, 02:17 PM -
#5
Quote:Graphics
Does TLB simply allocate a square of bar for the plugin icon to
appear in?.. or is it a complex interaction, where TLB does the
actual display of various component icons on behalf of the plugin?
Here is definition of draw function:
Code:
STDMETHODIMP ITlbButton::Draw(HANDLE hDC, RECT *rcItem)
To draw button you implement this function. hDC is a handle to a device context (DC). rcItem is poiter to the RECT struct where you must draw your button. All is simple Wink

Code:
Does TLB pass mouse click data to the plugin (say for the
Winamp plugin, where there are various buttons?)  Or is the
plugin detecting and acting on these by itself?
The same way. ITlbButton interface have some functions to handle mouse events:
Code:
STDMETHODIMP OnMouseOver(long keys, int x, int y);
STDMETHODIMP OnMouseLeave(long keys);
STDMETHODIMP OnMouseEnter(long keys, int x, int y);
STDMETHODIMP OnLButtonDown(long key, int x, int y);
STDMETHODIMP OnLButtonUp(long key, int x, int y);
TLB call these functions to notify plugin about mouse events.

Quote:I assume plugin configuration dialogues are entirely
independant of TLB?
All dialogs and windows are independant of TLB. The only thing TLB supply plugins is stream to save and load data of plugins:
Code:
STDMETHODIMP Load(IStream *data);
STDMETHODIMP Save(IStream *data);
Also note that plugin does not have own window.
The TORDEX Team
http://www.tordex.com


Messages In This Thread
[No subject] - by mark76uk - 04-20-2003, 11:39 AM
[No subject] - by shapeshifter - 04-20-2003, 02:38 PM
[No subject] - by Yuri Kobets - 04-20-2003, 03:51 PM
[No subject] - by mark76uk - 04-20-2003, 05:57 PM
[No subject] - by Yuri Kobets - 04-21-2003, 02:17 PM
[No subject] - by mark76uk - 04-21-2003, 03:13 PM
[No subject] - by BarryJ - 04-24-2003, 07:52 PM
[No subject] - by PsychoMark - 04-25-2003, 05:24 AM
[No subject] - by mark76uk - 04-25-2003, 05:33 AM
[No subject] - by PsychoMark - 04-25-2003, 05:41 AM
[No subject] - by mark76uk - 04-28-2003, 09:58 AM
[No subject] - by PsychoMark - 04-28-2003, 11:01 AM
[No subject] - by Guest - 05-04-2003, 09:21 PM
[No subject] - by Dracula - 05-06-2003, 12:42 PM
[No subject] - by PsychoMark - 05-12-2003, 02:11 AM
[No subject] - by mark76uk - 07-30-2003, 01:53 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)