Verfasste Forenbeiträge
-
AutorBeiträge
-
Habe das Problem im englischsprachigen Forum gepostet. Mal sehen….
lg Walter
Hallo Klaus,
Danke für den Tipp mit den Variablen. Hat aber nichts gebracht.
Was meinst du mit „Stack2 hat kein Skript zur Scrollerstellung“ ?
Das oben angefügte Skript erstellt doch den Scroller?!lg Walter
Habe den Code umgebaut, aber hat nichts geändert.
Stack2, card b1:
on preOpenCard local sScrollerID local tScrollerRect, tContentRect // Only create a scroller on a mobile device if environment() is not "mobile" then exit preOpenCard put the rect of group "scrollArea" into tScrollerRect put 0,0,(the formattedWidth of group "scrollArea"),(the formattedHeight of group "scrollArea") into tContentRect // Create the scroller control mobileControlCreate "scroller", "my_scroller1" put the result into ssScrollerID // Set the properties of the scroller mobileControlSet "my_scroller1", "rect", tScrollerRect mobileControlSet "my_scroller1", "contentRect", tContentRect mobileControlSet "my_scroller1", "visible", true mobileControlSet "my_scroller1", "scrollingEnabled", true mobileControlSet "my_scroller1", "vIndicator", true mobileControlSet "my_scroller1", "vscroll", 0 end preOpenCard on closeCard // Delete the scroller global sScrollerID if environment() is not "mobile" then exit closeCard mobileControlDelete sScrollerID end closeCard
Stack2:
on scrollerDidScroll hOffset, vOffset // When the user scrolls move the displayed content set the vScroll of group "scrollArea" to vOffset end scrollerDidScroll
Stack3, card c1:
on preOpenCard local sScrollerID local tScrollerRect, tContentRect, vOffset // Only create a scroller on a mobile device if environment() is not "mobile" then exit preOpenCard put the rect of group "scrollArea" into tScrollerRect put 0,0,(the formattedWidth of group "scrollArea"),(the formattedHeight of group "scrollArea") into tContentRect // Create the scroller control mobileControlCreate "scroller", "myscroller_2" put the result into ssScrollerID // Set the properties of the scroller mobileControlSet "myscroller_2", "rect", tScrollerRect mobileControlSet "myscroller_2", "contentRect", tContentRect mobileControlSet "myscroller_2", "visible", true mobileControlSet "myscroller_2", "scrollingEnabled", true mobileControlSet "myscroller_2", "vIndicator", true mobileControlSet "myscroller_2", "vscroll", 0 end preOpenCard on closeCard // Delete the scroller global sScrollerID if environment() is not "mobile" then exit closeCard mobileControlDelete sScrollerID end closeCard
Stack3:
on scrollerDidScroll hOffset, vOffset // When the user scrolls move the displayed content set the vScroll of group "scrollArea" to vOffset end scrollerDidScroll
Ich beschreibe nochmals das Szenario:
– ich starte das Programm
– ich springe von stack1 auf stack2 —> scroller funktioniert!
– ich springe zurück zu stack1
– ich springe von stack1 auf stack3 —> scroller funktioniert!
– ich springe zurück zu stack1
– ich springe von stack1 auf stack2 —-> scroller funktioniert nicht mehr!echt mysteriös….
Hallo Klaus,
Das Löschen des Scrollers hatte ich auch schon eingebaut. Habe den Scrollern auch verschiedene Namen gegeben. Jetzt funktioniert genau 1x den Stack wechseln. Dann nicht mehr. Hier nochmal der gesamte Code:
Stack2 / Card b1:
on preOpenCard global sScrollerID global tScrollerRect, tContentRect, vOffset BewegeScroller end preOpenCard on closeCard // Delete the scroller global sScrollerID if environment() is not "mobile" then exit closeCard mobileControlDelete sScrollerID end closeCard
Stack2:
global sScrollerID global tScrollerRect, tContentRect, vOffset on BewegeScroller // Only create a scroller on a mobile device if environment() is not "mobile" then exit BewegeScroller put the rect of group "scrollArea" into tScrollerRect put 0,0,(the formattedWidth of group "scrollArea"),(the formattedHeight of group "scrollArea") into tContentRect // Create the scroller control mobileControlCreate "scroller", "my_scroller1" put the result into ssScrollerID // Set the properties of the scroller mobileControlSet "my_scroller1", "rect", tScrollerRect mobileControlSet "my_scroller1", "contentRect", tContentRect mobileControlSet "my_scroller1", "visible", true mobileControlSet "my_scroller1", "scrollingEnabled", true mobileControlSet "my_scroller1", "vIndicator", true mobileControlSet "my_scroller1", "vscroll", 0 end BewegeScroller on scrollerDidScroll hOffset, vOffset // When the user scrolls move the displayed content set the vScroll of group "scrollArea" to vOffset end scrollerDidScroll
Stack3 / card c1:
on preOpenCard global sScrollerID global tScrollerRect, tContentRect, vOffset BewegeScroller end preOpenCard on closeCard // Delete the scroller global sScrollerID if environment() is not "mobile" then exit closeCard mobileControlDelete sScrollerID end closeCard
Stack3:
global sScrollerID global tScrollerRect, tContentRect, vOffset on BewegeScroller // Only create a scroller on a mobile device if environment() is not "mobile" then exit BewegeScroller put the rect of group "scrollArea" into tScrollerRect put 0,0,(the formattedWidth of group "scrollArea"),(the formattedHeight of group "scrollArea") into tContentRect // Create the scroller control mobileControlCreate "scroller", "myscroller_2" put the result into ssScrollerID // Set the properties of the scroller mobileControlSet "myscroller_2", "rect", tScrollerRect mobileControlSet "myscroller_2", "contentRect", tContentRect mobileControlSet "myscroller_2", "visible", true mobileControlSet "myscroller_2", "scrollingEnabled", true mobileControlSet "myscroller_2", "vIndicator", true mobileControlSet "myscroller_2", "vscroll", 0 end BewegeScroller on scrollerDidScroll hOffset, vOffset // When the user scrolls move the displayed content set the vScroll of group "scrollArea" to vOffset end scrollerDidScroll
Danke
WalterAh ja ich Blödmann,
Danke
WalterHallo Klaus,
Wie erwartet, die blitzschnelle Antwort!
Problier ich mal aus.Danke
WalterSeptember 6, 2018 um 15:40 Uhr als Antwort auf: Textdatei in Cloud speichern und von Cloud einlesen #7519Ja, danke für die Zeit und Ideen. Ich will dich nicht länger damit aufhalten. Vielleicht ein andermal.
lg Walter
September 6, 2018 um 15:35 Uhr als Antwort auf: Textdatei in Cloud speichern und von Cloud einlesen #7515Hallo Klaus,
Diese Idee hatte ich sogar schon ausprobiert, sowohl mit field als auch mit answer, mit dem gleichen Resultat.
Die Options-Menüs funktionieren sonst tadellos auf dem Handy. Ich schreibe zB den Inhalt beim Schließen in eine lokale Datei und rufe sie bei Start des Programms wieder auf. Funktioniert wie am Schnürchen.lg Walter
September 6, 2018 um 15:20 Uhr als Antwort auf: Textdatei in Cloud speichern und von Cloud einlesen #7511Nein, es kommt keine Fehlermeldung. 🙁
September 6, 2018 um 15:09 Uhr als Antwort auf: Textdatei in Cloud speichern und von Cloud einlesen #7507Hallo Klaus,
ja die HTTP-Adresse kann ich am Handy abfragen.
Ähh, wie funktioniert das mit „the result“ ?Danke
WalterSeptember 6, 2018 um 14:52 Uhr als Antwort auf: Textdatei in Cloud speichern und von Cloud einlesen #7503Hab jetzt deinen Rat mit HTTP befolgt, leider ohne Erfolg.
Es funktioniert tadellos am Windows-Rechner, aber nicht am Handy.lg Walter
September 6, 2018 um 14:23 Uhr als Antwort auf: Textdatei in Cloud speichern und von Cloud einlesen #7499Ja danke Klaus, ich natürlich für alle Vorschläge dankbar.
lg Walter
September 6, 2018 um 13:44 Uhr als Antwort auf: Textdatei in Cloud speichern und von Cloud einlesen #7495Mit ftp funktioniert es denk ich am einfachsten, ist für die Community-Version vorgesehen und es ist praktisch ein Einzeiler. Vielleicht liegt es auch der Android-Version, die ich kürzlich abgedated habe. Na ja, schade, jetzt war ich schon nahe dran 🙂
lg Walter
September 6, 2018 um 13:41 Uhr als Antwort auf: Textdatei in Cloud speichern und von Cloud einlesen #7493Habe „Internet“ zuerst manuell ausgewählt und jetzt hab ich „Search for required inclusions …“ angewählt.
Leider das gleiche Ergebnis.lg Walter
September 6, 2018 um 13:34 Uhr als Antwort auf: Textdatei in Cloud speichern und von Cloud einlesen #7489Internet habe ich angeklickt, was brauche ich noch alles?
lg Walter
-
AutorBeiträge