Skip to content

Commit

Permalink
MIES_Include.ipf: Clarify update instructions
Browse files Browse the repository at this point in the history
For the casual MIES administrator the instructions have a bit too much
Igor Pro lingo, so let's try to make it easier to understand.
  • Loading branch information
t-b committed Nov 18, 2024
1 parent 0d3abe3 commit dff416f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Packages/MIES_Include.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,20 @@

#ifdef TOO_OLD_IGOR

static StrConstant IP_DOCU_UPDATE_URL = "https://alleninstitute.github.io/MIES/installation.html#igor-pro-update-nightly"

Window OpenPanelWithDocumentationLink() : Panel
PauseUpdate; Silent 1 // building window...
NewPanel/K=1/W=(435, 461, 735, 661) as "OpenPanelWithDocumentationLink"
Button button0, pos={38.00, 14.00}, size={223.00, 89.00}, proc=ButtonProc_OpenMiesDocuUpdateNightly, title="Open MIES documentation for\r update instructions"
Button button1, pos={51.00, 133.00}, size={195.00, 29.00}, proc=ButtonProc_DownloadNightly, title="Download Igor Pro nightly build"
Button button1, pos={51.00, 133.00}, size={195.00, 29.00}, proc=ButtonProc_DownloadNightly, title="Download required Igor Pro version"
EndMacro

Function ButtonProc_OpenMiesDocuUpdateNightly(STRUCT WMButtonAction &ba) : ButtonControl

switch(ba.eventCode)
case 2: // mouse up
BrowseURL "https://alleninstitute.github.io/MIES/installation.html#igor-pro-update-nightly"
BrowseURL IP_DOCU_UPDATE_URL
break
endswitch

Expand Down Expand Up @@ -119,7 +121,7 @@ static Function AfterCompiledHook()

#if defined(IGOR64)
igorMajorVersion = StringByKey("IGORVERS", IgorInfo(0))[0]
printf "Your Igor Pro %s version is too old to be usable for MIES.\r", igorMajorVersion
printf "Your Igor Pro %s version is too old to be usable for MIES. Please follow the download instructions at: %s\r", igorMajorVersion, IP_DOCU_UPDATE_URL
Execute "OpenPanelWithDocumentationLink()"
#else
printf "The 32bit version of Igor Pro is not supported anymore.\r"
Expand Down

0 comments on commit dff416f

Please sign in to comment.