Listbox with graphics as well

For my GUI application, If I wanted have a form with a listbox, where each item in the listbox has images of some sort, h as well as text, were would I start? Can I hook into the paint of the listbox items somehow, i dont know where to start, is there something I can read or refer to? Thanks.

Provide a custom renderer

Similar Messages

  • Frame in frame with graphics problem-or maybe not

    Hi from Croatia.
    Well I have and extremely demanding costumer that wants to control every single bit of the project.
    The problem is as follows.
    I have a book that every once in a wile has annotation which above and bellow has a graphic line (not simple line but complex graphic imported from illustrator.)
    I tried to anchor one object above and another bellow this text which lets say stands in the middle of text frame and for me everything works ok.
    But this demanding customer wants that those annotations are in separate frame so that he can have full control over them(?).
    So I made frame in frame-put wrapping around this smaller frame.
    The problem is- is it possible to put those graphics in this smaller frame, create text object and add it to library so that i can use it multiple times. I have more than hundred of those annotations.
    And is it possible when i cut the text from this main frame to paste it in this smaller one and that this small frame automatically fills with text so that frame expands vertically according with amount of text. I am not placing text but pasting. I hope you have understood but in every case here is an example.
    Main text frame(text fills full width of page)
    sadbhjasdsdab
    sagsafgsfgafsd
    agsfgfasg
    (Now smaller frame with graphic fills full width of main frame)
    ewfewtf
    agasg
    sdagasdga
    (text fom main frame continues)
    fasdfs
    dsgasgasg
    dfgdfsg
    dfsgsd
    Uf this was exhausting even for me.
    THX for any help.

    I tried to use 3 row table with header and footer, but the problem is that indesign does not allow tables to break when the part of table goes to another page.
    And THX for in for on those plugins.

  • Listbox with Horizonal scroll visible

    Hello,
    We all know that a listbox comes with a default Vertical scrollbar (that can be selected or deselected).
     I have attached a vi that has list box with horizontal scroll bar also visible.
    Now i have made it my self by playing around with custom control and i am unable to reproduce the same since i forgot how i did it. has anuone tried it before and if yes throw some light on this?
    Guru
    Regards
    Guru (CLA)
    Solved!
    Go to Solution.
    Attachments:
    Listbox with Horizontal scroll bar.vi ‏8 KB

    I have tried a multicolumn listbox but I don't know if I was going about it the right way. The main problem I ran into was that there were still a bunch of empty columns, despite setting it to 0 columns using a property node. This made it tricky to scroll horizontally cuz the bulk of the scrollbar corresponded to the empty columns. Also, when I tried setting it to 1 column, then setting the active cell width to something wide enough (i.e. 1000 pixels) it would make the listbox control as a whole go that wide and cover up other pieces of my FP. I'm sure there is a way around this, but I am not aware of it. For my own purposes I just added a dynamic search box that allows the users to quickly narrow down the availble options in the listbox, this seems to work well enough for everyone to be happy.
    Thanks for the advice!

  • IMac crashes on startup or freezes with graphical glitches

    Hi,
    My early 2009 24" iMac suddenly crashed a few days ago, while browsing on the internet with no major app running. It did so with graphical glitches, like coloured dots. Since then, it would always shut down suddenly every time I restart. It shuts down right after the Apple logo and the wheel, once even reaching the user selection screen for a second, then shutting down before I could even move.
    I started it in safe mode and ran all the checks, it says the volume is fine. When checking disk permissions, it did give me a few error messages but let me do the repairs. Weird thing is when I ran the disk permission verification again it showed me the same permission, as if they hadn't been repaired.
    Now I backup everything and tried to reinstall OS X but to no avail, it kept doing the same thing.
    So I formatted the disk, zeroed it out and reinstalled Mavericks. Same thing keeps happening, which seem to indicate some kind of hardware failure, right?
    On one occasion it did start up but after a few seconds it froze, with heavy glitches (see picture attached - sorry it's upside down but it doesn't make a huge difference anyway!).
    I upgraded the iMac with new RAM a year ago or so, and 2 years ago it had a hard drive failure, so I replaced the HD. Never had any problems in general, apart from when I had to replace the HD of course. It's always been very stable and well behaved.
    Any idea what the problem could be? I'm not looking forward to having to fork out £1500 for a new one...

    http://www.apple.com/uk/legal/statutory-warranty/ may be worth reading before you visit Apple. I don't thibk you'd be the first to argue that an expensive, quality computer ought to last more than 5 years, albeit that say, mechanical hard drives inside might need replacing.

  • JScrollPane doesn't work with Graphics

    Does JScrollPane work easily with Graphics?
    The GUI I am trying to create will have an indeterminate number of coloured blocks, so I need scroll bars to allow the full number of blocks to be seen. My test code, with just a few of blocks, is below.
    I have a class which contains the paintComponent(Graphics) method, and an object of that is put inside a JScrollPane and the whole lot is added to a JFrame. I have tried playing around with various sizes, and with various combinations of JFrame and JPanel, but the scrollbars don't allow me to scroll to see the full blocks. In the JScrollPane constructor I have declared them to be always visible so that I can see them, but they don't do anything.
    Should my ColorPanel class implement Scrollable? I'd like to avoid that, as it seems unnecessarily complicated. Has anybody got any ideas? Many thanks.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Graphics.*;
    import javax.swing.*;
    class ScrollTest extends JFrame
    {     private Toolkit tk = Toolkit.getDefaultToolkit();
         private Dimension d = tk.getScreenSize();
         int screenHeight = d.height;
         int screenWidth = d.width;
         public ScrollTest()
         {     super("Test");
              addWindowListener(new WindowAdapter()
                   {     public void windowClosing(WindowEvent e)
                        {     System.exit(0);
              setSize(screenWidth, screenHeight);
              Container contentPane = getContentPane();
              ColorPanel cp = new ColorPanel();
              cp.setPreferredSize(new Dimension(400, 400));
              JScrollPane scroller = new JScrollPane(cp,
                        ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
                        ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
              JViewport vp = scroller.getViewport();
              vp.setViewSize(new Dimension(350, 350));
              vp.add(cp);
              contentPane.add(scroller, "Center");
         public static void main(String[] args)
         {     ScrollTest st = new ScrollTest();
              st.pack();
              st.show();
    class ColorPanel extends JPanel
         public void paintComponent(Graphics g)
         {     super.paintComponent(g);
              g.setColor(Color.red);
              g.fillRect(50, 250, 50, 500);
              g.fillRect(250, 50, 500, 50);
              g.setColor(Color.green);
              g.fillRect(50, 750, 50, 50);
              g.fillRect(750, 50, 50, 50);
    }

    I am having an almost identical problem . I am also building panels with custom graphics of indeterminate numbers of colored blocks, and so need scrollbars - or SOME way of being able to view everything, but have not been able to get it to work. i tried setting the preferred size of the panel, and setting the sizes of the scrollpane and its container as well..
    this problem has been plaguing me for a while - enclosing a panel with custon graphics in a scrollpane and getting the scrollbars to show up and function correctly. any help will be greatly appreciated!!

  • OpenOffice (calc) crashes whenever opening file with graphics

    The title says it all. Version is 3.0.0-3.
    It doesn't matter the file origins from Excel, is old .ods or OO-3.0 .ods. The only pattern I could see is that files without embedded external graphics work well (regardless WMF, JPG, PNG); other crash after loading. I deleted my .openoffice folder without success.
    Anybody experienced anything similar? Any idea what to do?
    Thanks in advance!

    This time I got some feedback from the terminal:
    pure virtual method called
    terminate called without an active exception
    /usr/bin/soffice: line 152:  6320 Speicherzugriffsfehler  "$sd_prog/$sd_binary" "$@"
    ("Speicherzugriffsfehler" means "memory access error")
    The weird thing is, I have lots of other computer working fine with the same files and similar installation (Arch64, Gnome...). Is it possible to be related to any dependending software?
    I opened one spreadsheet document with a company logo on another computer and saved. Then opened the same file on my computer and it crashed. Then again I opend this file, removed all graphics and saved it. Now it also opens on my computer, but as soon as I try to import a graphic OpenOffice crashes again. So I believe the trigger is known.
    So far I couldn't find any similar report at OpenOffice.org
    Last edited by jcci (2008-11-17 07:01:23)

  • Save the selected value from listbox with its respective tab control dropdown selcted values in another listbox

    Hi all,
    I am making a vi where I have to save the selected value from listbox with its respective tab control dropdown selcted values in another listbox.Whenever I select Item1 then the heading change and respective tab will open for that item.But Now I just want to save the selection and put it in another ListBox.SO that I can renmove or add according to my wish. Plz help me.
    Solved!
    Go to Solution.
    Attachments:
    my_vi.png ‏83 KB

    Hi, I successfully make the vi to insert itmes from listbox1 to listbox2.Whenever I select itmes 1 in listbox 1 it display same elected item in listbox2 , but it not appending the items in listbox2.Like If 1 is selected in listbox1 then 1 will display , next time after saving when I selct next item like 3 then in listbox 2, 1 is replaced by 3,it dont come in second row of listbox2.Hope I am able to explain.\
    Plz help me to resolve this.
    Attachments:
    listbox_update.vi ‏11 KB

  • I have one home computer and our household has 2 iphones. I am signed up on itunes and now my husband would like to have an account with itunes as well. Can there be two accounts for 2 users for itunes on one home computer? How do I add another account ?

    I have one home computer and our household has 2 iphones. I am signed up on itunes and now my husband would like to have an account with itunes as well. Can there be two accounts for 2 users for itunes on one home computer? How do I add another account ?

    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • How do I use Automator to duplicate a folder with graphics on my desktop and erase their Resource forks?

    How do I use Automator to duplicate a folder with graphics on my desktop and erase their Resource forks?
    I do not use command line and tried to use ZapResourceForksAMAub_1.2 which I downloadedand instaled the Zap Resource Forks.action. Next I tried to use their sample copy-zap-rsrc.workflow in Snow Leopardon my Mac Pro. The 3 different steps are displayed in Automator but there is no place to put in which folder (on my deskto) to copy, and remove the resource forks from the graphic files.
    Can sombody please step me through this please please.
                                                                                          W.W.

    Unfortunately, Back to My Mac only works across computers using the same iCloud account.

  • After installing any version of itunes. Told failed to install properly and could not burn or import music from Cd's. Also will not allow eithre one of my 2 ipods to sync with it as well.

    After installing any version of itunes. Told failed to install properly and could not burn or import music from Cd's. Also will not allow eithre one of my 2 ipods to sync with it as well.

    Could you post your diagnostics for us please?
    In iTunes, go "Help > Run Diagnostics". Uncheck the boxes other than DVD/CD tests, as per the following screenshot:
    ... and click "Next".
    When you get through to the final screen:
    ... click the "Copy to Clipboard" button and paste the diagnostics into a reply here. (Use your Ctrl-V keyboard shortcut to paste.)

  • How to populate a listbox with key in a table control

    I have the following code:
    MODULE carga_huecos INPUT.
    DATA: BEGIN OF li_huecos OCCURS 0,
            key(40) TYPE c,
            text(80) TYPE c,
    END OF li_huecos.
    DATA: BEGIN OF estru_hueco OCCURS 0,
          hueco LIKE zmov_wm-hueco,
    END OF estru_hueco.
    CLEAR: li_huecos, estru_hueco.
    REFRESH: li_huecos, estru_hueco.
    SELECT lgpla
        FROM lagp
        INTO TABLE estru_hueco
      WHERE lgnum = 'WWM' AND
            lgtyp = i_zmov_wm-almacen.
      LOOP AT estru_hueco.
        li_huecos-key  = estru_hueco-hueco.
        li_huecos-text = estru_hueco-hueco.
        APPEND li_huecos.
        CLEAR li_huecos.
      ENDLOOP.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = 'I_ZMOV_WM-HUECO'
          values          = li_huecos[]
        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.
    I see that internal table  li_huecos has the values I need. But vrm_set_values function is not working. I need this values to be seen in a table control field which I have defined as "listbox with key". The name of the internal table associated to the table control is "I_zmov_wm" and the field is HUECO.
    After function is executed sy-subrc = 0 but no value is seen in the list.
    Thanks.

    hi ,
    instead of this 
    LOOP AT estru_hueco.
    li_huecos-key = estru_hueco-hueco.
    li_huecos-text = estru_hueco-hueco.
    APPEND li_huecos.
    CLEAR li_huecos.
    ENDLOOP.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id = 'I_ZMOV_WM-HUECO'
    values = li_huecos[]
    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.
    add this 
    data : name  type vrm_id  .
    LOOP AT estru_hueco.
    li_huecos-key = estru_hueco-hueco.
    li_huecos-text = estru_hueco-hueco.
    APPEND li_huecos.
    CLEAR li_huecos.
    ENDLOOP.
    name  = 'I_ZMOV_WM-HUECO' .
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id =   name
    values = li_huecos[]
    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.
    regards
    Deepak.

  • I have recently purchased an IPad Air. This comes with "IPhoto" as well as it's usual photo App. I do not have a Mac, instead I am syncing it to my windows PC. Is there any way of actually moving a picture around, (arranging photos in a single album)

    I have recently purchased an IPad Air. This comes with "IPhoto" as well as it's usual photo App. I do not have a Mac, instead I am syncing it to my windows PC. Is there any way of actually moving a picture around, (arranging photos in a single album), in either of these apps???? They claim to be able to "Organize"  or "arrange" Photos, but for the life of me I can't figure out how......could you recommend any apps that actually allow someone to move individual photos around on an IOS Device.

    No, reordering within folders and albums is not supported. the yare arranged automatically by date. I found this, but I have not used any of the apps besides iPhone. You might check the descriptions to see if they do what you need.

  • Black screen after login while on battery with graphics switching enabled

    Getting a black screen after entering my password while logging into my account while on battery with graphics switching enabled. Everything is up and running, I just can't see it.
    I can log into the guest account on battery
    I can log into my account while plugged into power
    I can log into my account on battery if graphics switching is disabled
    I believe something that is starting up in my account is causing the system to switch from integrated to discrete graphics on login, and that switch isn't working correctly on battery power.
    As a work around for now, I can run with graphics switching disabled, but I'd like to solve this so I get longer battery life.
    MacBook Pro Retina 15"
    Mountain Lion
    All updates applied

    I had the same issue and managed to reslove it.
    Shut down your machine.
    Power it back on while holding the 'shift' key (left or right, doesn't matter)
    You will see a greay progress bar go across the screen while you boot in to 'safe boot'
    Once booted, login, and go to Energy Saver and turn on 'Automatic Graphics Switching'.
    Reboot back in to normal mode, and you should be able to log back in and see again.
    I did this without being plugged into AC power.
    Hope it helps!
    Cheers!

  • Issue with graphics tearing on thumb scroll in Flex 3

    We are seeing some off issues with graphics (one using the charting package and the other using degrafa) tearing on thumb scrolling in a large Flex 3 app.  It's very hard to reproduce on OSX with the latest versions of Safari and Firefox, but it shows almost immediately when you run the app on Windows or Linux (regardless of the browser).  I took one of the pieces out of the app and put it into a very simple testbed app and can't get the problem to show on Windows (i was hoping to isolate the issue in a smaller test case, but no such luck).
    So, ii've got a few idea's on how to work around the issue, but i was wondering if anyone else has seen this type of problem before?
    Problem:   
         - graphics tear on thumb scroll
         - doesn't happen if you click in the track or use the arrows
         - one view is using the charting package, the other view is using degrafa
    Thanks for any comments or suggestions...
    Richard

    SOLUTION:  changed wmode from "opaque" to "window" in the jsp serving as the wrapper for the app's main swf...
    Here's the reference we used to determine the proper setting for wmode;
    http://kb2.adobe.com/cps/127/tn_12701.html
    Thanks again for the response...  Richard

  • Batch create Multiple files in Acrobat X and X1 cannot convert Word 2010 with graphics

    I work for an exams board where hundreds of exam papers are produced. Once approved, these exams are converted to PDF and sent to print.  Using the Batch Create Multiple Files option is therefore essential to getting these papers print ready on time.  We have found that using this function to convert multiple Word 2010 files with graphics will not render it properly.  It deconstructs the graphics which loses the integrity of the exam paper. 
    I have trialled the same group of files on Acrobat X1 with the same result.
    Have other Acrobat Pro Users experienced the same problem?  Is there a fix? 

    I have uploaded the files and shared them.  These are the links
    Grade 11 Maths Standardisation Project Paper 2 2013.doc
    https://files.acrobat.com/preview/9694310d-ca7f-4919-883d-c53b36215d89
    Grade 11 Maths Standardisation Project Paper 2 Analysis Grid 2013.doc
    https://files.acrobat.com/preview/97da9e5f-d412-4d25-9bbc-d1a525d90826
    Grade 11 Maths Standardisation Project Paper 2 Diagram Sheet 2013.doc
    https://files.acrobat.com/preview/f50dd62e-af04-4060-85c5-fa81ce6803d8
    Grade 11 Maths Standardisation Project Paper 2 Formula Sheet 2013.doc
    https://files.acrobat.com/preview/7fc6007b-aaa6-4d65-9a8c-bf99818474a5
    Grade 11 Maths Standardisation Project Paper 2 Marking Guidelines 2013.doc
    https://files.acrobat.com/preview/b3a715bb-3683-48df-b0ec-3d17442275be
    Grade 11 Maths Standardisation Project Paper I Analysis Grid 2013.docx
    https://files.acrobat.com/preview/ab62e6b6-0261-434e-8a2f-382f74335685
    The first file is the problem file.  If you create this file separately, Acrobat will convert it perfectly.  But "Batch create multiple files" and the graphics are deconstructed on page 8

Maybe you are looking for

  • Error when activate Transformation to cube 0IC_C03

    Gurus: I need to activate the 2lis_03_bf_tr transformation to cube 0IC_C03, when I activate the transformation, the system indicate the next error: "E:In PERFORM or CALL FUNCTION "ROUTINE_9998", the actual parameter "SOURCE_PACKAGE" is incompatible w

  • How to create an apple id for your child

    how to create an apple id for your child

  • Need help with drop down list in parameters

    Hi All, I have the following data set: DEPT1     DEPT2     DEPT3 DEPT4 Commissioner's Office     Finance     Accounting     Accounts Payable Commissioner's Office     Finance     Accounting     Fiscal Analysis & Repo Commissioner's Office     Finance

  • Error While Posting Outgoing Payment

    I am trying to post a test document using FBZ2 in a new company code. I am getting an error message " The entry XXXX (the new company code that I have configured) is missing in table T043G. Please let me know what does that mean and how I can resolve

  • How do I get iphoto to recognise my external hard drive

    how do I get iphoto to recognise my external hard drive