- dialog post {
- title "« Post-It »"
- size -3 -3 248 217
- edit "", 10, 10 0 230 180, return, multi, vsbar
- button "Enregistrer", 18, 10 187 80 25, ok default
- button "Effacer", 19, 160 187 80 25
- }
-
- on 1:dialog:post:edit:10:{
- unset %post
- set %i 0
- :debut
- inc %i
- set %post %post $+ $did(10,%i).text $+ $crlf
-
- if (%i >= $did(10).lines) { goto fin }
- goto debut
- :fin
- }
- alias post {
- set %dreturn $dialog(post,post,-1)
- }
- on 1:dialog:post:init:0: {
- did -a post 10 %post
- }
- on 1:dialog:post:sclick:19: {
- did -r post 10
- unset %post
- }
dialog post {
title "« Post-It »"
size -3 -3 248 217
edit "", 10, 10 0 230 180, return, multi, vsbar
button "Enregistrer", 18, 10 187 80 25, ok default
button "Effacer", 19, 160 187 80 25
}
on 1:dialog:post:edit:10:{
unset %post
set %i 0
:debut
inc %i
set %post %post $+ $did(10,%i).text $+ $crlf
if (%i >= $did(10).lines) { goto fin }
goto debut
:fin
}
alias post {
set %dreturn $dialog(post,post,-1)
}
on 1:dialog:post:init:0: {
did -a post 10 %post
}
on 1:dialog:post:sclick:19: {
did -r post 10
unset %post
}