Control VIEW cursor with SUD Dialog

Hello,
I've developed a little SUD dialog and sticked into the bottom of VIEW. I the TopArea I've "CurveChart2D".
With the dialog I want to change the cursor type and mode (see code below)
If I try to change the cursor from this script (the script is inside the embedded VIEW dialog I get the message of DIAdem "error"
If I try now to change the cursor with the VIEW buttons I get the message "Schwerwiegender Fehler".
In fact this little script crash DIAdem. I've to restart.
If I use the Dialog standalone (not as a part of VIEW), everything works fine.
I believe the problem is, that you can't change something from an ActiveArea (Dialog in Area : 2) inside an InactiveArea (2D Graph in Area :1)
But this works (graph change something inside the dialog)
Sub ViewConnector_EventCursorPosChanged(ByRef This) 'Erzeugter Event-Handler
'todo change the label and value controls for the different cursor and trim methods
 edtXPosVal.Text = View.ActiveSheet.Cursor.X1
 edtYPosVal.Text = View.ActiveSheet.Cursor.Y1
 edtChnPos.Text =  View.ActiveSheet.Cursor.P1
End Sub
So the point is,
1. how is it possible to control VIEW with an embedded SUD dialog?
2. The script engine shouldn't crash DIAdem. It should just abort or shouldn't be executable.
Sub Button1_EventClick(ByRef This) 'Erzeugter Event-Handler
iTrimMethod = rdbtnTrimMethods.Value
Dim oSheets
Dim oChart
oSheets = View.Sheets
sSheetName = View.ActiveSheet.Name
        Select Case iTrimMethod
              Case 0
               MsgBox View.ActiveSheet.Name & " Index= " & View.ActiveSheet.Index
                 Set oChart = View.Sheets(View.ActiveSheet.Name).Areas("Area : 1").DisplayObj
                  View.Sheets(View.ActiveSheet.Name).Cursor.Type = "Crosshair"
                  View.Sheets(View.ActiveSheet.Name).Cursor.Mode = "GraphPoints"
                  View.Refresh
              Case 1
              MsgBox View.ActiveSheet.Name & " Index= " & View.ActiveSheet.Index
                  View.ActiveSheet.Areas(1).Active = True
                  View.Sheets(View.ActiveSheet.Name).Cursor.Type = "Band"
                  View.Sheets(View.ActiveSheet.Name).Cursor.Mode = "GraphPoints"
                  View.Refresh
              Case 2
              MsgBox View.ActiveSheet.Name & " Index= " & View.ActiveSheet.Index
                  View.ActiveSheet.Areas(1).Active = True
                  View.Sheets(View.ActiveSheet.Name).Cursor.Type = "Crosshair"
                  View.Sheets(View.ActiveSheet.Name).Cursor.Mode = "GraphPoints"
                  View.Refresh
        End Select
End Sub
Best regards
Thomas Plöger
BASF Catalysts Germany GmbH

Hallo Mr. Plöger,
I've double-checked the described behavior. In general, the script code you've developed is OK. But there was a bug in DIAdem that causes the problem. It will be fixed with the DIAdem 2010 service pack that we can provide soon.
Greetings
WalterRick

Similar Messages

  • I can not control my cursor with the trackpad.  It moves randomly. It began after an Angry Birds update.  Anyone else have this problem?

    I have a late 2011 OS X Lion 10.7.4 that is only 6 months old.  For the first 4 months I had no problems, but then about 6 weeks ago I downloaded an Angry Birds update from the Apple App Store, and my problems began.  When playing Angry Birds the the new Angry Birds update for the first time the cursor began to jump around, moving on it's own as if someone else was controlling it.  After a few moments I became obvious I could not control the cursor with the trackpad. When I placed the tip of my finger gently in the center of the trackpad to try to hold the cursor still it becan switching from the game (desktop) to launchpad and mission control.  I then put the computer down so I was not even touching it, walked several feet away and the cursor still moved on it's own.
    I've done a lot of research over the last few weeks on related articles and realized this is a common problem with numerous different causes: PRAM settings,
    screen sharing, remote settings, having fingers accidently touch edges of trackpad, writst resting too close to trackpad, swollen battery, etc. and I don't think it's due to any of those issues.
    The problem came out of nowhere.  My computer stays at home, and is not used by anyone else.  At first it was just Angry Birds, but now it can happen at any time.  Sometimes hours or days go by when this does not happen, sometimes it happens so much I can't use the computer at all.  It can get so bad that I won't be able to click out of whatever I'm doing on my desktop, and I'll have to shut it down by holding the power button. 
    Has anyone else had this issue after updating Angry Birds?

    try a new/fresh apple brand cable and make sure it is the only usb cable in use. this worked for me, i noticed i had no problem with a lighting cable. i did a restore from scratch and from backup and it did not help me...and if you cant sync than you wont be able to get anything but apps back after the restore

  • Controlling Mouse cursor with Labview

    Dear Experts,
    I have a project trying to use Muscle signal to move a mouse cursor on computer screen. Basically, if the signal is positive, it moves to the right, and if it is negative it moves the cursor to the left.
    I've seen a friend did it before way back, but don't remember how. I've been spending a lot of time trying stuffs, but none works.
    It will be nice if someone can post a simple example or give me tips on how to do it
    Thanks!

    Similar but different: Waterloo Labs Eye Mario.
    The basic idea being acquiring data and when it exceeds a limit, an event fires registering an action. In this case it was a button click but for your application, modify it to change the cursor coordinates (increment or decrement the x or y position).
    Logan H
    National Instruments
    Applications Engineer

  • App for controlling/viewing iPad with iPhone 4?

    Sorry for a basic question but is there currently an App available for the iPhone 4 that would allow me to access my iPad, either via WiFi or better yet over the web? "Why"? you ask? Well my company allows me to access my company e-mail on an iPad but not an iPhone. There is no logic so don't ask But I typically have both with me so could make something like this work.
    So if you have any thoughts or recommendations please pass them along thank you!
    Walman

    A charger comes with a new iPad; so you don't need to buy one.
    The quickest way (and really the only way) to charge your iPad is with the included 10W USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter (5W). When attached to a computer via a standard USB port (most PCs or older Mac computers) iPad will charge very slowly (but iPad indicates not charging). Make sure your computer is on while charging iPad via USB. If iPad is connected to a computer that’s turned off or is in sleep or standby mode, the iPad battery will continue to drain.
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    At this link http://www.tomshardware.com/reviews/galaxy-tab-android-tablet,3014-11.html , tests show that the iPad 2 battery (25 watt-hours) will charge to 90% in 3 hours 1 minute. It will charge to 100% in 4 hours 2 minutes. The new iPad has a larger capacity battery (42 watt-hours), so using the 10W charger will obviously take longer. If you are using your iPad while charging, it will take even longer. It's best to turn your new iPad OFF and charge over night. Also look at The iPad's charging challenge explained http://www.macworld.com/article/1150356/ipadcharging.html
    Also, if you have a 3rd generation iPad, look at Apple: iPad Battery Nothing to Get Charged Up About
    http://allthingsd.com/20120327/apple-ipad-battery-nothing-to-get-charged-up-abou t/
    Apple Explains New iPad's Continued Charging Beyond 100% Battery Level
    http://www.macrumors.com/2012/03/27/apple-explains-new-ipads-continued-charging- beyond-100-battery-level/
     Cheers, Tom

  • Interaction, View with SUD

    Hello,
    my plan is to create a view sheet with integrated dialog (as you can see below). What i would like to have is, that when the user klicks on the Button "Goto", a Interaction starts (InteractionOn) so that the user can select a point in the diagramm. My problem is to combine InteractionOn with the Button klick event?! Interaction should not start until the user klicked on the Button.
    My second question: Is there a easy way to go somewhere backwards in a program, or e.g. go back to main-menu (dialog)  or "start"
    Thanks a lot

    Hi Brad_Turpin,
    i think in my case it's a bit more difficult. First i'm not quite shure if get right what you mean with "callback code of a SUDialog" ?!
    In my matter I'm starting a Script (main script), in this script at the beginning i call my "main" dialog with Suddlgshow(.....,oDlgVar), then the user makes some settings and after that klicks on a button to start one of some different "evaluation programms" -> transfer back to main script, where the evaluation codes are in subroutines (better performance than in Dialog) -> show results (view with SUD)
    Call Main
    Sub Main
    Call Suddlgshow("Dlg1",sPathDocuments & "MainSUD.SUD",oDlgVar)
    If DlgState="IDOk" then
    If oDlgVar.bstart1 then
    Call Program1
    Elseif oDlgVar.bstart2 then
    Call Program2
    End if
    End if
    End Sub
    Sub Program1
    End Sub
    Sub Program2
    End Sub
    What I'd like to have is the opportunity to "go back" to "main" Dialog preferably with a button in View with SUD, so that the user can start a different programm or change settings.
    I appreciate every idea or suggested solution for my issue
    Thanks a lot

  • How to select, with a SUD DIALOG, the range and the trace data to import from citadel

    Hello,
    I use DIAdem to generate reports from Citadel and I would like to create a script which asks the user to select data and it's corresponding range to import it from citadel. The script should display a dialog box (sud dialog), the user will choose the data and the range. 
    I would like to know if a function exists because up to now, I have not found anything suitable for this.
    In my search i found this (see answer from Brad Turpin) http://forums.ni.com/ni/board/message?board.id=60&message.id=985&requireLogin=False
    But I don't know how to automatize it with sud dialog
    I am looking for information and examples on the subject.
    Thanks

    Hello,
    I changed the data base path, when I run the script an error message appeared (see attached file). When I look the dataportal files, I see that the complet data is charge and not a window (see attached file). have you any idee?
    Attachments:
    error load citadel function.pdf ‏455 KB
    view.pdf ‏279 KB

  • Moving Cursor with More Than One Finger?

    Hi. I have been considering getting the Magic Trackpad. I went to the Apple store today to try it out. I was a little disappointed. My problem with it is that it requires controlling the cursor with only one finger. With a mouse, you move the cursor with a few fingers, which to me is more natural. With the Magic Trackpad, I kept accidentally resting another finger on the trackpad causing the cursor control to greatly diminish.
    I looked in the System Preferences pane for the Magic Trackpad to see if I could change the cursor behavior to move the cursor using more than one finger at a time. I realized later today that I forgot to look at the options for three-finger scrolling. I won't be able to go to the Apple store again for a little while, which is why I'm posting here. I just want to find out whether or not it's possible to control the cursor with three fingers. Can someone who owns the Magic Trackpad look at the Systems Preferences pane to see if three fingers can be used for general cursor control? I'd appreciate it.
    I also just did a search online for software that enhances the capabilities of the trackpad. One software enhancement is called BetterTouchTool but I didn't see an option for changing the number of fingers required for moving the cursor.
    I haven't read or seen video of anyone with a similar complaint about the trackpad so maybe I'm unique in having the cursor control problem.
    Thanks,
    Mirsky

    There are only two options available with three fingers - Swipe to Navigate (back and forward in Safari) and Dragging. Sorry...

  • Issue with KB2830477 and SCCM 2012 Remote Control Viewer

    I've just rolled out Feb '13 updates for Windows 7. The update KB2830477 appears to cause
    an issue when closing a remote control session using SCCM Remote Control Viewer
    (2012).
    The following error appears:
    "ConfigMgr Remote Control Viewer has Stopped Working"
    "A Problem Caused the Program to Stop Workingcorrectly. Please Close the
    Program"
    In the Event log, the following event is triggered in Windows Logs>Application.
    Faulting application name: CmRcViewer.exe, version: 5.0.7711.0, time stamp: 0x4f42f979
    Faulting module name: msxml6.dll, version: 6.30.7601.17988, time stamp: 0x5091ff29
    Exception code: 0xc0000005
    Fault offset: 0x00056368
    Faulting process id: 0x24c0
    Faulting application start time: 0x01cf2d7bf99dc96d
    Faulting application path: C:\Program Files\Microsoft Configuration
    Manager\RemoteControlViewer\CmRcViewer.exe
    Faulting module path: C:\Windows\System32\msxml6.dll
    This is with an EventID: 1000. Removing the update resolves the issue.
    Report Id:
    36c3642d-9970-11e3-89bd-028037ec0200

    Hi,
    I recommend you check the log file CMRcViewer.log:
    It records details about the activity of the remote control viewer.
    Located in the %temp% folder on the computer running the remote control viewer.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • SUD-Dialog​e aus Diadem 9.1 in Diadem 9.0 benutzen

    Hallo,
    Ich habe einen relativ umfangreichen SUD-Dialog unter Diadem 9.1 erstellt. Nun möchte ich diesen auf einem anderen Rechner mit Diadem 9 benutzen. Das Öffnen scheitert jedoch mit einem Hinweis auf einen inkompatibeles Dateiformat. Gibt es irgendeine Möglichlichkeit, den Dialog zu konvertieren (notfalls auch mittels Hexeditor - die Dateien unterscheiden sich allerdings scheinbar nicht nur in der im Dateiheader angegebenen Diademversion...)
    Vielen Dank für die Hilfe!
    Thomas Vosshagen

    Hello!
    It is a unfulfilled desire to get a ASCII based SUD file format. Using SUD from the verry first moment this would had helped to solve a lot of problems. We are still hoping that it will by changed in the future!
    From this experience we decided to put as less code as possible into the SUD. This goal is reached by putting the code in an external script. Today (> 9.0) this script can be loaded into the SUD with the ScriptInclude command. In older version it was a little bit more complicated. In every event only a call to the external script is coded. Than you can use your prefered editor for programming and you can format the code as you like. Another advantage is that no code is lost when you delete a control. Also teamwork is much easier and source control systems can handle this files much better.
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • When I right click on a link to open in new tab and move my cursor into the dialog box the box dissapears this is new in the last 24 hours.

    I'm using Firefox 8.0 on Suse 11.4 today is 11/28/11 the past 24 hours I've been experiencing this: I always try to right click on links and open in new tab, lately when I do so and move the cursor into the dialog box the box disappears. Also if I online shop say for clothing, if I want to change size's when I click the button to do so nothing happens when I want to scroll down and pick a different size, (I can hi-light the size and click on it then when the window scrolls back up the default size is still there. This isn't consistent with all web sites.

    You can middle-click a link to open the link in a new tab.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • How to clear table control view lines?

    Dear Experts,
    I created one ALV Report with push buttons. User can select multiple line. After select the lines, when user clicks push button in ALV, then am calling POPUP screen 1100 with save and cancel button. which ever line user selected in ALV, that will appear in the POPUP screen 1100 with table control view.
    issue :
    Ex :
    In ALV user selected 3 lines , that appeared in POPUP screen 1100 table control view. Now user wants to select some more line in ALV. so user clicked cancel and reached ALV screen. user selected 2 more line in ALV (total 5 lines). Again user clicked same push button in ALV, But now same 3 lines (old record) are appearing in POPUP screen 1100, new records (5 lines) are not appearing.
    Code :
    My PBO internal table is having 5 records. but in table control only 3 records are appearing.
    PROCESS BEFORE OUTPUT.
      MODULE status_1100.
      LOOP AT git_prq_items1 INTO gwa_prq_items1
                             WITH CONTROL ctl_pr_items.    
    ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE user_command_1100.
      LOOP AT git_prq_items1.
        MODULE read_table_control. " if any changes happened in table control - read table control.
      ENDLOOP.
    MODULE status_1100 OUTPUT.
      SET PF-STATUS ''.
    ENDMODULE.                 " status_1100  OUTPUT
    git_prq_items1 -  this internal table is having 5 records.
    Please suggest where should i correct.
    Regards
    chessleo.
    Edited by: sapleo on May 6, 2011 9:59 AM

    Hi.,
    Clear the records and populate new records., also use refresh table display if u are using oo alv.
    check  BCALV_GRID_05 report.,
    Hope this helps u.,
    Thanks & Regards
    Kiran

  • How to move the cursor with keyboard

    Is there a way to move the cursor with the keyboard? My right forearm is hurting prob because of extended use of the mouse.

    While in the 'Finder' click on 'Help' in the upper menu bar....enter 'Mouse Keys' and then select 'Controlling the pointer with the numeric keypad'....only problem I can see is the MacBook doesn't have a numeric keypad...so you would need an full size external keyboard....tried it on my iMac and it works OK...

  • SUD-Dialog Variablen-​Rückgabe

    Hallo NI'ler,
    ich erstelle gerade meinen ersten SUD-Dialog mit 5 CheckBoxen. Je nach dem, welche Box nun aktiviert wurde, soll eine Variable einen anderen Wert zugewiesen bekommen. Mein bisheriger Ansatz war
    Sub CheckBox1_EventChange()
    Dim This : Set This = CheckBox1
     checkbox1.RunChange
     L1 = 1
     checkbox2.Value = 0
    End Sub
    Im VBS-Script sollte dann per "msgbox" der entsprechende Wert von L1 ausgegeben werden. Egal, welche der Boxen aktiviert wird, erhalte ich "0" als Rückgabewert. Könnte mir bitte jemand die korrekte vorgehensweise erklären?
    Danke!
    Björn
    Message Edited by bk220 on 11-02-2007 09:38 AM

    Hallo Björn!
    Doch noch was Zeit gefunden
    Das grundsätzliche Problem bei deinem Code ist das du wechselweise die Werte von Controls in den Change Events änderst. Dazu kurz ein Umweg in die Theorie: Hat man z.B. zwei Checkboxen in einem Dialog so werden bei jeder Änderung die zugehörige EventChange Routine ausgeführt. Eine Änderung kann interaktiv durchen Anwender erfolgen oder aber durch Ändern des Wertes (Value-Eigenschaft) per Skript. Wird nun in der EventChange Routine des ersten CcheckBox der Wert der zweiten Checkbox verändert so wird auch sofort deren EventChange durchlaufen. Beachtet man dies nicht kommt es zu 'seltsamen' Verhalten.
    Das führte dann bei dir dazu das du einen RunChange Aufruf zur Hilfe nehmen musstes damit es überhaupt irgendwie funktionierte. Mach mal Messageboxen in die Routinen und spiel mal was damit herum.
    Nun zur Lösung (meine, es gibt da mehrere mögliche Ansätze):
    Ich würde in jeden EventChange-Routine einen Aufruf in eine globale Routine machen und die notwendigen Werte als Parameter übergeben. Das sieht dann für die ersten beiden CheckBoxen so aus:
    Sub CheckBox1_EventChange()
    Dim This : Set This = CheckBox1
    Call UpdateCheckBox(1,CheckBox1.Value)
    End Sub
    Sub CheckBox2_EventChange()
    Dim This : Set This = CheckBox2
    Call UpdateCheckBox(2,CheckBox2.Value)
    End Sub
    Die globale Routine sieht dann so aus:
    Public Sub UpdateCheckBox(Byref nNo, Byref nValue)
    If (L1 <> nNo) And (nValue = 1) Then
    ' es hat sich was geändert
    L1 = nNo
    Elseif (L1 = nNo) And (nValue = 0) Then
    ' auch alle AUS zulassen
    L1 = 0
    End If
    ' Umwandlung L1 Wert in gecheckte Box
    checkbox1.Value = (L1 = 1)
    checkbox2.Value = (L1 = 2)
    checkbox3.Value = (L1 = 3)
    checkbox4.Value = (L1 = 4)
    checkbox5.Value = (L1 = 5)
    checkbox6.Value = (L1 = 6)
    checkbox7.Value = (L1 = 7)
    End Sub
    Die richtigen Zustände der Checkboxen werden dort gesammelt aus L1 abgeleitet. Die Logik ist so das auch alle Boxen aus sein dürfen. Die Logik am Anfang verhindert Rekursionen.
    Ich hoffe das hilft
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • *** Urgent - How to view Cursor output in TOAD ***

    Hi,
    I know how to view the output of a sysref cursor that is an out parameter from an SP, in SQL*PLUS
    But is there a way to see the resultset of a cursor in TOAD?
    This is urgent.
    Thanks for the helping hands.
    Sun

    TOADs SQL Editor works (almost) the same as SQL*Plus.
    You can work with VAR's and PRINT's in the very same way as SQL*Plus.
    Furthermore you can do the following:
    - Write an SQL statement with a bound cursor (with colons)
    - right-click in TAODs Editor
    - check for SQL Substitution variables.
    - run the script (F9) and a substition pop up »pops up«, from where you can choose CURSOR.
    The results will show up in the Data grid.
    Note: I am working with TOAD ver. 9

  • How to Start EXE-File from SUD Dialog

    Hello!
    My Problem is: I'm trying to start an exe-file by clicking a button within a SUD-Dialog. Does anybody know how to realize that?
    For example: Run("C:\Windows\Notepad.exe") ?!
    Thanks!
    Solved!
    Go to Solution.

    Thanks for you reply!
    Your code worked so far to start Notepad.exe but what I'm trying to do is to start a file, located one folder above my script folder.
    I tried the following...
    dim command : command = "Script Assistent\TSM Script Assistent.NET.exe"
    dim shell : Set shell = CreateObject("WScript.Shell")
    dim status : status = shell.Run(command, 1, true)
    If
    0 <> status ThenErr.Raise6, "", "Command returned error!"
    End If
    ...but then I receive an error message :-/
    The script and the sud-file is located in:
    G:\Script\Scriptfile.vbs + Dialogfile.sud
    The exe I'm trying to start is here:
    G:\Script\Script Assistent\TSM Script Assistent.NET.exe
    What's wrong with that?

Maybe you are looking for

  • Exclamation points to the extreme.

    My internal hard drive crash last week and I replaced it with a new one. I have most of my music on my iPod (an additional 40 gb not on my iPod but somewhere on an external that I can locate later.) Anyway, I transferred over the music from my iPod i

  • Can't configure sync my contacts & calendar on iTunes (10.1.0.56)

    The ability to configure Sync my contacts is not avaliable. When I select sync my contacts the configure button does not respond. As for Sync my calendars - this one I even can't select, the option to select the check box is disabled. I have iPhone 4

  • Recovery_mode managed vs managed real time apply

    Hello All, I am using Oracle 11.2.0.3 My primary database is an Oracle RAC 2 nodes database with ASM and my standby database is a single instance physical standby database on file systems. My protection mode is MAXIMUM PERFORMANCE What is the differe

  • IPhone makes charging noise and signal when charging but percentage won't increase

    I have been having difficulties with my iPhone 4 lately.  When I plug it in (both to the AC adapter in an outlet or my iMac), it makes the charging noise and gives the charging signal on the battery in the top right corner of my screen.  However, the

  • Basics of Javascript programming for Acrobat and PDFs

    Hello, I have a PDF file that I have added a form to, in order to programatically edit the fields within the PDF. I have found lots of useful resources for javascript in acrobat, including the Acrobat Javascript SDK reference PDF, which I have read.