Startseite › Foren › Deutsches LiveCode-Forum › LC auf MacOS: Editor-Fenster klebt links oben fest › Antwort auf: LC auf MacOS: Editor-Fenster klebt links oben fest
November 14, 2017 um 19:01 Uhr
#2738
Hi Klaus,
der Tip mit mousestack klappt prima. Jetzt habe ich mal versucht, es über den Namen zu machen, aber ich komme nicht weiter.
Mein Ansatz:
put the stacks into field „StackList“ — alle offenen Stacks in der LC-IDE werden angezeigt:
/Applications/LiveCode Community 9.0.0 (dp 10).app/Contents/Tools/Toolset/palettes/tools/revtools.livecodescript
/Applications/LiveCode Community 9.0.0 (dp 10).app/Contents/Tools/Toolset/palettes/script editor/revscripteditor.8.rev
/Applications/LiveCode Community 9.0.0 (dp 10).app/Contents/Tools/Toolset/palettes/inspector/revinspector.livecodescript
/Applications/LiveCode Community 9.0.0 (dp 10).app/Contents/Tools/Toolset/palettes/message box/revmessagebox.8.rev
/Applications/LiveCode Community 9.0.0 (dp 10).app/Contents/Tools/Toolset/palettes/menubar/revmenubar.livecodescript
/Applications/LiveCode Community 9.0.0 (dp 10).app/Contents/Tools/Toolset/palettes/dictionary/revdictionary.livecode
/Applications/LiveCode Community 9.0.0 (dp 10).app/Contents/Tools/Toolset/palettes/project browser/revideprojectbrowser.livecode
Im Field „StackList“ wird eine Zeile angeklickt:
on mouseUp pButtonNumber
put the text of the clickline into tStack
set the itemdelimiter to "/"
put the last item of tStack into tStack -- Ergebnis z.B: revinspector.livecodescript
set the itemdelimiter to "."
put the first item of tStack into tStack -- Ergebnis z.B: revinspector
set the loc of tStack to the screenloc -- erzeugt einen Fehler, sowohl mit/ohne Pfad und mit/ohne Endung
end mouseUp
Wo ist der Fehler bzw. wie finde ich den richtigen Stacknamen heraus?