Тема: AHK: Взаимозависимые DateTime
Здравствуйте,
Надобно организовать взаимозависимые DateTime, чтобы изменения в одном отображались в другом. Код АНК:
CoordMode, Tooltip, Screen
WorkStartTime :=
Gui, Add, Text, xm+16 ym+15 w150 h20 , Name:
Gui, Add, ComboBox, xp+180 yp w190 h21 disabled, Driver
Gui, Add, Text, xp-180 yp+35 w150 h20 , Work start time:
Gui, Add, DateTime, xp+180 yp w90 h20 vWorkStartDay gEnterWorkStartDate,
Gui, Add, DateTime, xp+100 yp w90 h20 1 vWorkStartTime gEnterWorkStartTime Choose%WorkStartTime% , HH:mm
Gui, Add, Text, xp-280 yp+28 w150 h20 , Trip start time
Gui, Add, DateTime, xp+180 yp w90 h20 vTripStartDay gEnterTripStartdate,
Gui, Add, DateTime, xp+100 yp w90 h20 vTripStartTime 1 gEnterTripStartTime, HH:mm
Gui, Show, , Untitled GUI
Return
GuiClose:
ExitApp
EnterWorkStartTime:
EnterWorkStartDate:
Gui, Submit, NoHide
eTime := SubStr(WorkStartTime, 9, 6)
eDate := SubStr(WorkStartDay, 1, 8)
WorkStartTime = %eDate%%eTime%
TripStartTime = %WorkStartTime%
TripStartDay = %WorkStartTime%
GuiControl, , TripStartTime, %TripStartTime%
GuiControl, , TripStartDay, %TripStartTime%
Tooltip, WorkStartTime: %WorkStartTime% `nTripStartTime: %TripStartTime%, 1000, 30, 15
Return
EnterTripStartTime:
EnterTripStartdate:
Return
При изменении в верхнем DateTime, в нижнем изменения не отображаются.
В документации такая возможность описана, если я правильно понял. Подскажите правильное решение, пожалуйста.

