Source / code snippets | | | | Uwe ''Pascal'' Niemeier | Hello people!
I faith, something like had we yet - at least in reinem RGH-XProfan - not yet: CompileMarkSeparation****************** ListView-Demo: TileView mit Icon
****************** XProfan 10 / Windows XP
****************** © by TCS (Uwe Pascal Niemeier) 052007
window 100,10-500,550
usefont MS Sans Serif,15,7,0,0,0
setdialogfont 1
usermessages 16
$H Windows.ph
$H commctrl.ph
declare Tiles#
struct Tiles=x1&,x2&,x3&,x4&,x5&--Array: 5 mögliche Spalten / Extra-Zeilen
dim Tiles#,Tiles
declare TileInfo#
struct LVTILEINFO=Size&,Item&,Columns&,puColumns&
dim TileInfo#,LVTILEINFO
TileInfo#.Size&=sizeof(TileInfo#)
TileInfo#.puColumns&=Tiles#
declare TileView#
struct TILEVIEW=Size&,Mask&,Flags&,x&,y&,Lines&,xa&,ya&,xb&,yb&
dim TileView#,TILEVIEW
TileView#.Size&=sizeof(TileView#)
TileView#.Mask& =2--LVTVIM_COLUMNS
TileView#.Lines&=5--Max. Anzahl Zeilen (nicht verwendete leer)
var IcoList&=~ImageList_Create(64,64,1,1,0)
external(comctl32,ImageList_AddIcon,IcoList&,~LoadIcon(%hinstance,Profan))
var Lv&=create(gridbox,%hwnd,a;0;0;b;0;0;c;0;0;d;0;0;e;0;0,0,10,10,300,420)--5 Spalten
sendmessage(Lv&,~LVM_SETIMAGELIST,~LVSIL_NORMAL,IcoList&)
sendmessage(Lv&,(~LVM_FIRST+142),4,0)----------LVM_SETVIEW,LV_VIEW_TILE
sendmessage(Lv&,(~LVM_FIRST+162),0,TileView#)--LVM_SETTILEVIEWINFO
addstring(Lv&,Name 1|Info 1|Extra 1|Daten 1|Text 1)
addstring(Lv&,Name 2|Info 2|Extra 2|Daten 2|Text 2)
addstring(Lv&,Name 3|Info 3|Extra 3|Daten 3|Text 3)
TileInfo#.Item& =0--------------------------------------Zeile 0
TileInfo#.Columns&=4--Anzahl Spalten als Extra-Zeilen
Tiles#.x1& =4--Text
Tiles#.x2& =2--Extra
Tiles#.x3& =3--Daten
Tiles#.x4& =1--Info
sendmessage(Lv&,(~LVM_FIRST+164),0,TileInfo#)--LVM_SETTILEINFO
TileInfo#.Item& =1--------------------------------------Zeile 1
TileInfo#.Columns&=1--Anzahl Spalten als Extra-Zeilen
Tiles#.x1& =4--Text
sendmessage(Lv&,(~LVM_FIRST+164),0,TileInfo#)--LVM_SETTILEINFO
TileInfo#.Item& =2--------------------------------------Zeile 2
TileInfo#.Columns&=3--Anzahl Spalten als Extra-Zeilen
Tiles#.x1& =1--Info
Tiles#.x2& =2--Extra
Tiles#.x3& =3--Daten
sendmessage(Lv&,(~LVM_FIRST+164),0,TileInfo#)--LVM_SETTILEINFO
while 1
waitinput
case %umessage=16:break-------Ende
endwhile
case IcoList&:~ImageList_Destroy(IcoList&)
dispose Tiles#
dispose TileInfo#
dispose TileView#
CompileMarkSeparation****************** ListView-demonstration: Grouping
****************** XProfan 10 / windows XP
****************** © by TCS (Uwe Pascal Niemeier) 052007
window 100,10-500,550
usefont MS Sans Serif,15,7,0,0,0
setdialogfont 1
usermessages 16
$H windows.ph
$H commctrl.ph
declare Text#
dim Text#,255
declare LvGroup#
struct LVGROUP=Size&,Mask&,pszHeader&,cchHeader&,pszFooter&,cchFooter&,
GroupId&,StateMask&,State&,Align&
dim LvGroup#,LVGROUP
LvGroup#.Size&=sizeof(LvGroup#)
LvGroup#.Mask&=$11--LVGF_HEADER | LVGF_GROUPID
LvGroup#.pszHeader&=Text#
declare Lv#
struct Lv=Mask&,Item&,x#(32),GroupID&
dim Lv#,Lv
Lv#.Mask&=$100--LVIF_GROUPID
var Lv&=create(gridbox,%hwnd,a;0;50;b;0;50;c;0;50;d;0;50;e;0;50,0,10,10,300,310)
sendmessage(Lv&,(~LVM_FIRST+157),1,0)--LVM_ENABLEGROUPVIEW (Grouping one/from)
~MultiByteToWideChar(0,0,Test,-1,Text#,255)-------------group 1 lay out
LvGroup#.GroupId&=111
sendmessage(Lv&,(~LVM_FIRST+145),-1,LvGroup#)--LVM_INSERTGROUP
~MultiByteToWideChar(0,0,Nochn Test,-1,Text#,255)------group 1 lay out
LvGroup#.GroupId&=222
sendmessage(Lv&,(~LVM_FIRST+145),-1,LvGroup#)--LVM_INSERTGROUP
addstring(Lv&,name 1|Info 1|Extra 1|data 1|Text 1)
addstring(Lv&,name 2|Info 2|Extra 2|data 2|Text 2)
addstring(Lv&,name 3|Info 3|Extra 3|data 3|Text 3)
Lv#.Item&=0-------------------------------------row 0
Lv#.GroupID&=111
sendmessage(Lv&,~LVM_SETITEM,0,Lv#)
Lv#.Item&=1-------------------------------------row 1
Lv#.GroupID&=222
sendmessage(Lv&,~LVM_SETITEM,0,Lv#)
Lv#.Item&=2-------------------------------------row 2
Lv#.GroupID&=111
sendmessage(Lv&,~LVM_SETITEM,0,Lv#)
while 1
waitinput
case %umessage=16:break-------end
endwhile
SeeYou Pascal |
| | | | |
| | Dieter Zornow | Hmm, the there already long as Program on of my Website in reinem Profan
greetings from Bangkok
Dieter |
| | | Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2 | 05/25/07 ▲ |
| |
| | | Dieter Zornow
Hmm, the there already long as Program on of my Website in reinem Profan
greetings from Bangkok
Dieter
Hello Dieter - clear there already much properly on the jeweiligen Websites - there be I me integrally sure. only whom uses it was to know the it much gives - without to know - where one it finds. target of my Snippet-Area here's it Yes even very this Umstand To eliminating.
from this reason have I Specifically here for these Rubrik the system beigebracht komfortabel Snippets a Post and b find to and c suchmaschinenoptimiert The contents too Seitenübergreifend bereitzustellen.
it has means another quality something on the own Homepage To post - or it into extra for this object geformtes system einzutragen. I mean the at best both mutants synchon betrieben go. On well german that Codes on the jeweiligen Homepages to find are - and here in the system - not lastly because here too each Codesnippet a own Thread own and weitergeformt/debatiert go can. |
| | | | |
|
Zum QuelltextThemeninformationenthis Topic has 3 subscriber: |