[Windows Mobile Software Development] RoryB:
Thank you for the guide to get me started. I had the ghost sticky note once and did a soft reset to get rid of it. I am finding it best to remove the old cab first, let it reset and then install the new one.

I will check my kitchen when I get to my computer. Maybe it has to do with the number and type of files changed in the cab of the same name. I will also post my kitchen. Thanks again for the help.

----------------

I checked my kitchen and think I had it correct. Here is my kitchen and an updated cab to make the font color setting work nicer. I did change the name within the cab so the old one will not get deleted automatically. Please YOU MUST remove the previous version before installing this version.

Please let me know what I have missed.

********************************************

WAIT TO INSTALL

It seems the long press version gets worse as time goes on. I lost my quick links and had to remove Reminder1 to get them back.

I will update when I figure it out.

**********************************************

Okay, I think I have it now. Still remove the previous before doing the install. Here is the code as I fixed it. I updated the cab and the kitchen files.

--Behaviour when click on widget:
CHTWReminder1Class.ConnectPressHandlers = function(self)
self.hitArea.onPress:connect(self.OnTimePressed, self)
self.hitArea.onRelease:connect(self.OnTimeReleased, self)
self.hitArea.onReleaseOutside:connect(self.OnTimeReleasedOutside, self)
end

CHTWReminder1Class.DisconnectPressHandlers = function(self)
self.hitArea.onPress:disconnect(self.OnTimePressed, self)
self.hitArea.onRelease:disconnect(self.OnTimeReleased, self)
self.hitArea.onReleaseOutside:disconnect(self.OnTimeReleasedOutside, self)
end

CHTWReminder1Class.OnTimePressed = function(self)
self.hitFeedback:Press()
Reminder1LongPress = false
if Reminder1PressTimer then
Reminder1PressTimer:Stop()
Reminder1PressTimer = nil
end
Reminder1PressTimer = timer(0.4)
Reminder1PressTimer:Stop()
tapStartX = Mouse.x

Reminder1PressTimer.OnElapsed:connect(function(self)
if Reminder1PressTimer then
Reminder1PressTimer:Stop()
Reminder1PressTimer = nil
end
Reminder1LongPress = true

if math.abs(Mouse.x - tapStartX) > WidgetPages.swipeTolerance - 1 then
return
end

self.hitFeedback:Release()
PopUpMenuControl.listCollection:Reset()
PopUpMenuControl.listCollection:AddItem(PopUpMenuControl:GetItem("Settings"))
PopUpMenuControl.listCollection:AddItem(PopUpMenuControl:GetItem("Tap Point"))
PopUpMenuControl:SetVisibleItemCount(2)
PopUpMenuControl:ShowMenu("center", nil, function()
end)
end, self)
Reminder1PressTimer:Start()
end

CHTWReminder1Class.OnTimeReleased = function(self)
self.hitFeedback:Release()
if Reminder1PressTimer then
Reminder1PressTimer:Stop()
Reminder1PressTimer = nil
end
if not Reminder1LongPress then
x = MusicHelper_GetRegDWORDValue(0, "System\\State\\Reminder\\Count", "APPT") + MusicHelper_GetRegDWORDValue(0, "System\\State\\Reminder\\Count", "APPTALLDAY") + MusicHelper_GetRegDWORDValue(0, "System\\State\\Reminder\\Count", "TASK") + 1
if x ~= 1 then
Shell_NavigateTo("\\windows\\MortScript.exe","\\windows\\Reminder1_Tap.mscr")
end
else
Reminder1LongPress = false
end
end

CHTWReminder1Class.OnTimeReleasedOutside = function(self)
self.hitFeedback:Release()
if Reminder1PressTimer then
Reminder1PressTimer:Stop()
Reminder1PressTimer = nil
end
Reminder1LongPress = false
end

PopUpMenuControl:AddSimpleItem("Settings", "Change Settings", function()
PopUpMenuControl:HideMenu()
Shell_NavigateTo("\\windows\\MortScript.exe","\\windows\\Reminder1_Setting.mscr")
end)

PopUpMenuControl:AddSimpleItem("Tap Point", "Set Tap Point", function()
PopUpMenuControl:HideMenu()
Shell_NavigateTo("\\windows\\MortScript.exe","\\windows\\Reminder1_TapSetting.mscr")
end)