Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unpinned Toolbar Timeout?
#5
for some reason, not sure why the counter variable is not being reset when the toolbar closes

use this code instead 

Function ToolbarSelfClose
Code:
Copy      Help
function# hWnd message wParam lParam
type MYTOOLBARVARS
MYTOOLBARVARS* v=+GetProp(hWnd "v") ;;retrieve (required)
;OutWinMsg message wParam lParam ;;uncomment to see received messages

sel message
,case WM_INITDIALOG
,v._new; SetProp(hWnd "v" v) ;;create (required)
,v.a=1;
,SetTimer hWnd 1 1000 0
,case WM_TIMER
,sel wParam
,,case 1
,,out v.a
,,if v.a >=10;; close toolbar after 10 seconds(change number to how many seconds you want it to autoclose)
,,,KillTimer hWnd 1
,,,clo hWnd
,,v.a+1
,case WM_DESTROY
,v._delete; RemoveProp(hWnd "v") ;;destroy (required)


Messages In This Thread
Unpinned Toolbar Timeout? - by pctechtv - 09-27-2019, 03:58 AM
RE: Unpinned Toolbar Timeout? - by Kevin - 09-27-2019, 03:00 PM
RE: Unpinned Toolbar Timeout? - by pctechtv - 09-27-2019, 03:13 PM
RE: Unpinned Toolbar Timeout? - by pctechtv - 09-27-2019, 04:30 PM
RE: Unpinned Toolbar Timeout? - by Kevin - 09-27-2019, 06:25 PM
RE: Unpinned Toolbar Timeout? - by pctechtv - 09-27-2019, 08:05 PM
RE: Unpinned Toolbar Timeout? - by Kevin - 09-30-2019, 12:35 AM
RE: Unpinned Toolbar Timeout? - by pctechtv - 10-01-2019, 08:57 PM
RE: Unpinned Toolbar Timeout? - by Kevin - 10-02-2019, 02:20 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)