TStringGrid, VertScrollBar, Thumb Size

TStringGrid, VertScrollBar, Thumb Size

I've a Form with a TStringGrid.  The RowCount varies programatically and the 
height of the
Form is varied by the user.  I'd like its VertScrollbar thumb to behave like 
the Object Inspector's
I'm using the StringGrid's scrollbars & GetScrollInfo & SetScrollInfo to 
change the thumb size
but it ain't so easy

The struct controlling the scrollbars is  (from documentation)
struct SCROLLINFO {
  UINT cbSize;
  UINT fMask;
  int  nMin;            //nMin and nMax contain the minimum and maximum 
values for the scrolling range
  int  nMax;
  UINT nPage;      //The nPage member contains the page size for a 
proportional scroll bar
  int  nPos;           //Specifies the position of the scroll box
  int  nTrackPos;  //Specifies the position of a dragged scroll box
}

I can change the thumb size with nPage but can't get it to match the exposed 
rows properly.

What in detail are nMin,  nMax & nPage  ?
Why are nMin & nMax always 0 & 127 ?

TIA  John
0
John
7/16/2015 2:17:22 AM
embarcadero.cppbuilder.using 1848 articles. 1 followers. Follow

0 Replies
729 Views

Similar Articles

[PageSpeed] 5
Get it on Google Play
Get it on Apple App Store

Reply:

Similar Artilces:

superreview requested: [Bug 424074] [Mac] Scrollbar thumb is drawn with wrong size for custom scrollbars : [Attachment 310730] Fix (use pageincrement attribute for thumb size)
Markus Stange <mstange@themasta.com> has asked Josh Aas <joshmoz@gmail.com> for superreview: Bug 424074: [Mac] Scrollbar thumb is drawn with wrong size for custom scrollbars https://bugzilla.mozilla.org/show_bug.cgi?id=424074 Attachment 310730: Fix (use pageincrement attribute for thumb size) https://bugzilla.mozilla.org/attachment.cgi?id=310730&action=edit ------- Additional Comments from Markus Stange <mstange@themasta.com> (In reply to comment #2) > Is pageincrement guaranteed to be present? The pageincrement attribute has a default value (10), so I ...

superreview granted: [Bug 424074] [Mac] Scrollbar thumb is drawn with wrong size for custom scrollbars : [Attachment 310730] Fix (use pageincrement attribute for thumb size)
Vladimir Vukicevic (:vlad) <vladimir@pobox.com> has granted Josh Aas <joshmoz@gmail.com>'s request for superreview: Bug 424074: [Mac] Scrollbar thumb is drawn with wrong size for custom scrollbars https://bugzilla.mozilla.org/show_bug.cgi?id=424074 Attachment 310730: Fix (use pageincrement attribute for thumb size) https://bugzilla.mozilla.org/attachment.cgi?id=310730&action=edit ------- Additional Comments from Vladimir Vukicevic (:vlad) <vladimir@pobox.com> Looks fine, add a reftest? (Compare whether a scrollbar without an explicit thumb size looks di...

superreview requested: [Bug 424074] [Mac] Scrollbar thumb is drawn with wrong size for custom scrollbars : [Attachment 310730] Fix (use pageincrement attribute for thumb size) #2
Josh Aas <joshmoz@gmail.com> has asked Vladimir Vukicevic (:vlad) <vladimir@pobox.com> for superreview: Bug 424074: [Mac] Scrollbar thumb is drawn with wrong size for custom scrollbars https://bugzilla.mozilla.org/show_bug.cgi?id=424074 Attachment 310730: Fix (use pageincrement attribute for thumb size) https://bugzilla.mozilla.org/attachment.cgi?id=310730&action=edit ...

I would or someone else use a API function where you must use a structure and know the size of it, how I can get the size of a structure in powerbuilder?
I would or someone else use a API function where you must use a structure and know the size of it, how I can get the size of a structure in powerbuilder? Count the bytes. You know the length of every object, because strings have to be initialized before seneding them to the API call. On 19 Jan 2006 08:11:55 -0800, kdioses@sybase.com wrote: >I would or someone else use a API function where you must >use a structure and know the size of it, how I can get the >size of a structure in powerbuilder? Nothing, though I've been asking for a SizeOf function in PB since ver...

superreview granted: [Bug 230173] Mozilla use 15 point size font for characters with style {font-size:14px;} : [Attachment 138463] use float type for mPointSize
Christopher Blizzard <blizzard@mozilla.org> has granted Christopher Blizzard <blizzard@mozilla.org>'s request for superreview: Bug 230173: Mozilla use 15 point size font for characters with style {font-size:14px;} http://bugzilla.mozilla.org/show_bug.cgi?id=230173 Attachment 138463: use float type for mPointSize http://bugzilla.mozilla.org/attachment.cgi?id=138463&action=edit ...

