A Cursor List Control for the HomeBoyz

I wanted a Cursor List Control for use with a Waveform Graph, but I couldn't find one anywhere in the Controls Palette. So during a busy morning of data gathering, I took about an hour to write one by hand. [Since I'm getting to be pretty good at LabVIEW, I reckon I can bill about $250/hr for this stuff, so y'all appreciate your free software.]
Anyway, a Cursor List is an array of Cursor Property Clusters. The attached "Cursor List.vi" contains both a singleton Cursor Property Cluster and an Array of Cursor Property Clusters; the block diagram shows how to wire this array to the Waveform Graph's Cursor List property node.
Attachments:
Cursor_List.vi ‏40 KB

Dennis,
I followed your instructions..
It works..!!!

Similar Messages

  • How to clear a cursor list without clearing the first row??

    Hi all, good to see ya ...
    I'm having this problem , that i'm using the first row ín a cursor list as a cursor in another graph. The rest of the rows are used as test sets i can add. So  when finnish with the tests if some was set, i have to delete or clear the cursorlist(but only the tests and not the first wich is the pointcursor) byy using the graphs cursor list proberty node ' Crsr.List '  and initialising it as showed in picture 1.
    Picture 2 shows the cursor list with some test and the cursor name (point cursor) and properties at  top. These properties are directly copied to another graph cursor list also at the top and there the point cursor is used as the cursor. The tests are also copied to the other graph cursor list, but when deleting the tests by 'clear button' all data are cleared also the point cursor. That is my problem.
    so the question is, how can i clear a cursor list without clearing the first raw and its proberties. any suggestions would be much help for me.
    Regards
    Zamzam 
    HFZ
    Attachments:
    Cursor Palette Front panel.JPG ‏25 KB
    cursor paletteA.JPG ‏66 KB
    Cursor paletteB.JPG ‏77 KB

    Zamzam
    The cursor list is just an array so you can delete the elements that you don't want.
    David
    Message Edited by David Crawford on 06-15-2006 12:46 PM
    Attachments:
    Delete Cursors.jpg ‏8 KB

  • How to maintain open change request control for the transaction MM02 & CS02

    hi all...
    can any one please let me know that, is there any BADI or Enhancement spot
    where i can code for my desired functionality...
    how to maintain open change request control for the transaction MM02 and CS02.
    Desired Functionality:
    • The user wants to maintain a material, bill of material or a document.
    • On the initial screen of the respective transaction (MM02, CS02)
      user enters a change request number.
    • The system checks whether the object record that the user wants to maintain
      is already assigned to other change request numbers.
    • If this is the case, the system displays a warning, stating that there are
      other open change requests for this master data record.
    • In addition, the system lists the relevant change request numbers.
    • The user can continue the maintenance or leave the transaction and first check
      the mentioned change requests.

    hi satish thanks for reverting back
    but sorry yaar given enhancement is not triggering...
    but my requirement is:
    - after executing the transaction MM02 & CS02.
    - user inputs the data for Material Number and then he enters the Change Number.
    - if the given Change Number is not maintained with the Material (i dont no
      where/how this two fields are maintained internally), then it has to raise a
      warning and it should list the existing Change Numbers for that perticular
      Material.

  • How do I get the list index for the selected list item

    How can I obtain the list index for the currently selected
    element in a list item? I'm trying to move the label and value
    from on list box to another by using the add_list_element built-
    in and it requires the list index.
    Thanks for your help...

    Hi,
    You can`t get the Index for the selected item..
    you can get the Value of then Tlist using :Block.ListName .
    maybe theis code will help you..
    PROCEDURE pr_PasarElementos(ls_Origen           varchar2,                    ls_destino          varchar2,          cValor                    varchar2 default null) IS
         nCont_Orig     number := 0;
         nCont_Dest     number := 0;
    begin
    nCont_Orig := GET_LIST_ELEMENT_COUNT(ls_Origen);          nCont_Dest := GET_LIST_ELEMENT_COUNT(ls_destino);
         Add_List_Element(ls_destino,nCont_Dest+1,cValor,cValor);
         for rec_Orig in 1..nCont_Orig loop
         if GET_LIST_ELEMENT_VALUE(ls_Origen,rec_Orig) = cValor then
         delete_list_element(ls_Origen,rec_Orig);
         end if;
         end loop;
    end;
    you can call the procedure with :
    pr_pasarElementos('control.ls_activos','control.ls_inactivos',:CONTROL.ls_activos);
    here I`m working with the Value equal to the Label... you would need to look for the Label of the origin (ls_Origen) list using the Value (cValor) you already have.
    I hope this help you.

  • How to implement tooltip for the list items for the particular column in sharepoint 2013

    Hi,
    I had created a list, How to implement tooltip for the list items for the particular column in SharePoint 2013.
    Any help will be appreciated

    We can use JavaScript or JQuery to show the tooltips. Refer to the following similar thread.
    http://social.technet.microsoft.com/forums/en/sharepointdevelopmentprevious/thread/1dac3ae0-c9ce-419d-b6dd-08dd48284324
    http://stackoverflow.com/questions/3366515/small-description-window-on-mouse-hover-on-hyperlink
    http://spjsblog.com/2012/02/12/list-view-preview-item-on-hover-sharepoint-2010/

  • List box for the select-options

    Hi All
      Can anyone send me a sample code to create a list-box for the select-options.

    Hi vighnesh vasudevan,
    Do like this for your select options for low and high also.
    Parameters:
        p_quat  TYPE char20
                AS LISTBOX VISIBLE LENGTH 30
                LOWER CASE OBLIGATORY.
    *              AT SELECTION-SCREEN ON VALUE-REQUEST                    *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_quat.
      PERFORM fill_quarters.
      PERFORM display_quarters.
    *&      Form  fill_quarters
    *       text
    FORM fill_quarters .
      DATA:
    * Field string to fill quarters in the year
        lfs_quarters TYPE LINE OF vrm_values.
      REFRESH t_quarters.
      lfs_quarters-key  = '1'.
      lfs_quarters-text = text-qu1.
      APPEND lfs_quarters TO t_quarters.
      lfs_quarters-key  = '2'.
      lfs_quarters-text = text-qu2.
      APPEND lfs_quarters TO t_quarters.
      lfs_quarters-key  = '3'.
      lfs_quarters-text = text-qu3.
      APPEND lfs_quarters TO t_quarters.
      lfs_quarters-key  = '4'.
      lfs_quarters-text = text-qu4.
      APPEND lfs_quarters TO t_quarters.
    ENDFORM.                    " fill_quarters
    *&      Form  display_quarters
    *       text
    FORM display_quarters .
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = 'P_QUAT'
          values          = t_quarters[]
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " display_quarters
    Note: I think we are not able to display the list box for select options because i am not ever seen the list box in select options . No Probs try like above code.
    See the following like it may help for you
    Listbox for Select Options
    Regards,
    Mahi.

  • No nutrient listing maintained for the nutrient group

    Hi Team
    I have maintained the nutrients in the nutrient group. I have given the area, UOM. I can find the nutrient group in the drop down while chaning the recipe. But once i select the nutrient gorup i get the warning message "No nutrient listing maintained for the nutrient group."  I am not able to understand what's wrong. This error i am facning in PLM web UI not in ECC

    Dear,
    Planning file enteries in OMDO for every plant then system will atomatically update the planning file for every material that have valid MRP data.
    If MRP is active for the plant and you have maintained the MRP views then planninf file enteris will be automatically made by the system when there is change relavant to MRP.
    Check table MDVM to see whether there is an entry created after executing transaction MD20?
    You can also run program RMMDVM20 to create planning entries.
    MDAB : Set up planning file entry in background
    MDRE : Check planning file entry
    Can you check the MRP type for the material in material master (MM02)?
    Please check and come back.
    Regards,
    R.Brahmankar

  • How can I have different access control for the guest network (different than the main network)?

    I am trying to control my main wireless network with access control via mac id with no password. I wanted a separate guest network with password access and no access control. However, the only way that the guest network works is if I specify unlimited access as the default. Is what I am trying to do possible.

    I am trying to control my main wireless network with access control via mac id with no password.
    Definitely not a recommended method for security. MAC addresses are easily cloned by anyone who wants to do so with free tools available on the Internet. An unwanted guest will be on your network in less than a minute if they want to be.
    Strongly recommend that you use WPA2 Personal security with a non-dictionary password to protect your network.
    I wanted a separate guest network with password access and no access control. However, the only way that the guest network works is if I specify unlimited access as the default. Is what I am trying to do possible.
    Unfortunately, Apple does not allow separate Access Control for the "main" and "guest" networks. It's all or nothing, I am afraid.
    Likely, the  "best" way to set up Access Control is change the default rule to No Access, Then you will need to enter in the details for every device that you want to allow to connect for both the "main" and "guest" networks with the time limits for each device.

  • Where is the controls for the built in iMac camera

    Where is the controls for the built in iMac camera?  I looked through the System Preferences icons and can not find any reference to the internal camera.

    Open Photo Booth in the Applications folder or on the Dock. Any application that can use a camera will operate it, also.

  • Help !  The 'list view' for the Calendar app. on my Ipod touch is haywire..

    The 'list view' seems to be all wonky in Calendar on my iPod touch.
    The dates for a given day that's displayed don't make sense:
    i.e. Sunday Oct. 27 2030 followed by Saturday July 14 2001 followed by Tuesday Jan. 16 2001 are listed in consecutive order instead of today, tomorrow and next day (with correct dates).
    Also, the 'events' given for each day listed don't make sense and are often duplicated.
    The 'day' and 'month' views however, seem to be ok and not corrupted. The 'list' field in the month view also seems fine ?
    Has anybody experienced this ? Very frustrating, since I like the list view.
    I make most of my entries/changes to iCal on our main desktop (iMac 24") then sync. to my iPod. The list view seems ok on the desktop.
    Any help greatly appreciated.
    ps. not sure if the problem corresponded with an upgrade of the Ipod software to OS 3.1 from 2.x....
    ipod touch 16 GB 2nd generation iPhone OS 3.1 iPhone OS 3.1.1 (7C145)

    Attach the iPod and launch iTunes.
    Select it and goto Info tab / Advanced.
    Try using the "replace..." option and sync to see if it places the good data on there.

  • User-devel​oped Fan Control for the S10(e)

    Hello and welcome.
    When you've searched the internet and found this thread, it's possible that you are an owner of a Lenovo Ideapad S10 or S10e which has a little problem with the behaviour and/or the noise of the fan. In this post you will get all the informations you need to handle this problem for yourself. It should also be the same on every S9/S9e.
    Just a few comments before we begin:
    This is not an official support or solution by Lenovo.
    We are just normal users as you are, but we get rid of the fan and wanted to find a way to handle it. So if you want to try anything of the methods described here you have to know that you'll do all this only at your own risk. We are not responsible for any damages of your device. You should only use these methods if you know what you are doing.
    Please note that this thread is only for discussing, improving, trouble shooting and perhaps extending the fan control utilities. Any general complaints about the fan problem itself should be placed in the original thread right here: http://forums.lenovo.com/lnv/board/message?board.i​d=IdeaPad_Netbook&thread.id=795. It already has 80+ pages (the link goes to the first page) and it is better to exclude all the fan control stuff because there it's very difficult to keep an overview.
    Here you may post all of your questions, ideas/brainstorming, concerns, thanks and so on and you are really invited to participate and be an active member. 
    In this first part of this post I'm going to summarize all information about using a fan control utility. For any newbie it will be enough to read this post to get all necessary information. The second part does the same for developement of fan control utilities as we still have no known or working fan control utility for Linux, Mac OS X and other OSs I've forgotten - for now.
    For getting started you need a S10 or S10e with an up-to-date BIOS. For the S10 it's the 90 67, for the S10e the 66.
    The battery issue
    Under very specific circumstances - that we haven't figured out yet - it might happen that your Lenovo S9/10(e) no longer detects the battery while using S10FanControl or S10Fan. It might occur after 2 minutes, it might occur after 2 months, it might never occur. It does not occur using Notebook Hardware Control.
    It can be solved by removing the battery, waiting 10 seconds and put it back in. Then the battery is re-initialized and the detection works again.
    S10FanControl - Windows
    The first utility is S10FanControl created by user dresslerc. The current version is 1.0.0.1, available here: http://www.mediafire.com/file/yd5xmnrnijf/S10FanCt​rl1.0.0.1.zip. After you've downloaded it you just have to extract it and start the .EXE in the "Release" folder. Here are the notes and the description dresslerc posted right here:
    Everyone,
    I've uploaded a version which everyone can use to test with.  Remember this is still a TEST version although I think it works for the most part.  It should work both on the S10/S10e.
    Please install the .NET Framework 2.0 or later first.
    Then click here to download the exe:  http://www.mediafire.com/?jlg2enkjdxn
    Once downloaded, extract the files and hit hte S10FanCtrl.Exe.  Once this program launches you should be able to control the fan.  Keep in mind that if you lower the fan speed then it'll take upto 30 seconds before the S10 registers the change, so be patient.
    I've only tested this on the latest BIOS 59.  I am sure it will work on the 57 as well but the individual speeds might not work properly on that version.  Please try it out and report back.
    The only issue that I heard so far is that occasionally the fan will kick in regardless if in Manual/Smart Mode.  Also the temp it shows may not be accurate.  If you find any other issues please let me know what they are so I can attempt to fix them.
    Once we have all the kinks worked out then I will release the source. 
    Heres a quick Video:  http://www.youtube.com/watch?v=_PKl70ZgmFg 
    REMEMBER: USE PROGRAM AT YOUR OWN RISK!!! I AM NOT RESPONSIBLE FOR ANY DAMAGES THIS PROGRAM MIGHT CAUSE.
    Application Use:
    BIOS Controlled - Fan is controlled by the BIOS
    Smart Mode - Fan is controlled based on the conifguration in the options.  You can set the threshold here at what temp you want the fan to kick in...
    Manual - Fan is controlled manually by the slider.
    If you want to have the program startup automatically, then place a shortcut of the app in the PROGRAM FILES -> STARTUP folder.  Then you may want to go to the options and make the application minimize at startup.
    Edit:
    It seems there are some issues with the app and the S10e or previous BIOS versions.  Will post a fix asap.
    The source code for S10FanControl is available here: http://www.mediafire.com/?sharekey=7a3fb99d33817c0​8c2b435915e8821d7e04e75f6e8ebb871, written in Visual Basic .NET 2008.
    S10Fan - Windows
    The second utility is a tool written by user slash:
    Hi guys,
    Well it looks like Lenovo dropped this matter after all. Anyway, I have here another fan controller to add to the bunch. I have been using it for some time now without any problems. It is for both S10 and S10e.
    What the program does is basically the same as others. The S10's fan speed is controlled according to the ACPI thermal zone temperature. By over writing the values which resides at offset 50h of the EC register at an appropriate timing, the ACPI thermal zone temperature is over ridden. The program is written in C and uses WinIo created by Sysinternals. The GUI version is available now.
    It should be noted that the fan speed temperature thresholds differs with BIOS version. For 14CN67WW and 14CW90WW  the fan changes speed at temperatures 60c, 65c, 70c, and 80c. Furthermore, the BIOS will automatically shutdown the S10 if the temperature reaches 90c.
    The program has a fail safe mechanism that automatically disables itself if the actual ACPI thermal zone temperature goes above 85c. This allows the BIOS to regain control and the fan will work as intended by Lenovo. If the temperature drops below 85c the program will take over control again.
    To run the program, you will need administrative privileges.
    Known working BIOS versions:  14cn58ww,  14cn60ww, 14cn67ww, 14cn90ww
    The program will work with any BIOS version as long as the BIOS uses the 50h EC register readouts to control the fan.
    build 2009.05.24
    Higher priorities for EC commands.
    Usage: The program will run in the system tray. Double click or right click and use the menu to open the program. To determine the BIOS temperature thresholds, use the 'Setup' button. To run at boot time, place a short cut in the startup folder.
    http://www.mediafire.com/file/njhz0icym2t/S10Fan.z​ip build 2009.05.23
    Usage: S10Fan.exe
    Added GUI.
    build 2009.05.17
    Usage: S10Fan.exe 60 65 70 80 70 75 80 85
                S10Fan.exe test
    The first 4 values are the BIOS temperature thresholds, the latter 4 are new thresholds that we want to over ride with. To determine the BIOS temperature thresholds, use the 'test' option.
    build 2009.03.16
    Usage: S10Fan.exe 70 75 80 85
    -Slash
    For updates and newer releases please check slash's post: http://forums.lenovo.com/lnv/board/message?board.i​d=IdeaPad_Netbook&view=by_date_ascending&message.i​...
    Notebook Hardware Control - Windows
    The third utility is a profile for Notebook Hardware Control. I've adapted it from a profile for the Lenovo N500 which I've found here: http://nhc.yourcopy.de/overview/. With the manual for creating the profiles that can be found here: http://www.notebook-treff.de/board/database/hilfsp​rogramme-f%C3%BCr-nhc/92-how-to-create-an-acpi-fil​... I was able to change the ACPI commands to work on the S10(e).
    Installation and setup is divided in two steps. The program Notebook Hardware Control (NHC) is available at http://www.pbus-167.com/. Install the program, but do not start it for now. Then you need my NHCConfig utility, available here: http://forum.eeepcnews.de/download/file.php?id=147​6. It detects your model number and BIOS-version via WMI and writes a proper S10(e) profile to the NHC acpi directory. The GUI is German if you have a German Windows and English if not. Additional languages can be added.
    After you've extracted the ZIP-file you have to start the nhcc.exe (requires .NET Framework 2.0). At first a message appears that you use the program at your own risk. Then you can choose if you want to apply your own settings (experts) or if you just want the program to run with my defaults (newbies). In the settings window you can see your system details on the left, you can set up your thresholds in the middle and you can set the fan speed you want on the right. Then click on execute. 
    Now start NHC. Go to the "Settings" tab and click on "Show all NHC options and settings". Then a few more tabs appear. Go to the "ACPI" tab and check if the "ACPI Control System" is running (if everything works, the message "ACPI Control System running" will appear, otherwise it says "ACPI control system is not yet configured for this system"). Now click on "Show ACPI Control System details".
    Here you can change the temperature values the fan control depends on (the settings from NHCC are the default values). On the bottom of the window you can see the "Current CPU temperature". That is the value you have to deal with. In general it has a value of around 60°C. In the middle you can see four user editable temperature values. You can leave the values as they are if everything works. The on/off values are responsible for the temperatures at which the fan starts running and stops again after cooling the device. The level values are responsible for the fan speed, for example you can set the off_level higher to let the fan run all the time at the lowest level, if the values do not fit for your device or whatever.
    You can switch between NHC and BIOS control by disabling or enabling the "ACPI Control System" or by closing NHC.
    Q:
    A:
    With every utility it is possible that it takes some time until you see an effect after you've started the program. Any failure of the programs should be no big problem because the only thing that should happen is that the BIOS controls the fan. Another issue that might occur due to the way the fan is controlled is that the fan may start running for a very short time and it looks like the fan control has lost control. The fan should stop immediately or at least after a few seconds.
    Keep in mind that running the S10(e) with a fan control means that the S10(e) has to deal with higher temperatures. That could mean that the device will not last for 10 years but only 9 years (who uses a netbook so long...?). In every case you need a tool for monitoring your cpu temperature. We know that especially Core Temp 0.99.5 and Real Temp 3.00 do a very good job. That is important because the temperature values you need to set up the fan control are different from the values reported by the cpu sensor, they are between 15°C and 20°C higher. A normal temperature reported by the monitoring should be around 40°C, with the NHC default values the fan starts running at 52°C and stops at 38°C.
    Q:
    A:
    Q:
    A:
    END using fan control
    BEGINNING developing fan control
    Controlling the S10(e)'s fan is a litte bit difficult because it looks like there is no way to control it directly. But it is possible to manipulate the temperature the BIOS fan control depends on. As long as the built-in fan control thinks that the cpu is cool enough the fan stays off. And that is exactly the point where we can attack.
    The fan control depends on a field called RTMP in the memory of the embedded controller. It can be accessed via "_SB.PCI0.LPCB.EC0.ERAM", the offset of RTMP is 0x50 (hex) or 80 (dec). It is a direct I/O read/write. The complete NHC command for reading the value is: ACPI.FIELD.ReadByOffset("_SB.PCI0.LPCB.EC0.ERAM", ref value, 0x50, 8) with "value" as the variable which gets the value.
    What program logic do you need? You need a timer or something else that conducts an always-refresh cycle. It sounds very easy: You read the value, manipulate it and write it back. And it is that easy, you just have to keep some things in mind.
    This refresh has to be done very often. The procedure must be very thin and quick. Also the bus that is used to communicate with the EC is a problem, but since the S10e BIOS 66 it became a minor problem for me because it looks like the built-in fan control now depends on some kind of average value over the last few seconds and it doesn't really matter if one write-cycle is failing.
    The read-event must be placed before the write-event. Otherwise you just read your manipulated value. The field is filled by the system regularly, so you just have to test if the read_value is different from the written_value, then you know that the field was filled with a "fresh" value. Like "if read_temperatue <> written_temperature then real_cpu_temperature = read_temperature else do nothing".
    About the values you have to write back... you will have to test and play a bit. My experience is that you can select three fan levels, starting at 59°, 62° and 70° - at least with the NHC profile and my S10e it's like that. It's some trial 'n' error. My fan stays off at < 59°, but you should select a very low value for fan_off like 30°. In my opinion it switches off much faster the lower the written value is. But it's just a feeling, I haven't measured it.
    Q:
    A:
    Q:
    A:
    Perhaps some users from countries with other languages than German and English can add tags for "fan", "control" and "noise".
    Note from Moderator:  Minor edits in title and disclaimer.
    Message Edited by JaneL on 04-25-2009 02:32 PM

    Great opening post Carsten!
    The latest bios:
    http://www-307.ibm.com/pc/support/site.wss/documen​t.do?sitestyle=lenovo&lndocid=MIGR-71252 (BIOS 66)
    The FSB can be reduced from 133MHz to 100MHz using SetFSB, this also reduces the heat:
    http://www13.plala.or.jp/setfsb/
    clockgen = SLG8SP513V
    If you add a shortcut to the startup folder the program will start at startup. Under properties you can change the target to:
    "C:\Program Files\SetFSB\setfsb.exe" -s100 -b1 -cg[SLG8SP513V] -w20
    So it starts with a FSB of 100Mhz, in the background, with the right clock generator, after 20 seconds.
    Message Edited by quazar on 04-25-2009 05:07 AM

  • How do I turn on the GUI controls for the Focus Blur Effect in Final Cut Pro X

    I can't find the setting that enables the GUI control overlay to manipulate the parameters of the Focus blur effect in Final Cut Pro X. When I have the clip and the focus effect selected I only get a center element overlay. At one point I had controls for all the other elements of this effect.
    anyone know a shortcut or how I can toggle these controls back on?

    I don't see any other screen controls either.
    Maybe there was a change sometime, or maybe you were using a different effect?

  • List Malware for the past 90 Days Forefront Client Security

    Hello,
    Is it possible to list all Malwares catched by FCS for the past 90 days?
    The report Malware Summary or Malware Details are just running 72 hours maximum...
    Thanks,
    Dom
    System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager

    Hi,
    "By default, the OnePoint DB only maintains 72 hours worth of client data, but
     the SystemCenterReporting DB holds 395 days worth of data, such as Historical data. Meanwhile, you can
    modify the number of days to retain data in the SystemCenterReporting database. For more information, please refer to the following article.
    http://support.microsoft.com/kb/887016/en-us"
    For more information:http://social.technet.microsoft.com/Forums/forefront/en-US/c05a1528-9ae9-4a60-b2c6-a0bc9170152c/length-of-forefront-client-security-historical-reportsmalware-history?forum=Forefrontclientreporting
    Best Regards,
    Joyce
    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.

  • How to change to Icon View for some folders but and List View for the rest

    I've had a bear of a time with View options in my folders. I'd like some folders to be in Icon view and other to be in List view. For what ever reason if I change the view option of one folder it changes the view option of EVERY folder. What can I do to make this happen?

    I was about to ask the same. I'd like to use icon view normally, but list view for folders containing lots of text documents. It looks like the solution is using View > Show View Options, change the folder to the view you want, and then tick the box at the top fo the dialogue for "Always open in __ view".
    Message was edited by: Adrian Bolt
    Message was edited by: Adrian Bolt

  • Listing fonts for the user

    I need to create a list of the fonts available on the user's system, so that they may pick one for their text.
    This seems simple enough, but I have been unable to do it in a way that matches native apps.
    There are two methods that I am working with:
    getAvailableFontFamilyNames()
    getAllFonts()both from the GraphicsEnvironment class.
    Using the list from getAllFonts() would be overkill, since it would include all the bold, italic and bold-italic versions of each font.
    Using the getAvailableFontFamilyNames() method returns a list that is very similar to that that I see in MS Word etc, and therefore it was my original choice.
    Unfortunately, a family can contain other fonts besides just bold and italic. For example the Berkeley family includes Berkeley Book. In native apps, this font is offered, but my app offers only Berkeley. According the documentation for the Font class A Font can have many faces, such as heavy, medium, oblique, gothic and regular. All of these faces have similar typographic design.
    So, how do you offer gothic to the user without listing every bold and italic version of the font?

    Why not just
    String[] fntAvlAry = java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
    int lenAry = fntAvlAry.length;
    StringBuffer fntAvlBuf = new StringBuffer();
    for ( int i = 1 ; i < lenAry ; i++ ) {
         if ( fntAvlAry.indexOf('.') < 0 && fntAvlAry[i].toUpperCase().indexOf("BOLD") < 0 && fntAvlAry[i].toUpperCase().indexOf("ITALIC") < 0 ) {
    fntAvlBuf.append( fntAvlAry[i]+"," );
    String allFontsDelimByComa = fntAvlBuf.toString();

Maybe you are looking for