Results 1 to 3 of 3

Thread: Object over ListView question

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091
    Hi,

    It seems that you can't place any objects over a ListView even when you specify the zorder of that object as 0.

    I'm trying to accomplish the following:

    If the ListView has no data, I want a label to appear near the top center of the empty ListView which says "There are no items in this view.", kinda like Outlook Express does when there is no email in a folder.

    Is there any way to accomplish this?

    Thanks,

    Dan


  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Use an if statement in your load.
    if filelen(mysourcefile) = "" then
    load a different listview
    no columns, one item: "Sorry, the listview source is empty", centered
    else
    load the regular listview stuff with your source.

    endif

    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    Registered User
    Join Date
    Apr 1999
    Location
    Brazil
    Posts
    144

    Lightbulb My suggestion

    When I load a listview with many itens (over 500) I display a label while, and I do this?


    lbl.move lvw.Top, lvw.left, lvw.Width, lvw.Height
    lbl.Visible=True
    lvw.Visible=False

    Note: In the label.caption you can put any message that use want!

    Jefferson

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width