superreview granted: [Bug 424074] [Mac] Scrollbar thumb is drawn with wrong size for custom scrollbars : [Attachment 311146] Fix v2: Use correct default values
Vladimir Vukicevic (:vlad) <vladimir@pobox.com> has granted Josh Aas <joshmoz@gmail.com>'s request for superreview: Bug 424074: [Mac] Scrollbar thumb is drawn with wrong size for custom scrollbars https://bugzilla.mozilla.org/show_bug.cgi?id=424074 Attachment 311146: Fix v2: Use correct default values https://bugzilla.mozilla.org/attachment.cgi?id=311146&action=edit ...

superreview requested: [Bug 424074] [Mac] Scrollbar thumb is drawn with wrong size for custom scrollbars : [Attachment 311146] Fix v2: Use correct default values
Josh Aas <joshmoz@gmail.com> has asked Vladimir Vukicevic (:vlad) <vladimir@pobox.com> for superreview: Bug 424074: [Mac] Scrollbar thumb is drawn with wrong size for custom scrollbars https://bugzilla.mozilla.org/show_bug.cgi?id=424074 Attachment 311146: Fix v2: Use correct default values https://bugzilla.mozilla.org/attachment.cgi?id=311146&action=edit ...

When to use ( and when to use ((?
I'm just not getting it. When do you use ( in a statement, when do you need to use ((, and is the space after either or both mandatory? For example, I coded this statement: if (( $_ eq $bad_guys_ip )) { more_stuff_here }; Why the two (( in an if? And why does it seem to not work when I miss the space after the ((? Thanx! Mark me as... /Corn-fused|Dense/ > I'm just not getting it. >=20 > When do you use ( in a statement, when do you need to use ((, and is > the space after either or both mandatory? >=20 > For example, I coded this sta...

Changing paper size w/o using the preset sizes
Is there any way to set the datawindow paper size without using the preset sizes? For example: dw_1.Object.Datawindow.Print.Paper.Size=3.875in x 7.50in. We have a requirement to print report using a pre-printed form with the size as set on the example. At this very moment, I don't have even a slightest clue on how to do this. If this isn't possible, then is there a way to print a datawindow without ejecting page? Any help anyone could provide would be greatly appreciated. Thank you and regards, Peter ...

Using sp_estspace to calculate table size with variable size columns
I have a table that has some integer columns but also 2 columns sized at varchar(255). I would like to get an estimate of its table size where the average varchar column has 25 characters in it. How would I use sp_estspace (or some other utility) to do that estimate. Thanks. -- _________________________________________ "Document Management & Imaging Solutions" _________________________________________ Jeff Huttel NMatrix, Inc. 300 East 42nd Street, 5th Floor New York, NY 10017 Phone: 212-338-9442 Fax: 212-338-9407 Email: huttel@nmatrix.com http://www.nmat...

Using Using
I have just completed reading a chapter in my book on performance. The books says to speed up performance on your web site you should use the using statement when opening connections. My question is how do you catch errors if you are using this as apposed to a try catch block.thanksBryan  Why would you use it as an alternative to a try/catch statement. Couldn't you just do something like  public void UsingSomeMethod() { try { SomeMethod(); } catch(SomeException e) { /// do something useful }}public void SomeMethod() { using (Something) { ...

Thumbs Up, Thumbs down
Name: Ross Nixon Email: rossnixonatgmaildotcom Product: Firefox Release Candidate Summary: Thumbs Up, Thumbs down Comments: FF3b5 On several sites (e.g. digg.com and kiwiblog.com) you can vote up or down individual messages depending if you like then or not. The error that I get sometimes varies between sites, but basically says "can't do that at the moment, try again later". Could just be a website issue, but I'll report it just in case it's a FF issue. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9b5) Gecko/2008032620 F...

create database seem to use the old data size and log size
ASE 12.5.0.1 Unix I drop the database TEST which had data size 21M and log size 6M I then create the same database in isql as: create database TEST on dev12=80 log on dev14=20 go return status = 0 I did a sp_helpdb TEST it show the db_size is 27M, device fragments for data is 21M and log is 6M What happen to the rest of the space? How to fix it? > ASE 12.5.0.1 > Unix > > I drop the database TEST which had data size 21M and log > size 6M > > I then create the same database in isql as: > create databas...

font size appear smaller than the size defined in css when using master page
Hi, I have all the fonts in my web pages defined as Arial and x-small. The font size looks good. Then I applied Master Page to the web pages, now the font size appear like xx-small in the browser. I had to change my css file to increase the font size to small to make the font looks like the previous x-small fonts. Anyone has any idea why this is happening? Thanks.         Hi, I'm not an expert, but I had a similar problem and was able to fix it by placing links to the stylesheet on both the master page and the content pages. Hope that helps...

Web resources about - TStringGrid, VertScrollBar, Thumb Size - embarcadero.cppbuilder.using

Resources last updated: 1/19/2016 9:49:02 AM