None of the sourcecode triggers for external tools are fired for the form files (*.pbf).
No "sourcecode loaded" and no "sourcecode saved" (not sure about the "new sourcecode created" trigger).
Tooltriggers not fired for pbf files
Re: Tooltriggers not fired for pbf files
You beat me to it. [WINKING FACE]
Regards
Andy
Regards
Andy
Re: Tooltriggers not fired for pbf files
I had a quick look into the PB IDE source, and saw, that it needs some special handling, when you are looking at the design view of the form.
(SourceManagement.pb / SaveSourceFile() / line 1876)
That means, the save trigger is handled, as soon as you switch to the code view (and press save afterwards).
The load trigger gets never activated, because here is missing a AddTools_Execute(#TRIGGER_SourceLoad, *ActiveSource)
(SourceManagement.pb / LoadSourceFile() / line 1700)
(SourceManagement.pb / SaveSourceFile() / line 1876)
Code: Select all
If FormWindows()\current_view = 0 ; Design view, we need to use the special form save routine. In code view, we just save the code as any other source
FD_Save(FileName$)
ProcedureReturn 1
EndIf
The load trigger gets never activated, because here is missing a AddTools_Execute(#TRIGGER_SourceLoad, *ActiveSource)
(SourceManagement.pb / LoadSourceFile() / line 1700)
Code: Select all
If LCase(GetExtensionPart(FileName$)) = "pbf"
OpenForm(FileName$)
RecentFiles_AddFile(FileName$, #False)
LinkSourceToProject(*ActiveSource) ; Link To project (If any)
ProcedureReturn 1
EndIf
{Home}.:|:.{Dialog Design0R}.:|:.{Codes}.:|:.{Downloads}.:|:.{History Viewer Online}