For a chunk of my code I want to print my own messages, but not any of the auto-generated ones.
So I thought of using 'SetDetailsPrint none' to disable output, and use 'DetailPrint "<string>"' to print my own.
Of course, 'SetDetailsPrint none' prevents manual 'DetailPrint' commands from being printed as well.
So I've got two options.. enabled just before my DetailPrint, disable just after.
Or... and that's where I'm hoping there's another option, but I'm going to guess that it will involve the System plugin, creating an LVITEM struct instance and passing that as an LVM_INSERTITEM message argument.
Any thoughts? I can live with the enable/disable yoyo'ing - just checking for a cleaner solution.
detail view / log window - adding lines within SetDetailsPrint none?
3 posts
I don't think there's a cleaner solution. Just use a macro?
Stu
Stu
Originally posted by Afrow UKYep, that's what I'm doing.
I don't think there's a cleaner solution. Just use a macro
for the curious;
!macro myDetailPrint str
SetDetailsPrint both
DetailPrint "${str}"
SetDetailsPrint lastused
!macroend
!define myDetailPrint `!insertmacro myDetailPrint`
Section
SetDetailsPrint none
...
${myDetailPrint} "Hello world"
...
SetDetailsPrint both
SectionEnd