Alpha Video Training
Results 1 to 4 of 4

Thread: Image with Simple listview or {listview}

  1. #1
    "Certified" Alphaholic
    Real Name
    John Koh
    Join Date
    Jan 2004
    Location
    Maryland, USA
    Posts
    1,056

    Default Image with Simple listview or {listview}

    Hi All,

    This sample is in A5 Help, https://documentation.alphasoftware....20Function.xml

    Code:
    dim list as c 
    list = <<%txt%
    {image=$$generic.orb.green}Erica|Jones
    {image=$$generic.orb.blue}Tom|Snider
    {image=$$generic.orb.yellow}Molly|Maloney
    %txt%
    list = replicate(list,30)
    
    list = *for_each(x,"{data=" + *index() + "}" + x, list)
    
    
    dim dlg_title as c = "Quick ListView - Sortable"
    ui_dlg_box(dlg_title,<<%dlg%
    {wrap=100}
    This dialog shows a simple ListView using the new ^" Xdialog syntax.;
    Using this technique, it is possible to create a simple ListView with substantialy less Xbasic than the {{Listview} Xdialog command.;
    The ^ in the control definition makes the column sortable.;
    [%M;K;%.100,20id^"Firstname:30^|Lastname:50^"list!idchange_*];
    {lf};
    Click button to change List layout;
    <List><Report><SmallIcon>
    %dlg%,<<%code%
    if a_dlg_button = "List" then 
    	a_dlg_button = ""
    	ui_dlg_ctl_command(dlg_title,"idchange","list")
    end if 
    if a_dlg_button = "report" then 
    	a_dlg_button = ""
    	ui_dlg_ctl_command(dlg_title,"idchange","report")
    end if 
    
    if a_dlg_button = "smallicon" then 
    	a_dlg_button = ""
    	ui_dlg_ctl_command(dlg_title,"idchange","SmallIcon")
    end if 
    
    if atc("idchange_",a_dlg_button) = 1 then 
    	if a_dlg_button = "idchange_dblclick" then 
    		ui_msg_box("","double click on : " + id)
    	else if a_dlg_button = "idchange_change" then
    		ui_msg_box("Note","User clicked on : "  + id )
    	end if 
    	a_dlg_button = ""
    end if 
    %code%)
    The dialog has an issue for the Image file which not shown in the simple_list.

    Does any one know how to show the image file in simple_listview or full_listview ( with {listview = } )?

  2. #2
    "Certified" Alphaholic Ronald Anusiewicz's Avatar
    Real Name
    Ronald Anusiewicz
    Join Date
    Oct 2000
    Location
    Southampton, MA
    Posts
    1,543

    Default Re: Image with Simple listview or {listview}

    Not quite sure I understand your question. But the example in the help file does not work with version 11 nor early versions of AA.
    The example does work with AA build 5221.
    Alpha Anywhere v3.5
    Version 12.3, Build 2999
    MySql56 & DBF's

    Alpha 4, 5, Anywhere

    Ron Anusiewicz

  3. #3
    "Certified" Alphaholic
    Real Name
    John Koh
    Join Date
    Jan 2004
    Location
    Maryland, USA
    Posts
    1,056

    Default Re: Image with Simple listview or {listview}

    Thanks, Ron.

  4. #4
    "Certified" Alphaholic
    Real Name
    John Koh
    Join Date
    Jan 2004
    Location
    Maryland, USA
    Posts
    1,056

    Default Re: Image with Simple listview or {listview}

    Hi,

    I just figured the Image with {Listview}
    Attached Images Attached Images

Similar Threads

  1. How can I use a listview as a picker.
    By edsicard in forum Mobile & Browser Applications
    Replies: 4
    Last Post: 05-06-2014, 10:12 AM
  2. UX LISTVIEW's ROW NUMBER ?
    By Ken Tjia in forum Mobile & Browser Applications
    Replies: 5
    Last Post: 11-05-2013, 07:40 PM
  3. listview format
    By Clunes in forum Alpha Five Version 10 - Desktop Applications
    Replies: 5
    Last Post: 06-06-2010, 02:31 AM
  4. Listview in xdialog
    By Mark Pearson in forum Alpha Five Version 9 - Desktop Applications
    Replies: 1
    Last Post: 08-01-2009, 05:53 AM
  5. xDualog listview
    By Chris_Wood in forum Alpha Five Version 8
    Replies: 7
    Last Post: 04-18-2008, 05:47 AM

Bookmarks

Posting Permissions

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