horizontal scrolling in a listview

LS,

How can I scroll, in code, to a certain (invisible) column in a
listview, in report mode, eg to col number 50 and make it visible?
-- 
Sam Francke
0
Sam
8/14/2008 5:09:46 PM
embarcadero.delphi.general 4258 articles. 0 followers. Follow

2 Replies
1229 Views

Similar Articles

[PageSpeed] 4

<Sam Francke> wrote in message news:2705@forums.codegear.com...

> How can I scroll, in code, to a certain (invisible) column in a
> listview, in report mode, eg to col number 50 and make it visible?

There is no method available specifically for that purpose.  You can, 
however, use the ScrollBy() method to scroll horizontally and vertically in 
a generic manner, though you will have to calculate the necessary deltas 
manually.  In this situation, one way would be to loop through all of the 
available columns, the using their Width property, to calculate each 
column's offset from pixel 0, then retreiving the current scroll position 
and subtract that from the offset of the desired column.


Gambit
0
Remy
8/14/2008 5:16:36 PM
Remy Lebeau wrote:
> <Sam Francke> wrote in message news:2705@forums.codegear.com...
> 
>> How can I scroll, in code, to a certain (invisible) column in a
>> listview, in report mode, eg to col number 50 and make it visible?
> 
> There is no method available specifically for that purpose.  You can, 
> however, use the ScrollBy() method to scroll horizontally and vertically in 
> a generic manner, though you will have to calculate the necessary deltas 
> manually.  In this situation, one way would be to loop through all of the 
> available columns, the using their Width property, to calculate each 
> column's offset from pixel 0, then retreiving the current scroll position 
> and subtract that from the offset of the desired column.

Thanks for your fast reply. I've to calculate and it is trial and error 
I think

-- 
Sam Francke
0
Sam
8/14/2008 5:39:11 PM
Reply:

Similar Artilces:

[DELPHI] ListView Scrolling Direction
Hi all, is there a way to choose the scrolling direction of a listview in delphi? For example, when I add items in a listview with ViewStyle property set to vsIcon, if I exceed the listview's horizontal capacity, the listview adds the other items on a new "line" adding a Vertical scrollbar. And if I want to continue to add items horizontally and use a horizontal scrollbar to scroll? Is it possible? Hope you've understood Thanks in advance. Mario Cazzo wrote: > Hi all, > > is there a way to choose the scrolling direction of a listview in &g...

Scrolling Scrolling Scrolling
Name: Naseef Fatemi Email: ishwaadatyahoodotcom Product: Firefox Summary: Scrolling Scrolling Scrolling Comments: Guys firefox is one of the best EVER piece of software out there but I have a problem. The scrolling in firefox is terrible compared to the smooth and fluent scrolling of opera, and thats with smooth scrolling option in firefox activated. So guys am i missing something hidden and if not can you guys work on it cause its going to make firefox even better than it already is. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090...

Scrolling, Scrolling and more Scrolling
I've spent several weeks fixing scrolling and zooming bugs on b2g. You may have enjoyed bug 831973 (and it's duplicates) over the last week. In bug 811950 it took -9 lines to introduce the bug and a further -27 lines to fix it. Perhaps we have too much scrolling code: * AsyncPanZoomController.cpp * BrowserElementScrolling.js * PanZoomController.java * nsFrameLoader.cpp There is a fair amount of duplication here. Ideally we should have a single async implementation with a good set of tests. Removing the duplication is going to require some collaboration. Are there o...

superreview requested: [Bug 212789] Horizontal Scrolling for XUL Tree Controls [Will Implement] : [Attachment 181482] Without further ado: Horizontal Scrolling for Trees
Nate Nielsen <nielsen@memberwebs.com> has asked David Hyatt <hyatt@mozilla.org> for superreview: Bug 212789: Horizontal Scrolling for XUL Tree Controls [Will Implement] https://bugzilla.mozilla.org/show_bug.cgi?id=212789 Attachment 181482: Without further ado: Horizontal Scrolling for Trees https://bugzilla.mozilla.org/attachment.cgi?id=181482&action=edit ...

