Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
control-level triggers
#2
1. Create this function. Edit the "edit this" lines to match your toolbar's name and control properties.
It opens and then shows/hides the toolbar when the control is visible or not.
Let this function have toolbar's trigger, ie run when the toolbar's owner window is created. The trigger should be "created and active" or "created and visible". Not "active" because this code does not support it well. The toolbar should not have a trigger.
Function:

Function show_hide_toolbar_word_saveas
Code:
Copy      Help
int w=TriggerWindow
int tb=mac("Toolbar name" w) ;;edit this. Opens the toolbar and attaches it to the trigger window of this function.
int visible=1
rep
,if(!IsWindow(tb)) ret
,int c=child("Control name" "Control class" w 0x400) ;;edit this. Finds the control if exists and is visible.
,if visible!=(c!=0)
,,visible=c!=0
,,if(visible) hid- tb; else hid tb
,0.5


Messages In This Thread
control-level triggers - by cuitino - 09-18-2019, 01:58 AM
RE: control-level triggers - by Gintaras - 09-18-2019, 04:35 AM
RE: control-level triggers - by Gintaras - 09-18-2019, 04:37 AM
RE: control-level triggers - by cuitino - 09-19-2019, 01:26 PM
RE: control-level triggers - by Kevin - 09-20-2019, 07:18 PM
RE: control-level triggers - by cuitino - 09-23-2019, 03:07 AM
RE: control-level triggers - by cuitino - 09-23-2019, 06:58 PM
RE: control-level triggers - by Kevin - 09-23-2019, 08:20 PM
RE: control-level triggers - by cuitino - 09-24-2019, 01:50 PM
RE: control-level triggers - by redbull2k - 09-24-2019, 03:39 PM
RE: control-level triggers - by cuitino - 09-24-2019, 05:32 PM
RE: control-level triggers - by Gintaras - 09-24-2019, 05:45 PM
RE: control-level triggers - by cuitino - 09-24-2019, 06:03 PM
RE: control-level triggers - by Gintaras - 09-24-2019, 06:19 PM
RE: control-level triggers - by cuitino - 09-24-2019, 07:26 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)