From: SourceForge.net <no...@so...> - 2008-02-23 22:02:47
|
Feature Requests item #1900588, was opened at 2008-02-23 14:02 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373088&aid=1900588&group_id=22049 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Plugins Group: 2.0 Series Status: Open Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: More nsDialogs macros Initial Comment: Since some new macros have been added to nsDialogs recently, might I suggest a few more that would help in tidying up scripts a bit: !define GWL_STYLE -16 !macro _NSD_AddStyle CONTROL STYLE System::Call "user32::GetWindowLong(i ${CONTROL}, i ${GWL_STYLE}) i .R0" System::Call "user32::SetWindowLong(i ${CONTROL}, i ${GWL_STYLE}, i $R0|${STYLE})" !macroend !define NSD_AddStyle "!insertmacro _NSD_AddStyle" !define GWL_EXSTYLE -20 !macro _NSD_AddExStyle CONTROL EXSTYLE System::Call "user32::GetWindowLong(i ${CONTROL}, i ${GWL_EXSTYLE}) i .R0" System::Call "user32::SetWindowLong(i ${CONTROL}, i ${GWL_EXSTYLE}, i $R0|${EXSTYLE})" !macroend !define NSD_AddExStyle "!insertmacro _NSD_AddExStyle" !macro _NSD_AddString CONTROL STRING SendMessage ${CONTROL} ${CB_ADDSTRING} 0 "STR:${STRING}" !macroend !define NSD_AddString "!insertmacro _NSD_AddString" !macro _NSD_SelectString CONTROL STRING SendMessage ${CONTROL} ${CB_SELECTSTRING} 0 "STR:${STRING}" !macroend !define NSD_SelectString "!insertmacro _NSD_SelectString" !macro _NSD_SetTextLimit CONTROL LIMIT SendMessage ${CONTROL} ${EM_SETLIMITTEXT} ${LIMIT} 0 !macroend !define NSD_SetTextLimit "!insertmacro _NSD_SetTextLimit" Regards, Brad bra...@di... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373088&aid=1900588&group_id=22049 |