Multiple commands on same line

A bar | will allow you to do this. From :help :bar ‘|’ can be used to separate commands, so you can give multiple commands in one line. If you want to use ‘|’ in an argument, precede it with ‘\’. Example: :echo “hello” | echo “goodbye” Output: hello goodbye NB: You may find that … Read more

Change Name of ActiveX Command Button using VBA in Excel

Is this what you are trying? Set shp = ActiveSheet.Shapes(Selection.Name) shp.Name = “Node” & Str(NumNodes) With shp.OLEFormat.Object .Object.Caption = “Node” & Str(NumNodes) End With FOLLOWUP Just tried this and it works… Public Sub Node_Button_Duication() Dim shp As Shape Dim NumNodes As Long ActiveSheet.Shapes(“CommandButton1”).Select Selection.Copy Cells(5, 10 + 7 * (NumNodes – 1) – 1).Select ActiveSheet.Paste … Read more

Eclipse RCP: Actions VS Commands

Did you read the eclipse wiki FAQ What is the difference between a command and an action? You probably already understand that Actions and Commands basically do the same thing: They cause a certain piece of code to be executed. They are triggered, mainly, from artificats within the user interface The main concern with Actions … Read more

WPF Events in ResourceDictionary for a ControlTemplate

A ResourceDictionary can have code behind just like Windows etc. so you could add an event handler and call DragMove from there Setting up the code behind requires a couple of steps. If your ResourceDictionary is called MetroStyleResourceDictionary.xaml you add a new file in Visual Studio in the same folder called MetroStyleResourceDictionary.xaml.cs The code behind … Read more

Adobe AIR to execute program

With AIR 2.0 you now can: if(NativeProcess.isSupported) { var file:File = File.desktopDirectory; file = file.resolvePath(“StyleLookupold.exe”); var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo(); nativeProcessStartupInfo.executable = file; var process:NativeProcess = new NativeProcess(); process.start(nativeProcessStartupInfo); } You also need to add this to your descriptor file. <supportedProfiles>extendedDesktop</supportedProfiles>