English
Source / code snippets

List view Profan

 
an ListView in Profan, to that understand, Change, strain...
CompileMarkSeparation
DEF @GetSysColor(1) !"USER32","GetSysColor"
Settruecolor 1
Declare CLASSNAME$,LVHandle&,HWND&,OK&,ProgressZähler&,LVC#,TXT$,Text#,Text&,LVI#,Back&,Gewählt&
Windowstyle 31
Windowtitle "ListView"
Window 0,0-640,440
CLS @getsyscolor(15)
LET OK&=@CREATEBUTTON(%HWND,"OK",10,360,100,30)
LET CLASSNAME$="SysListView32"
LET LVHandle&=@Control(CLASSNAME$,"",$40000000+$10000000+$0001+$0200+$8,20,20,300,300,%HWND,0,%Hinstance)
@sendmessage(LVHandle&,$1036,0,$00000023) Zeilen darstellen
REM @sendmessage(LVHandle&,$1036,0,$00000023+2) ZUm Ankreuzen
Struct LVCOLUMN=Mask&, FMT&, CX&, Text&, Textlänge&, Subitem&
Dim LVC#,LVCOLUMN
Dim Text#,256
String Text#,0="Spalte 1"
LVC#.TEXT&=Text#
LVC#.MASK&=$0001+$0002+$0004+$0008
LVC#.FMT&=0
LVC#.CX&=100
LVC#.Subitem&=0
LVC#.Textlänge&=255
@sendmessage(LVHandle&,$1000+27,1,LVC#)
String Text#,0="Spalte 2"
@sendmessage(LVHandle&,$1000+27,2,LVC#)
String Text#,0="Spalte 3"
@sendmessage(LVHandle&,$1000+27,3,LVC#)
Struct LVITEM=IMASK&, ITEM&, ISUBITEM&, State&, StateMask&, ITEXT&, ITEXTMAX&, IIMAGE&, ILPARAM&
DIM LVI#,LVITEM
String Text#,0="Zeile 1 / Spalte 1"
LVI#.ITEXT&=Text#
LVI#.IMASK&=$0001
LVI#.ITEM&=0
LVI#.ISUBITEM&=0
LVI#.ITEXTMAX&=255
@sendmessage(LVHandle&,$1000+7,1,LVI#)
String Text#,0="Zeile 2 / Spalte 1"
LVI#.ITEXT&=Text#
LVI#.IMASK&=$0001
LVI#.ITEM&=1
LVI#.ISUBITEM&=0
LVI#.ITEXTMAX&=255
@sendmessage(LVHandle&,$1000+7,1,LVI#)
String Text#,0="Zeile 3 / Spalte 1"
LVI#.ITEXT&=Text#
LVI#.IMASK&=$0001
LVI#.ITEM&=2
LVI#.ISUBITEM&=0
LVI#.ITEXTMAX&=255
@sendmessage(LVHandle&,$1000+7,2,LVI#)
String Text#,0="Zeile 1 / Spalte 3"
LVI#.ITEXT&=Text#
LVI#.IMASK&=$0001
LVI#.ITEM&=0
LVI#.ISUBITEM&=2
LVI#.ITEXTMAX&=255
@sendmessage(LVHandle&,$1000+46,0,LVI#)
Dispose LVC#
Dispose TEXT#

While 0=0

    IF @getfocus(OK&)

        LET Gewählt&=@sendmessage(LVHandle&,$100C,-1,2)
        LET GEWÄHLT&=Gewählt&+1

        IF Gewählt&<>0

            @messagebox("Zeile "+@str$(Gewählt&)+" wurde ausgewählt!","Zeile in ListView",64)

        endif

    endif
wend
 
08/24/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

3.078 Views

Untitledvor 0 min.
Gast.081510/12/24
Uwe Starke11/17/23
Uwe Lang04/28/20
RudiB.08/08/19
More...

Themeninformationen

this Topic has 1 subscriber:

unbekannt (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