superreview cancelled: [Bug 212789] Horizontal Scrolling for XUL Tree Controls [Will Implement] : [Attachment 181482] Without further ado: Horizontal Scrolling for Trees
Nate Nielsen <nielsen@memberwebs.com> has cancelled Benjamin Smedberg [:bs] (formerly bsmedberg@covad.net) <benjamin@smedbergs.us>'s request for superreview: Bug 212789: Horizontal Scrolling for XUL Tree Controls [Will Implement] https://bugzilla.mozilla.org/show_bug.cgi?id=212789 Attachment 181482: Without further ado: Horizontal Scrolling for Trees https://bugzilla.mozilla.org/attachment.cgi?id=181482&action=edit ...

superreview requested: [Bug 212789] Horizontal Scrolling for XUL Tree Controls [Will Implement] : [Attachment 181482] Without further ado: Horizontal Scrolling for Trees #2
Benjamin Smedberg [:bs] (formerly bsmedberg@covad.net) <benjamin@smedbergs.us> has asked David Baron <dbaron@mozillafoundation.org> for superreview: Bug 212789: Horizontal Scrolling for XUL Tree Controls [Will Implement] https://bugzilla.mozilla.org/show_bug.cgi?id=212789 Attachment 181482: Without further ado: Horizontal Scrolling for Trees https://bugzilla.mozilla.org/attachment.cgi?id=181482&action=edit ------- Additional Comments from Benjamin Smedberg [:bs] (formerly bsmedberg@covad.net) <benjamin@smedbergs.us> Picking more likely reviewers, if this is ...

AlwaysVisibleControl Which Scrolls Only Vertically (No Horizontal Scrolling)
I have the following code:  1 <asp:UpdatePanel runat="server" ID="UpdatePanel1" > 2 <ContentTemplate> 3 4 <div ID="PageMenu" runat="server"> 5 --- Something --- 6 </div> 7 <ajaxToolkit:AlwaysVisibleControlExtender ID="avce" runat="server" 8 TargetControlID="PageMenu" 9 VerticalSide="Top" 10 VerticalOffset="90" 11 HorizontalSide="Left" 12 HorizontalOffset="10" 13 ScrollEffectDu...

How to do horizontal scrolling
Hellow, everybody, Could anybody tell me how to do horizontal scrolling in datawindow? The presentation style of the datawindow is grid. Since there are too many columns to be shown at the same time, I want to be able to scroll to a specified column, but I have not found appropriate functions to do that yet. I posted this problem on this news group before, but when I check in later I could not find my message on the news group anymore, anybody know why? I wish somebody will see this message and be able to help me on this. Thank you very much. Jeff Hi, You can try t...

horizontal scrolling
Name: Benny Email: bennybonus_at_gmail.com Product: Firefox Summary: horizontal scrolling Comments: I use touch pad scroll functions on a ThinkPad T42p on its touch pad borders but it doesn't work horizontal only vertical scrolling works in FF 2.0. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1) Gecko/20061010 Firefox/2.0 ...

Horizontal scrolling
I need to programmatically scroll (horizontally) to a particular column within a DW. Specifically, I have a DW of several date columns and the default behavior will be to scroll to the column correspnding to the current date. How do I accomplish this? Thanks, Mick Bosworth EDP Enterprises, Inc. Hi, Have you checked out the HorizontalScrollPosition datawindow property? <DW Control Name>.Object.DataWindow.HorizontalScrollPosition='<an integer>' HTH -- - Met vriendelijke groet, Eric Aling [TeamPS], Cypres Informatisering bv, The Netherlands http://...

