GUI element question

Hey guys. I was wondering, is it possible to create this GUI element with Scripting?
I could create EditText element, but I'd like to use, if possible, this more elegant way for user to input values.
I am talking about 120 / 84 / 0 elements in this GUI (screenshot from Character palette)
Is it doable?

Yeah those sliding edit texts are cute, but unfortately they are not part of ScriptUI.
As David said, you can stack 2 texts, but that will only have aesthetic effects.
It could be useful to store more digits in the edit texts and display less in the static one for nicer UI (like native sliders do), but  this is something one simply never need when scripting...
var w = new Window("palette");
var tt =w.add("group{orientation: 'stack',\
                                staticT: StaticText{text: '0.0', characters: 8, justify: 'left', visible: true},\
                                editT: EditText{text: '0.0', characters: 8, justify: 'right', visible: false}\
tt.staticT.onActivate = function(){this.visible=false; this.parent.editT.visible=true;};
tt.editT.onChange=tt.editT.onDeactivate=function(){
    var x=parseFloat(this.text) || 0.0;
    this.text = x.toFixed(3);
    this.parent.staticT.text = x.toFixed(1);
    this.visible=false;
    this.parent.staticT.visible=true;
w.center();
w.show();
When there is no element to give focus to (like in this example) it is hard to get the static text back if you finally don't change its value...
Xavier

Similar Messages

  • Firefox gui element capture plug in keeps causing Firefox to crash and it won't open certain windows. Any idea why?

    I disabled extensions per Firefox instructions and discovered that 'firefox gui element capture plug in 1.0' is the one causing my problems. Problems being Firefox either crashes or refuses to open an additional window, and then crashes.

    I am not sure why this started happening, however please update to version 32.0.3 when its available.
    The places we can troubleshoot is in the Applications menu under preferences.
    *[[Set how Firefox handles different types of files]]
    If you set it to pdf.js viewer as default does it not show up?

  • Setting GUI elements not displaying and SwingWorkers....

    I have a prototype JMS application where a JMS message handler class wraps a GUI application class. Updates are made from the wrapper class to the HMI via a public method on the GUI which then sets the numerous GUI elements. The element values are set but the display is not updated. From what I have read this is a common situation where within the GUI class the updating method should use a SwingWorker to carry out the work and to coordinate the threads. Given that this approach is not working would anyone have any suggestions as to how I can resolve this.
    Thanks
    C

    You can use SwingUtilities.invokeLater(...) to update the state of a GUI component.

  • Position GUI element in runtime

    Hi All
    I would like to positioning popup window relativ to a GUI element (InputField). How can I read the element position?? That is possible, the generic value helper are positioned relativ to linked element. I would like pisitioning my popup window similiary but i dont know how

    Hi,
    you can try following:
    IWDWindowInfo _windowInfo = wdComponentAPI.getComponentInfo().findInWindows("<WINDOW_NAME>");
    IWDWindowManager manager = wdComponentAPI.getWindowManager();
    IWDWindow _window = manager.createWindow(_windowInfo, true);
    ((IWindow)_window).setWindowPositionControl( "<CONTROL_ID>" );
    <CONTROL_ID> - "<COMPONENT_ID>.<VIEW_NAME>.<UI_CONTROL_ID>" (for example "PFCBCNPF.POSearchCriteriaCV.SearchButton")
    To get it you need to view HTML sources of your generated view in browser, for example "<a ... id="PFCBCNPF.POSearchCriteriaCV.SearchButton"...>"
    pay attention that it is NOT documented feature (setWindowPositionControl method) and you are using it at your own risk.
    Regrads, Maxim R.

  • Code and GUI Elements Altered When Working Between Windows 8, and = Windows 7

    This is not the usual "My fonts look different" problem we get when running application executables on different PCs.  The bug I am seeling (yes, I'm calling it a bug) is that when I bring up code to work on in Windows 8, several things change, both in the GUI and source panes.
    1. Controls and indicators are scaled differently, moved, and frequently no longer aligned with the grid.
    2. In structures like the timed loop, the parameter text is oversized, and only partially visible.  Changing font settings in Options has no effect.
    3. Floating constants (not wired to anything) can show up in unpredictable places.  Even wired up code seems to move around.
    4. Maybe unrelated, but WIndows 8 sucks.  Sorry, just had to get that out.
    This is a serious problem which affects my productivity, as I cannot work on my code outside of my office, without creating more work for myself when I get back in.  The obvious solution would be to downgrade my laptop to Windows 7, but of course THAT OS no longer exists as far as Microsoft is concered.

    Norbert_B wrote:
    Hm, i have no experience with Windows 8 yet, so i cannot refer to your specific question/remarks.
    But:
    When switching my laptop to a newer one (the old running Win 7 32bit, the new Win7 64bit), i encountered some severe graphics issue with LV as well.
    I found out, that my new laptop was configured to display "text and other items" with 125% (setting can be found in Control Panel>>Appearance and Personalization>>Display.
    After changing this setting back to 100%, most things work fine now in LV.
    Another point is (what i don't understand) that LV chose to preconfigure the three default font-collection (Application, Dialog, System) to be of size 20. My old machine had 15.
    If you have VIs already displaying fonts at this size, you have to select all controls (Ctrl+a) and THEN change font size. Otherwise, it will not affect existing controls.
    hope this helps,
    Norbert
    That is the Windows way of adjusting for displays with higher DPI, since the text can get very small with 150dpi displays rather than the standard 96dpi, Windows was originally designed for. Since the Windows graphic system is still mostly pixel based also for fonts, there is no other easy way to allow making text more readable. This scaling however messes with any graphic system that works on pixels rather than a virtual resolution and is one reason Retina style displays won't be a good option for Windows machines for some time to come.
    The font size change is also because of that. LabVIEW detects at startup that the screen resolution is rather high and tries to correct for this. But together with the Windows screen scaling this makes things look even worse. Unfortunately there is no simple solution for this. Windows has over the time attempted to fix such issues in so many different and often incompatible ways, that there exist simply to many variables to make a program detect all possible  incarnations of user and system adjustable settings and account for them.
    I'm sure there is room for LabVIEW to improve on this, but there is simply no way to make it work seemlessly for all possible configurations.
    A long time ago someone designed a Next cube device that used Display Postscript as graphical output system. This Display Postscript had a true virtual resolution system and made the idea of having graphical output look the same on any kind of display or printer feasable. Unfortunately and despite working together with graphic chip manaufacturers it never made it as such into mainstream hardware. Supposedly partly because the performance was significantly less than other systems and therefore was never considered good enough for the main driving force in graphics developmen (games) but possibly also because the drivers were significantly more complex and there was not that much interest to dig that complexity.
    MacOS X uses some of the concepts of the Next cube but abandoned Display Postscript for a somewhat more traditional approach. But Windows has still a lot to catch up in that area, if they ever do.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Some GUI elements after Unicode conversion are unreadable

    We have converted an MDMP system to unicode and when we log on to it using SAP GUI 7.10 and non-Latin1 languages - some elements:
    Tool Bar, syb-menues, selection screen texts, table content in SE16 are displayed incorrectly (garbled)
    On PC all supplemental languages are installed, all I18n settings per SAP notes have been done but still - no success.
    What else can be wrong?
    Seems like a front end issue, because downloading table content from SE16 to a local file and then opening it in IE using ISO encoding - works fine. I also noticed that when saving the file SAP says "
    using code page 1160"
    Shouldn't it be using code page 4110 - which should be autimatically assigned to SAP Gui when connected to a Unicode SAP system?

    We used NW 7.0 SR3 for Export / Import

  • GUI Development Question

    Hi everybody!
    I'm quite new in ALBPM and I have some questions about it, especially about user interfaces.
    I've been developing JSP aplications (using MVC frameworks) for a long time, and I can't figure out how does it fit in the ALBPM world.
    What's the paradigm for GUI development? At first, I believe the screenflow should act like the controler, the BPM object is the model, and the custom JSPs are the views.
    But... sincerely for me, the Screenflow/BPM object/Custom JSPs seem less flexible than a regular MVC (Struts, JSF, ...)
    My question is: Is it mandatory to use screenflows, or I'm able to use a MVC architecture inside ALBPM? If it's possible how should I implement it?
    For example: I have a custom JSP with some menu items, and this items are links to other JSP pages. This behaviour should
    be modeled using screenflows or can I use another approach? What's the best practice for this task?
    In MVC architecture, the menu will be inside an html form with an action pointing to a servlet (a controller). And what about screenflows?
    Well, I'd like to hear some opinions about this, especially because i'm triyng to get used to BPM paradigm, and in my opinion the best approach for this is hearing from people who had experienced this situation.
    Thanks in advance

    The reason for this is due to our JVM. This application is being developed for an embedded system. There are no swing components in this JVM environment for a couple reasons: size constraints and possible license issues.

  • How to read the configuration for SAP GUI elements in Plant Maintenance module from SPRO and leverage the same in NWBC for HTML.

    Dear Members,
    Greetings for the day!
    I am working on NWBC for HTML in Plant Maintenance module.
    We have configured some changes in SPRO for customizing the UI elements( like visibility, mandatory ) like tabs and fields in transactions like IW21( Create Notification).
    As of now separate parallel configuration needs to be carried out in NWBC for HTML in PM module to achieve the same UI features for creating notifications and this is time consuming.
    Is there any way to read the configuration done in SPRO for the SAP GUI's and leverage the same in NWBC for HTML.
    Appreciate your time in responding to this.
    Thanks & Regards,
    Ram.

    >
    <IfModule mod_weblogic.c>
    WebLogicCluster 127.0.0.1:7005,127.0.0.1:7007,127.0.0.1:7003,127.0.0.1:7103,127.0.0.1:7104
    MatchExpression /app1
    </IfModule>
    <Location /weblogic>
    SetHandler weblogic-handler
    WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007,127.0.0.1:7103,127.0.0.1:7104
    DebugConfigInfo ON
    PathTrim /weblogic
    </Location>
    <IfModule mod_weblogic.c>
    WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007
    MatchExpression /app2
    </IfModule>
    <Location /weblogic>
    SetHandler weblogic-handler
    WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007
    DebugConfigInfo ON
    PathTrim /weblogic
    </Location>
    >
    This configuration is weird little bit. There is MatchExpression /app1 and MatchExpression /app2 and at the same time two <Location /weblogic> sections. Are you sure you understand what that configuration stands for?
    Try something like this ...
    <Location /app1>
    SetHandler weblogic-handler
    WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007,127.0.0.1:7103,127.0.0.1:7104
    DebugConfigInfo ON
    </Location>
    <Location /app2>
    SetHandler weblogic-handler
    WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007
    DebugConfigInfo ON
    </Location>
    where /app1 and /app2 are contexts of your weblogic applications.
    http://download.oracle.com/docs/cd/E11035_01/wls100/plugins/apache.html
    http://httpd.apache.org/docs/2.0/mod/core.html#location

  • More ACR for elements questions

    After having played around with ACR 4.1 I have a few questions and observations:
    Not all the the features described as being in 4.1 in this article
    http://photoshopnews.com/2007/05/31/about-camera-raw-41/
    seem to be accessible, e.g. holding down the alt key while looking at radius and sharpening values to see the masks applied. Are these features available from CS but not in elements (It's the same plugin) or were they never implemented in 4.1 but only in some beta copy of the SW?
    As noted in different msgs, there is scarcely any documentation for ACR 4.1 except what I can glean from articles like the one above and from trial and error - am I correct in this assessment?
    If I bring the raw file into elements, some of the functions can work on 16 bit files but for most I must permanently convert down to 8 bits. How much print quality am I losing for 11x14 blowups during this process? I guess I'm losing none in resolution (PPI) but a little in gradations of color and luminosity.
    How does this raw pre-processing in ACR compare with the new Nikon Capture 4 ( I have a D40x) ? Is it worth having both sets of SW? I couldn't find a price for Capture4 in the website - only a 30 day download trial. Anybody have any idea how much it costs?
    Now if I would only go out and shoot some more photos instead of nerding out on the tech stuff!! Thanks.
    Chris

    Thanks Barbara - you wrote:
    Your printer will almost certainly downsample your image to 8 bits when you print, so you're not losing there. The loss, such as it is, is in the available gradations of color for editing.
    Is this the case If I get it printed at a photo printing/editing store (we have Mtophoto here in CO which I really like because a couple of the guys there really know their stuff)?

  • GUI class question

    Hi guys I use the NetBeans 6.0 and i build a project which has 2 Source packages on is my number game and the other I called GUI. In the GUI source package I drew a diagram which I want to use as my GUI to my number game but I don't know how to connect them. Now my question is this is it possible to connect them since they are in different packages? And my second queston is where should I code the action listenrs and where the event handler couse I am really new to gUI and that is my first one. Btw does net beans 6 provide some form of facility to join them both without much code? Thanks in advance!

    1.I would say that using packages in this case is bad, but i wont since everyone else here thinks its always good. I would just use plain .java/.class files in the same directory so that they have free access to each other and the other files.
    2. To use actions listener you first make your main class implement ActionListener, then addActionListener(this) to all your components that catch events, then use public void actionPerformed(ActionEvent e) to handle any events.

  • Gui strategy question

    using the jbuilder wizard to construct a gui, two elements are constructed:
    1) file.java
    2) fileFrame.java
    what are the advantages of this approach?
    i have also seen implementations that wrap the 2 elements in one file.
    which is better, and why?
    thanks,
    asher

    You should give Marsian the Dukes.
    To elaborate on his point, the reason you separate the GUI from the code is because if you want to make massive changes to the GUI, you can make those changes to a single file without the risk of accidentally changing the underlying application code. Maintaining two files means that your application's presentation layer (GUI) is separated from the application code (logic).
    When you move to increasingly complex (large) projects, the need for separating presenation from logic (and avoiding inner classes to a large extent) becomes more and more important, since you will be developing and then maintaining a huge number of classes.

  • Search Help attached to Data Element Question

    Hello! Hopefully this is a simple question to answer. I have looked online but cannot find exactly what I need.
    We currently have a search help attached to a data element. The search help is a custom search help. It does work so when you are in the screen it will show you options to pick from for that field. However, the field also allows for free-form text so the user can type in whatever and the screen will take it.
    Is there a way through the data element or search help to make it so the user is restricted to only what is in the search help and cannot just enter whatever?
    Thanks!!

    For restricting values You can use the at selection screen event  on that field.
    The search help field values will be there in a table .
    So what ever values are there in the table for that particular field , only those values will come in F4 also ..
    If it not maintained then issue an appropriate error message.
    at-selection screen on p_field.
    selct single  field from table into v_value.
    if sy-subrc <> 0.
    message ""Error message.
    Endif.
    Regards
    Mishra

  • GUI scripting question -am I sunk?

    Hi all,
    I am working on an Applescript to bring up two different non-Applescript-able applications (ie. ones w/o a dictionary) and am getting the error:
    NSReceiverEvaluationScriptError : 4 from Applescript.
    I have "Enable access for assitive devices" checked in SystemPreferences and am GUI scripting.
    Here's the snippet of code that gives the error:
    tell application "System Events"
    if UI elements enabled then
    activate application "TRx Recorder"
    tell button " Record " of tool bar 1 of window "TRx Recorder"
    click
    end tell
    end if
    end tell
    I generated the code "tell button ..." from the Prefab's UI Browser.
    I've tried clicking via the name of the button, and via the position of the button. Same error.
    Does this mean I'm sunk and can't get the app to respond to my Applescript?
    When I select the Action of button " Record " from within the UI Browser, it works fine.
    What am I doing wrong?
    Thanks!
    Ed

    Hi Camelot,
    Yes indeed I needed a "tell process ..." block, as well as, 2 extra spaces in the label for the Record button.
    I got the following to work:
    tell application "System Events"
    if UI elements enabled then
    activate application "TRx Recorder"
    tell process "TRx Recorder"
    click button " Record " of tool bar 1 of window "TRx Recorder"
    end tell
    end if
    end tell
    I dug around using UI Browser and discovered that I needed 2 blanks in front of and 2 blanks behind of the label "Record" to correctly access the button. I originally had 1 space in front of Record and 1 space after Record within the quotes. With only 1 space I get the Applescript error I mentioned. With 2 I don't get the error.
    Many thanks for the tip, it made me look closer at the labels of the buttons in UI Browser.
    Ed

  • GUI scripting question -am I sunk? Part 2

    Hi all,
    I am trying to get two apps that have no Applescript dictionary entries to respond to an Applescript I am writing. I want to first bring up an audio app, then bring up a transcripting app and pass to this second app the new audio filename the first app created.
    I've got the script to bring up the audio app, create the new audio file, run a couple of Perl scripts to grab the new audio filename and pass it back to Applescript and start the second app.
    I can't get the second app to respond to anything but activate in Applescript. When I try to get a menu item selected, or clicked, either nothing happens, or the transcript app pops up an error window w/ the message "Nil Object Exception" which is bad.
    I also tried using PreFab's UI Browser to get the same menu action I want to execute by pressing the "Perform" button in the UI Browser. Nothing happens in that case as well.
    Here's the code snippet in question:
    If (InqScribeUp is false) then
    activate application "InqScribe"
    end if
    tell process "InqScribe"
    click menu item "New Document with Media File..." of menu 1 of menu bar item "File" of menu bar 1
    end tell
    The boolean variable InqScribeUp is defined earlier in the script.
    When the above script is executed nothing happens.
    If I change the statement "click menu item ..." to a tell block:
    tell menu item "New Document with Media File..." of menu 1 of menu bar item "File" of menu bar 1
    click
    end tell
    I get the "Nil Object Exception" error from the transcript app InqScribe.
    When I try using the "Perform" button in the UI Browser on the first audio app, the audio app does respond fine.
    Am I now really stuck if the second app doesn't even respond to UI Browser's "Perform"?
    Any ideas would be greatly appreciated!
    Ed

    Hi Budgie,
    The try block didn't work for me. I tested further and found I needed a sleep command between running the Perl scripts and bringing up InqScribe. The need to wait may be because I'm testing on an old PM G4 dual 867MHz machine, not a newer multi-GHz CPU.
    Anyway, after putting in a sleep 20 in the second Perl script (which I "think I can reduce to 7-9), I was able to get the dialog window "Select a Media File" to be displayed upon sending InqScribe the shortcut key for that dialog window. I tried the "click ..." statement but no go, InqScribe didn't respond. Sending InqScribe the sortcut key event did work for some reason.
    To complete the loop, I need to select a specific audio file in the dialog window "Select a Media File". By using the UI Browser, I've narrowed the statement I need to:
    select static text NewFile of group TrxFileCount of list 1 of scroll area 5 of scroll area 1 of browser 1 of group 1 of window "Select a Media File"
    where NewFile is a string variable containing the name of the latest audio file just created, and TrxFileCount is an integer with the value of the no. of files in the folder where the audio files for the app are located.
    I now get an error from SystemEvents: NSReceiverEvaluationScriptError: 4, which I take to mean SystemEvents can't find the static text element I'm trying to select.
    Should I try to "set" the value of the static text element instead? Or "select" it via it's position on the screen?
    Here's my code snippet so far:
    set NewFile to RetCode
    If (InqScribeUp is false) then
    activate application "InqScribe"
    end if
    keystroke "D" using command down
    sleep 5
    set TRxFileCount to count of (files in folder TRxRecordings whose name extension is "wav")
    select static text NewFile of group TRxFileCount of list 1 of scroll area 5 of scroll area 1 of browser 1 of group 1 of window "Select a Media File"
    click button "Open" of window "Select a Media File"
    The error now occurs on the "select ..." statement, I don't get to the final "click button "Open"..." statement.
    Any ideas at this point would be greatly appreciated!
    Ed

  • Is there a gui element that supports scrolling?

    I want to show a modal dialog root element is higher that the screen height. Is there a property to enable scrolling or an element that can be used as a wrapper (scrollpane or something like that)? Thanks in advance.

    Not that I know of - and please report if you figure a way...
    So far I have solved this problem by breaking up the content into tab views.
    In one case, I put a radio button in front of each item, then a pair of DIY scroll buttons which walked the radio button selection until end of page detected then automatically switched to the next tab view...
    PS. +1 vote: auto-scrolling dialog boxes.
    Rob

Maybe you are looking for

  • Adobe creative cloud 12ヶ月版メンバーシップ について

    adobe creative cloud カードを購入して.手順通りに初期設定をしていたのですが.メンバーシップIDを入力して.次に支払い方法を入力していたのですが.途中で文字の変換キー(シフトキー)を押したところ.サイ ト全体が読み込み直しになってしまい.adobe会員のサインインする画面まで戻ってしまいました.もう一度adobe creative cloudのダウンロードを手順通りにやり直してみましたが.メンバーシップIDを打ち込むと「既に使用されている番号です」となってしまって.そこから先

  • TNS-03505:Failed to resolve name in oracle 11g.

    i install oracle 11g client in my pc.i want to connect to the server i also used and install Toad Tools. i have server ip address.192.168.1.162 and userid and password and port number-1521 when i connect to the toad and its make error like that ORA-1

  • Problem signing PDF from smart card - BouncyCastle, IAIK Wrapper, iText

    Hello! I need to sign and timestamp a PDF document with a smartcard. I'm using Java 1.6, iText to manage PDF, BouncyCastle to deal with cryptography and the free IAIK WRAPPER to access the smartcard. I've already searched the Internet to solve my pro

  • Macbook air 11" connecting to bluetooth headphones

    Quick question. do only mono bluetooth headphones work with the new macbook airs or do stereo headphones work as well Thanks

  • Plz help me my iphone 4 is lost plz damage my phn

    My phn is lost plz damage my phn