Home
Top.Mail.Ru Yandeks.Metrika
Forum: "WinAPI";
Current archive: 2003.09.01;
Download: [xml.tar.bz2];

Down

Horizontal scrolling in ListBox Find similar branches


RIMMER   (2003-06-28 00:27) [0]

The old advice on adding a subject does not work correctly in WinXP - the length of the scroll is set to less than necessary. What to do?



RIMMER   (2003-06-28 00:30) [1]

PS I mean the following procedure
procedure TForm1.ShowHScroll (Sender: TObject; ListBox: TCustomListBox); var i, MaxWidth: integer; begin MaxWidth: = 0; for i: = 0 to ListBox.Items.Count - 1 do if MaxWidth <ListBox.Canvas.TextWidth (ListBox.Items.Strings [i]) then MaxWidth: = ListBox.Canvas.TextWidth (ListBox.Items.Strings [i]); SendMessage (ListBox.Handle, LB_SETHORIZONTALEXTENT , MaxWidth + 7, 0); end;



Ученик   (2003-06-28 10:08) [2]

It seems that this code works under Windows XP, and which fonts are installed with the system "large" or "small", maybe the problem is + 7, or is there a lot missing?



RIMMER   (2003-07-01 00:25) [3]

It lacks differently (it seems depending on the length of the max line), but usually> 20 pixels. Fonts on the tab in the display properties = "Normal size (96 dpi)"



Pages: 1 whole branch

Forum: "WinAPI";
Current archive: 2003.09.01;
Download: [xml.tar.bz2];

Top





Memory: 0.55 MB
Time: 0.026 c
14-1669
Eclipse
2003-08-12 11:17
2003.09.01
Help start with 3D


7-1692
Grinya
2003-06-14 13:49
2003.09.01
How to remove the disk icon ???


3-1333
n13
2003-08-07 15:08
2003.09.01
dbf files


14-1566
Paul
2003-08-11 18:10
2003.09.01
maybe who knows?


4-1730
good
2003-06-30 08:46
2003.09.01
How to kill a frozen thread?





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic Indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Spanish swahili Swedish ภาษาไทย turkish Ukrainian urdu Tiếng Việt welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada Khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish