English
Source / code snippets

Listbox Zeilenhöhe Change

 

Michael
Dell
an small Spielerei:
Declare lb1&,alt_lb_zh&,z&

Proc sLB_Hight      setting new Zeilenhöhe and gives The previous back

    Parameters LB_Hndl&,Hoehe&
    Declare oHoehe&
    oHoehe& = SendMessage(LB_Hndl&,$01A1,0,0)    lb_GetItemHeight
    SendMessage(LB_Hndl&,$01A0,0,Hoehe&)  lb_SetItemHeight
    SendMessage(LB_Hndl&,$0195,1,0)  lb_SetColumnWidth (here Repaint)
    Return oHoehe&

ENDPROC

Cls
lb1&=Create(ListBox,%HWnd,,20,20,200,400)
AddStrings(lb1&,row Nr.: 1)
AddStrings(lb1&,row Nr.: 2)
AddStrings(lb1&,row Nr.: 3)
AddStrings(lb1&,row Nr.: 4)
z& = 4

WhileNot Or(Or(Equ(%Key,2),Equ(%MenuItem,-2)),Gt(z&,9))

    Sleep 800
    alt_lb_zh& = sLB_Hight(lb1&,25)       set new Zeilenhöhe in ListBox and save old
    Sleep 800
    sLB_Hight(lb1&,30)             set new Zeilenhöhe in ListBox
    Sleep 800
    sLB_Hight(lb1&,35)             set new Zeilenhöhe in ListBox
    Sleep 800
    sLB_Hight(lb1&,alt_lb_zh&)  set old Zeilenhöhe in ListBox
    Inc z&
    AddStrings(lb1&,Add$(row Nr.: ,Str $(z&)))

EndWhile

End
Salu...
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
11/20/04  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.971 Views

Untitledvor 0 min.
Sven Bader08/17/21
RudiB.04/18/21
Frank Vorholzer05/09/12
Untitled04/14/12
More...

Themeninformationen

this Topic has 1 subscriber:

Michael Dell (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie