English
Forum

List view Headerbuttons; List view alla Excel

 
- Page 1 -



Julian
Schmidt
Hi,
i'd gladly one List view with sowohl horizontalen as well as vertikalen Spalt-, Zeilenbuttons create.
with whom Zeilenbuttons is me beside the point whether one the level and wide by mouse change can or not. Also is the horizontale Sort Itemtexte unnötigt.
How can such a thing release?

LG

Julian57
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
06/28/12  
 



 
- Page 4 -


« this Posting watts as Solution marked. »

- Page 3 -



Andreas
Miethe


Julian57 (02.07.12)

hmmm......well. only How get to the area to Text-Input ausgeblendet. and the Skalierbarkeit by mouse suppress? Also must The "Sortierungspfeile" not absolutely staid his.


whom Style Change !
CompileMarkSeparation
Def &HDM_INSERTITEMA $00001201
def CreateWindowEx(12) !"User32","CreateWindowExA"
decimals 0
cls
var hwndHeader&=createWindowEx(0,"SysHeader32","",$50800802, 0, 0, 0, 0, %hWnd,0,%hInstance, 0)
declare txt#
dim txt#,64
string txt#,0="Hallo Welt"
declare hditem#
dim hditem#,28
long hditem#,0=$43,200,txt#,0,64,$4000,0
sendMessage(hwndHeader&,&hdm_insertItemA,0,hdItem#)
string txt#,0="Hallo Karl"
long hditem#,0=$43,200,txt#,0,64,$4000,0
sendMessage(hwndHeader&,&hdm_insertItemA,1,hdItem#)
SetWindowPos hwndHeader&=10,10 - 400,32
dispose hditem#

while 1

    waitinput

wend

end
 
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
07/02/12  
 




Julian
Schmidt
was straight dran whom Style for my tack ex To Change, and then is Andreas still faster.
sees well from! thanks!
something for my tack minimalisiert....
CompileMarkSeparation
cls
CreateHeaderButton(%hwnd,"Test",10,10,200,30)

while 1

    waitinput

EndWhile

end

Proc CreateHeaderButton

    Parameters hdl&,text$,x1&,y1&,x2&,y2&
    var hwndHeader&=External("User32","CreateWindowExA",0,"SysHeader32","",$50000802, 0, 0, 0, 0, hdl&,0,%hInstance, 0)
    declare txt#
    dim txt#,64
    string txt#,0=text$
    declare hditem#
    dim hditem#,28
    long hditem#,0=$43,x2&,txt#,0,64,$4000,0
    sendMessage(hwndHeader&,$00001201,0,hdItem#)
    SetWindowPos hwndHeader&=x1&,y1& - x2&,y2&
    dispose hditem#
    Return hwndHeader&

ENDPROC

 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
07/02/12  
 




Julian
Schmidt
Hi,
I have the whole now time next to my List view staid and would yet gladly a couple adjustments to take.
to that a would I the Text in my "künstlichen" Headerbutton Centered report. to that second my List view so modify, the it none welt(WS_Border) has.
so sees everything momentarily from.



here time everything into archive gepackt.
Download

which Font(-manner,-Size) becomes standardmäßig for the List view akin? i'd these too gladly for my Headerbutton use!

LG

Julian57

28 kB
Hochgeladen:07/02/12
Downloadcounter63
Download
42 kB
Hochgeladen:07/02/12
Downloadcounter69
Download
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
07/02/12  
 



Schauma:
CompileMarkSeparation
Def GetSysColor(1) !"USER32","GetSysColor"
Def &button_height 26
def &line_height 25
 $I Listview_Funktionen.inc
Var lvdll&=usedll("Listview.dll")
CLS GetSysColor(15)
Var dg_listview&=Control("DIALOG","",$50800000,10,10,35+(50*5),(&button_height*13)+2,%hwnd,0,%hinstance,$0)
Showwindow(dg_listview&,1)
Var listview&=CreateListView(dg_listview&,%hinstance,0,RGB(255,255,255),-1,$401)
'SetStyle listview&, GetStyle(listview&)-$800000
InsertColumn listview&,"",0,0

Whileloop 5

    InsertColumn listview&,Str$(&loop),50,2

Endwhile

Whileloop 13

    CreateHeaderButton(dg_listview&,If(&loop=1,"",Str$(&loop-1)),0,&button_height*(&loop-1),30,&button_height)

EndWhile

Var freelist&=SetLineHeight(listview&,&line_height)

whileloop 0,11*5,5

    SetItem listview&,Str$(&loop),Str$(&loop+1),Str$(&loop+2),Str$(&loop+3),Str$(&loop+4),Str$(&loop+5)

EndWhile

ShowListView(listview&,30,0,width(dg_listview&),height(dg_listview&))
InitMessages(dg_listview&)

WhileNot (%key=2)

    waitinput

EndWhile

DestroyImageList(freelist&)
CloseMessages(dg_listview&)
freedll lvdll&
 $I Listview_Dispose.inc
End

Proc CreateHeaderButton

    Parameters hdl&,text$,x1&,y1&,x2&,y2&
    var hwndHeader&=External("User32","CreateWindowExA",0,"SysHeader32","",$50000802, 0, 0, 0, 0, hdl&,0,%hInstance, 0)
    declare txt#
    dim txt#,64
    string txt#,0=text$
    declare hditem#
    dim hditem#,28
    long hditem#,0=$43,x2&,txt#,0,64,$4002,0
    setfont hwndHeader&,external("gdi32","GetStockObject",17)
    sendMessage(hwndHeader&,$00001201,0,hdItem#)
    SetWindowPos hwndHeader&=x1&,y1& - x2&,y2&
    dispose hditem#
    Return hwndHeader&

./../../Function-References/XProfan/endproc/'>ENDPROC


from:
CompileMarkSeparation
long hditem#,0=$43,x2&,txt#,0,64,$4000,0

watts:
CompileMarkSeparation
long hditem#,0=$43,x2&,txt#,0,64,$4002,0
setfont hwndHeader&,external("gdi32","GetStockObject",17)

17=DEFAULT_GUI_FONT

Centered by $4002 instead of 4000:



Rechtsbündig would $4001.

28 kB
Hochgeladen:07/02/12
Downloadcounter70
Download
 
07/02/12  
 




Julian
Schmidt
and concerning the Rahmens?
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
07/02/12  
 



sees well eh tributary of Topic from:





so Gibts well with XP as well as with XP without "visueller Stil" quite none welt.
CompileMarkSeparation
def SetWindowTheme(3) !"uxtheme.dll","SetWindowTheme"
SetWindowTheme(CreateHeaderButton(%hwnd,"Test",10,10,200,30),"","")e>

Perhaps. still plainer Bitmap-Controls To use?

1 kB
Hochgeladen:07/03/12
Downloadcounter148
Download
5 kB
Hochgeladen:07/03/12
Downloadcounter128
Download
 
07/03/12  
 




Julian
Schmidt
so beantwortest You my question not. These related not a Headerbutton separate the List view.
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
07/03/12  
 



Entferne time whom advanced Style ws_ex_staticEdge...

I hope I have your question now answers.
 
07/03/12  
 




Julian
Schmidt
bring unfortunately none success.
CompileMarkSeparation
SetStyle listview&, 1, GetStyle(listview&,1)-20000
>
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
07/03/12  
 



Hi!

Kanns on the Handy eh not testing but ws_ex_staticEdge = $20000.

can also his the You this Style not as an afterthought Remove can and the
Control same with corresponding Style create müsstest.
 
07/03/12  
 




Julian
Schmidt
with...
CompileMarkSeparation
SetStyle listview&, 1, GetStyle(listview&,1)-$20000
>
functions likewise not. having I in übrigen already ausprobiert.

If I the control same without whom Style create, can I on the List view immernoch functions list view.dll utilize?
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
07/03/12  
 



Erstellst You now already the control same with the desired Style?
 
07/03/12  
 




Julian
Schmidt
Yes I have it hinbekommen. thanks.
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
07/03/12  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

38.360 Views

Untitledvor 0 min.
Member 154727709/23/18
Peter Max Müller11/02/17
Ernst07/28/16
Uwe Lang07/22/16
More...

Themeninformationen



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