Change/render docky image when I want

This forum is for general developer support questions.
Post Reply
User avatar
javierdlr
Beta Tester
Beta Tester
Posts: 389
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain
Contact:

Change/render docky image when I want

Post by javierdlr »

Hi, is there some way of changing the program docky image, but only when I want (not every X frames using DOCKYGET_FrameDelay).
What I need is, after opening/closeing a window to change the image of my docky, now I have:

Code: Select all

  case DOCKYGET_FrameDelay:
   *msgData = 24;
  break;
that changes image every half second (even if not necessary), but will be nicer if "FrameDelay = 0" and then I send/say to AmiDock when change the docky image (aka "at will").


TIA
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 534
Joined: Sat Jun 18, 2011 4:12 pm
Location: Finland
Contact:

Re: Change/render docky image when I want

Post by salass00 »

Check the autodoc documentation (SDK:Documentation/AutoDocs/docky.doc) on DOCKYSET_DockyAttention and DOCKYGET_NeedsAttention. If you don't want periodic processing just return -1 for DOCKYGET_FrameDelay (this is also in the autodoc).
User avatar
javierdlr
Beta Tester
Beta Tester
Posts: 389
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain
Contact:

Re: Change/render docky image when I want

Post by javierdlr »

salass00 wrote:Check the autodoc documentation (SDK:Documentation/AutoDocs/docky.doc) on DOCKYSET_DockyAttention and DOCKYGET_NeedsAttention. If you don't want periodic processing just return -1 for DOCKYGET_FrameDelay (this is also in the autodoc).
Sorry for delay, solved with 'DOCKY..Attention', now it renders image when I want.

THX A LOT
Post Reply