mirror of
https://github.com/rabbibotton/clog.git
synced 2026-01-04 00:02:57 -08:00
drag control with placer
This commit is contained in:
parent
2d2af04b88
commit
11261a0a21
1 changed files with 5 additions and 6 deletions
|
|
@ -419,13 +419,12 @@ replaced."
|
|||
:cancel-event t)
|
||||
(set-on-event placer "resizestop"
|
||||
(lambda (obj)
|
||||
(set-geometry control :units ""
|
||||
:width (width placer)
|
||||
:height (height placer))
|
||||
(set-geometry placer :units ""
|
||||
:width (client-width control)
|
||||
:height (client-height control))
|
||||
(on-populate-control-properties-win content :win win)))
|
||||
(set-on-event placer "drag"
|
||||
(lambda (obj)
|
||||
(set-geometry control :units ""
|
||||
:top (top placer)
|
||||
:left (left placer))))
|
||||
(set-on-event placer "dragstop"
|
||||
(lambda (obj)
|
||||
(set-geometry control :units ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue