Pelles C > Bug reports
Addin Icons
JohnF:
Two addins I've recompiled no longer display their icons.
John
CLR:
Hi John.
The Add-in structure ADDIN_ADD_COMMAND has been changed in v2.90; I guess this is why poide doesn't display the icon. :?:
Attached is the 'function prototypes' addin for v.2.90.
EDIT:
removed the attachment
you may get the latest version in http://www.johnfindlay.plus.com/pellesc/addin/addin.htm
Pelle:
Most likely, yes. The samples don't do it properly, but it's probably best to always clear all add-in structures first ("ZeroMemory"). This will initialize everything to zero, which I *try* to use for defaults.
Pelle
JohnF:
--- Quote from: "CLR" ---Hi John.
The Add-in structure ADDIN_ADD_COMMAND has been changed in v2.90; I guess this is why poide doesn't display the icon. :?:
Attached is the 'function prototypes' addin for v.2.90.
--- End quote ---
The attachment doesn't contain the new info, only your project.
I've downloaded the new addin setup, thanks.
John
JohnF:
The icons are ok now.
Perhaps someone can help with this.
I've altered the liastaf code to display a listbox which is filled with text for each function line. Then by using AddIn_FindSourceText() API to find the function line but it's not working. Here is the code
--- Code: ---
case WM_COMMAND:
if(HIWORD(wParam) == LBN_DBLCLK )
{
int ret = SendMessage(GetDlgItem(hwndDlg, EDIT_CONTROL),
(UINT)LB_GETCURSEL,
(WPARAM) 0,
(LPARAM) 0);
char stext[290];
SendMessage(GetDlgItem(hwndDlg, EDIT_CONTROL),
(UINT)LB_GETTEXT,
(WPARAM) ret,
(LPARAM) stext);
AddIn_FindSourceText(AddIn_GetActiveDocument(g_hwndMain),
FR_DOWN, stext);
PostMessage(hwndDlg, WM_CLOSE, 0, 0);
}
--- End code ---
The correct string is in stext but AddIn_FindSourceText appears not to do anything. Is there another way to goto a particular line?
John
Navigation
[0] Message Index
[#] Next page
Go to full version