scroll horizontally
Hi, I am using PowerBuilder 10.5 Build 7826. Would you please kindly advise how to scroll the datawindow horizontally ? I have checked the manual that "SetColumn" will not scroll the datawindow horizontally. Thank you! Modify DataWindow.HorizontalScrollPosition -- Report Bugs: http://case-express.sybase.com/cx/welcome.do Product Enhancement Requests: http://my.isug.com/cgi-bin/1/c/submit_enhancement "Ailin Org" <AilinOrg85322@yahoo.com> wrote in message news:49d18e42$1@forums-1-dub... > Hi, > > I am using PowerBuilder 10.5 B...

Horizontal movement of notbook pointer does not move horizontal scrolling bar
Name: Ajay K Email: kasargod71atyahoodotcom Product: Gran Paradiso Summary: Horizontal movement of notbook pointer does not move horizontal scrolling bar Comments: Hi, I have been using the Firefox 3 since the first beta and notice that using the mouse pointer ('keyboard nipple'?) on my notebook keyboard doe not move the horizontal scrolling bar....it only moves the vertical scroll bar. PS: It works properly when I use Internet Explorer btw. This is an intuitive expectation of the functionality...and hence I am not sure if this is considered a bug or an ehnanceme...

Horizontal scrolling
Dear all, I have a dw which allows our users to scroll horizontally, there's also code in the clicked event of the dw to select/highlight the row selected. When a user scrolls horizontally (to the right) to see fields which aren't visible, and then clicks another row i want to maintain my current dw fields. Now my users click and the focus is placed back on the first dw field. Is this at all possible ? If so, how ? TIA John What is your code in the clicked event of your dw? > Dear all, > > I have a dw which allows our users to scroll horizontally, ...

Horizontal Scrolling?
Are there any functions I can call to have a datawindow scroll left and right. I've found plenty of ways to scroll up and down but nothing for left and right. My datawindow has a horizontal scroll bar and I have some edit controls that aren't part of the datawindow, but when I scroll the datawindow, I have these edit controls sliding left and right with the scroll. I want to be able to do the oposite as well. If these edit controls move, I want to have the datawindow scroll with it. I just can't find a way to tell the datawindow to scroll anyway except up and down. Any h...

Web resources about - horizontal scrolling in a listview - embarcadero.delphi.general

Horizontal branch - Wikipedia, the free encyclopedia
The horizontal branch ( HB ) is a stage of stellar evolution that immediately follows the red giant branch in stars whose masses are similar ...

Facebook tests new sidebar ad format with horizontal image above body copy
Facebook is testing a new format for marketplace ads in the right hand column of its desktop site. The new design gives ads an image that stretches ...

#TheRallyTakeover - We control the horizontal. We control the vertical
We control the horizontal. We control the vertical

Horizon - Shoot & share horizontal videos on the App Store on iTunes
Get Horizon - Shoot & share horizontal videos on the App Store. See screenshots and ratings, and read customer reviews.


Horizontal Bar Gymnast Robot HIGHLIGHT 2 - YouTube
Horizontal Bar Gymnast Robot HIGHLIGHT 2 鉄棒ロボット総集編2

Emily VanCamp's Elle Canada Cover Makes A Case For Horizontal Stripes
It's often said that horizontal stripes are unforgiving but Emily VanCamp is making us change our minds. The "Revenge" star covers the April ...

TwelveSouth announces BookArc for Mac Pro, a chrome-plated horizontal desktop stand
... the Mac Pro. Much like its BookArc products for MacBooks and iPads, the BookArc acts as a desktop stand that allows the Mac Pro to lay horizontally ...

Romney’s horizontal fibbing on oil drilling
Yet another last-minute lie from Mitt Romeny, this time about the supposed panacea of horizontal drilling. .

Apple's iOS 8 May Feature Split-Screen, Horizontal Multitasking On iPad
Apple is expected to announce iOS 8 at next months Worldwide Developers Conference.

Resources last updated: 12/13/2015 5:59:02 AM