This content has been marked as final. Show 3 replies
How do you present the option to set the default browser, how do you
"remember" which was chosen, and how do you open this broswer when
required? Relevant code samples would help.
Here's a sample of the code for setting the image editor:
on gsSetupExternalEditor DoReset
tempPreferedEditorPath = ""
if (gPreferedEditorPath = "") or (DoReset=TRUE) then
ShowMuiAlert "Action", "In the next window please select you preferred image editor. This will most likely be PhotoShop or similar.", #OK
if the machinetype = 256 then
tempPreferedEditorPath = fileXtra.fx_FileOpenDialog(baSysfolder("program files"), "*.exe", "Choose the external editor",true,true) -- set the filter mask (Win)
tempPreferedEditorPath = baGetFileName("Open",baSysFolder("apps"),"","APPL ",0,"Choose Editor",false,100,100)
if tempPreferedEditorPath = "" then abort
gPreferedEditorPath = tempPreferedEditorPath
gLastFolderPath = gsFindFolderPart(gPreferedEditorPath)
if char gPreferedEditorPath.chars.count of gPreferedEditorPath = gPathSep then
gPreferedEditorPath = char 1 to gPreferedEditorPath.chars.count -1 of gPreferedEditorPath
member("fImageEditorPath").text = string(gPreferedEditorPath)
The code is called by a clickable text field, and the editor information is saved into a text file, which is loaded when the program opens. Do you think it would help to include a sample of the code used to call the external program?
> The code is called by a clickable text field, and the editor information is
> saved into a text file, which is loaded when the program opens. Do you think it
> would help to include a sample of the code used to call the external program?
Yes I do. It would also help if you showed an example of the path stored
- particularly that stored from one of the machines that exhibits the
problem you described.