Beruflich Dokumente
Kultur Dokumente
CodeVerge (/)
Reply
sybase.powerbuilder.objects (/sybase.powerbuilder.objects/)
articles.
0 followers. Follow
19/6/2000
(/sybase.powerbuilder.objects/info)
3160
4 Replies
107 Views
Similar Articles
page loaded in 2877 ms. (0) 18
http://codeverge.com/sybase.powerbuilder.objects/scroll-a-listview-control/883453
1/11
22/11/2014
e=eyJhdiI6NzM0OTUsImF0Ijo1LCJidCI6MCwiY20iOjE4MDg3OSwiY2giOjQ
http://codeverge.com/sybase.powerbuilder.objects/scroll-a-listview-control/883453
2/11
22/11/2014
Try:
constant int LVM_FIRST = 4096
constant int LVM_ENSUREVISIBLE = LVM_FIRST + 19
Send(Handle(lv_list),LVM_ENSUREVISIBLE ,li_index,0)
this code works fine for me.
Amit
H. Rivera <riverah@diebold.com> wrote in message
news:gXu##zf2$GA.285@forums.sybase.com...
> Is there any way to scroll a listview control to a selected item?
>
> I use:
>
> li_index = lv_list.FindItem(0,ls_name,FALSE,FALSE)
> If li_index > 0 Then
>
lv_list.GetItem(li_index, l_lvitem)
>
l_lvitem.HasFocus = TRUE
>
l_lvitem.Selected = TRUE
>
lv_list.SetItem(li_index,l_lvitem)
> End If
>
> And the item is selected, but I have to scroll manually to find the row.
>
> Thanks.
>
>
Reply
Amit
http://codeverge.com/sybase.powerbuilder.objects/scroll-a-listview-control/883453
19/6/2000
3/11
22/11/2014
Try:
constant int LVM_FIRST = 4096
constant int LVM_ENSUREVISIBLE = LVM_FIRST + 19
Send(Handle(lv_list),LVM_ENSUREVISIBLE ,li_index,0)
this code works fine for me.
Amit
H. Rivera <riverah@diebold.com> wrote in message
news:gXu##zf2$GA.285@forums.sybase.com...
> Is there any way to scroll a listview control to a selected item?
>
> I use:
>
> li_index = lv_list.FindItem(0,ls_name,FALSE,FALSE)
> If li_index > 0 Then
>
lv_list.GetItem(li_index, l_lvitem)
>
l_lvitem.HasFocus = TRUE
>
l_lvitem.Selected = TRUE
>
lv_list.SetItem(li_index,l_lvitem)
> End If
>
> And the item is selected, but I have to scroll manually to find the row.
>
> Thanks.
>
>
Reply
Amit
http://codeverge.com/sybase.powerbuilder.objects/scroll-a-listview-control/883453
19/6/2000
4/11
22/11/2014
It' works!!!
Thanks a lot.
(There sould be something for ListViews like the SetTop() function for a
Listbox)
Reply
19/6/2000
Hi Amit,
I added the code you mentioned and it didn't seem to work for me. I have
the same code that H. Rivera had tried and added your code to the bottom of
it.
Before I could just press the up/down arrow and get the item above or below
the one selected. With your code in there I don't get anything close to the
item.
Any suggestions?
Thanks!
Scott<"Amit" <amit_ts@arelnet.com> wrote in message
news:06qKQjg2$GA.204@forums.sybase.com...
> Try:
> constant int LVM_FIRST = 4096
> constant int LVM_ENSUREVISIBLE = LVM_FIRST + 19
> Send(Handle(lv_list),LVM_ENSUREVISIBLE ,li_index,0)
> this code works fine for me.
>
> Amit
>
> H. Rivera <riverah@diebold.com> wrote in message
> news:gXu##zf2$GA.285@forums.sybase.com...
> > Is there any way to scroll a listview control to a selected item?
>>
> > I use:
>>
http://codeverge.com/sybase.powerbuilder.objects/scroll-a-listview-control/883453
5/11
22/11/2014
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
li_index = lv_list.FindItem(0,ls_name,FALSE,FALSE)
If li_index > 0 Then
lv_list.GetItem(li_index, l_lvitem)
l_lvitem.HasFocus = TRUE
l_lvitem.Selected = TRUE
lv_list.SetItem(li_index,l_lvitem)
End If
And the item is selected, but I have to scroll manually to find the row.
Thanks.
Reply
Scott
6/9/2000
Reply:
Enter Your Response
Post Reply
Insert Signature
http://codeverge.com/sybase.powerbuilder.objects/scroll-a-listview-control/883453
6/11
22/11/2014
Similar Artilces:
http://codeverge.com/sybase.powerbuilder.objects/scroll-a-listview-control/883453
7/11
22/11/2014
CheckBox cb = (C...
How to update ListView.DragIcon so ListView control is shown as not allowed to drop on a control
which is not the intended Drop target? (/sybase.powerbuilder.general/how-to-update-listview.dragicons/1036215)
Hello.. Using Powerbuilder 7.0 I'm dragging a ListView control... I select the DragIcon for the ListView based on the
PictureIndex property of the selected item on the same ListView control, and in the LargePictureName[] list. The
intended target for dropping that ListView control is a TreeView control... while moving within the TreeView control,
everything is cool... I also coded the dragdrop event... works nice. But if the user drags the ListView control into
other controls within the Window (I have several DataWindow controls there) I would like to change the Drag...
ListView control with multiple select command controls (/asp.net.web-forms/listview-control-with-multipleselect-comma/430571)
Hi there, I have a listview control, on which I have two buttons 1) Wesite 2)Email Me. Note the listview only has
the Item and Layout Templates as I will not be editing or inserting. I have assigned both the controls the
CommandName="select" so that they both fire the SelectedIndexChanged event. There I can access the website
address and email address held in datakeys. In the listviews SelectedIndexChanged event I need to work out
which control fired the event. Ie if it was the website button then I will redirect the user to the website... Code in VB
please. ...
Error When Using a DropDownList Control in a ListView Control (/asp.net.getting-started/error-when-using-adropdownlist-contr/731566)
VWD 2008 Express. Visual Basic. I have placed a ListView Control on my page that is bound to a
SQLDataSource. I have placed a dropdownlist control in one of the fields (columns) in the edit, update, and insert
templates. This dropdownlist control is bound to another SQLDataSource. The dropdownlist control works fine in
the edit and update templates. However, when I place the same dropdownlist in the insert template, I receive the
following error (while in the VWD debug mode). Why would it work in the edit and update templates and not in the
insert templat...
Listview not rendering paging controls within reorderlist control (/asp.net.ajax_control_toolkit/listview-notrendering-paging-co/26656)
I have a a reorderlist control that is dynamically loaded with usercontrols. Each usercontrol contains a collapsable
panel extender and a databound listview within. Here is the problem. The datapager of the listview does not
function at all when it is loaded within the reorder list control. If I drop the control on a page normally, it pages fine.
When inside the the reorder list the datapager.controls count is 0. It is simply not rendering the paging interface.
any ideas? ...
How to connect a DataPager control to a ListView control which is inside a Webusercontrol
(/asp.net.presentation-controls/how-to-connect-a-datapager-cont/535789)
Hello, I've got a Listview control inside a Webusercontrol but because of layout reasons, I need to put the
Datapager control somewhere else in the page.My question is now, how can I connect the Datapager to the
Listview control? How and when do I have to fill the "PagedControlID" property of the DataPager?
Regards,TripleTwenty Hi tripletwenty , By default , we can not do this. Because you need to set datapager's
pagedcontrolid to one special control which implements IPageableItemContainer interface. But the user control did
not. If you really want to do that , ...
How to maintain the scroll bar position of the treeview control in a webpart control?
(/asp.net.personalization/how-to-maintain-the-scroll-bar-positi/316768)
http://codeverge.com/sybase.powerbuilder.objects/scroll-a-listview-control/883453
8/11
22/11/2014
(/asp.net.personalization/how-to-maintain-the-scroll-bar-positi/316768)
I have a tree view control in a webpart control. Between postbacks, the scroll is reset to the top of the panel
control that contains the tree view control. Basically I like to achieve the same functionality of TreeNode's
EnsureVisible in the Win Form, but in the Web Form. I tried the following client-side script that I read at other
posts var name = tvNavigation_Data.selectedNodeID.value;var selectedNode =Document.all?
Document.all[name]ocument.getElementById(name);if(selectedNode){ selectedNode.scrollIntoView(true); } where
tvNavigation_Data is the name of the tree view c...
Where is my ListView Control ? (/asp.net.visual-studio-2008/where-is-my-listview-control/340625)
I can not see ListView control in my toolbox from vs 2008 ? How do i get it in my toolbox & where its located.I
can see it in disabled form when i choose show all in toolbox.But My Pages are not recognizing the server controls
tags. News & Reviews | Matrimonial | Mithila I think your website is targetting .NET framework 2.0 hence the
reason why that control is disabled.Change that to target .NEt 3.5 and the control should
appearJeev~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~If you get the answer to your question, please mark it
as the answer. How do I change the si...
Scrolling to controls (/asp.net.web-forms/scrolling-to-controls/349634)
I've been searching the SDK for hours trying to find a way to move around on the page. An example: Everytime the
page loads it moves the user view to the top of the page. meaning that the user moving thru the pages of a datagrid
has to scroll down everytime. I'd Like to dynamically move to the top of a datagrid when i databind it or change
page. I know there's a property named "top" that returns the exact top location of the datagrid. I just don't know
how to change the user view area. I know you can move around in a page with anchors but they require a user
click. Thanks ...
Extracting user control properties from ListView ItemTemplate child controls (/asp.net.presentationcontrols/extracting-user-control-propert/516788)
I have a list view with a user control in it as so: <asp:ListView ID="List" DataSourceId="DataSource"
runat="server"> <ItemTemplate>
<custom:UserControl ID="UserControl" CustomProperty='<%-ValueIWantEnteredByUserAfterBinding --%>' runat="server" /> </ItemTemplate></asp:ListView> On the same
form I have a submit button and on postback I'd like to retrieve property values of User Controls generated by the
li...
ListView Control (/asp.net.getting-started/listview-control/689404)
My edition of Visual Web Developer does not include the new ListView Control. What is the best way to include
the new ListView Control into my Visual Web Developer?
http://www.thequinn.infohttp://www.sksdataservices.comhttp://www.infobasket.info Hi, The simplest way which I
think also best way is to update it to newest version. HTHPlease give us feedback no matter whether you get your
answer.Please "mark as answer" if it's useful for youSincerely,Jerome...
Listview Scrolling ??? (/sybase.power++.general/listview-scrolling/907647)
Hello all, I have bound a listview to a query (in report mode). Everything works just fine, but I can't scroll of the
listview if I grab the slider with the mouse ... the scroll buttons (up and down arrows work ok). Does anyone know
what's wrong with that? TIA Jens Jens Carroll wrote: > > Hello all, > > I have bound a listview to a query (in report
mode). Everything works just > fine, but I can't scroll of the listview if I grab the slider with the > mouse ... the
scroll buttons (up and down arrows work ok). > > Does anyone know what&...
ListView Scroll (/sybase.powerbuilder.general/listview-scroll/938733)
Does any one know how to scroll through a listview? I have a datawindow linked to a listview control and when the
http://codeverge.com/sybase.powerbuilder.objects/scroll-a-listview-control/883453
9/11
22/11/2014
user scrolls through the datawindow I want to scroll through the listview at the same time. TIA, Joe The
PowerBuilder Code Examples application contains a code sample for synchronized scrolling you can use. -<hopethishelps /> Roy Kiesler [TeamSybase] mySybase -- http://my.sybase.com <Joe_Zimmerman> wrote in
message news:835D492B69A414090072C98385256A1D.0072C99085256A1D@webforums... > Does any one
know how to scroll through a listview? I have...
how to scroll a listview? (/sybase.powerbuilder.general/how-to-scroll-a-listview/929061)
Hello! How can I make a listviewitem (report-style) the first/last visible item in the list? PB 6.5.1 TIA Uwe ...
Scrolling a Listview (/sybase.powerbuilder.objects/scrolling-a-listview/909674)
Hello all, I am trying to figure out how to scroll a listview object. I am allowing dragging of objects within the listview
and I want to be able to scroll the current list of items up or down as necessary. The problem is I don't see any
functions on the list view to allow me to scroll the list of items (or to pick the first item visible as in the tree view).
Anyone have any ideas? Thanks in advance, Allen Hi, Check my website for scrolling in a treeview. Might also
work for a listview ( I haven't tried it yet ). -- - Met vriendelijke groet, Eric Ali...
ListView Control (/sybase.powerbuilder.general/listview-control/824108)
PB 7.0.3 Build 10135 I'm using LISTVIEW control my problem is went i want to Alignment the first column right or
center, it always left!! About RightToLeft property is it new in PB8 for LISTVIEW -- --- Thanks... Osama Diab io@link.net diab98@hotmail.com Osama You can specify alignment when you add the column to the listview...
listviewname.AddColumn ( label, alignment, width ) options for the alignment argument are Right!, Left!, Center!,
and Justify! Good Luck Michael Walker Cascadia Software Osama Diab wrote: > PB 7.0...
Listview (/sybase.powerbuilder.pfc/listview-scrolling/798370)
Hi, I am using a listview inherited from u_lvs. I find that when I am on small icon view and scroll down and then
scroll up, some items become cleared on the top of the lv. Also, this happens only if scrolling is done by dragging
the scroll bar not when the up or down arrows is used for scrolling. Anyone seen this before? Appreciate your
response. TIA Priya Please remove the cantsend prefix in my email address. ...
ListView Control (/asp.net.futures/listview-control/538458)
Sorry if this is not in the correct forum, but i am attempting to get to
System.Web.UI.WebControls.ListViewTableRow inside the listview itemdatabound event.
System.Web.UI.WebControls.ListViewTableRow is not available. I can see it on the e.item.parent but i cannot
instantiate or reference a System.Web.UI.WebControls.ListViewTableRow to set properties on the row. Thank you
in advance.Jake...
Listviews and scrolling... (/sybase.powerbuilder.general/listviews-and-scrolling/1032599)
Using PB 10.5 Enterprise. Any way to scroll to a specific item in the listview after the list has been refreshed? I
can select the item just fine, however, don't really see any function like the datawindow has for scrolling to that
item in the list. Thanks in advance! --Brian ...
Listviews and scrolling (/sybase.powerbuilder.general/listviews-and-scrolling/1032600)
Hi, using PB 10.5, and listviews. Have issues with list refreshing, linked through pfc to a datastore, however, when
a listview refreshes, there are no functions to scroll to the selected item like you can on a datawindow. Ideas?
Thanks in advance! --Brian I don't have an answer to your question but please post only once. Thanks... -- Larry
Cermak [Team Sybase] Branick Consulting, Inc. www.branick-inc.com EAServer & PowerBuilder Consulting &
Training EAServer and PowerBuilder Computer Based Training Courses "Sybase" <bbarton@sequoiavo...
http://codeverge.com/sybase.powerbuilder.objects/scroll-a-listview-control/883453
10/11
22/11/2014
(http://engine.adzerk.net/r?
e=eyJhdiI6NzM0OTUsImF0Ijo1LCJidCI6MCwiY20iOjE4MDg3OSwiY2giOjQ4MTEsImNyIjo2NjE1NzgsImRpIjoiMGJkNmM1ZWMw
cwMv2ZQ8DEQ)
http://codeverge.com/sybase.powerbuilder.objects/scroll-a-listview-control/883453
11/11