English
Source / code snippets

Bcmsetnote Button Cbsetcuebanner Commandlink Control Cuebanner Emsetcuebanner Styles Vista Win7

 
who hats made up? Andreas Miethe!

some Control-Styles The ex Vista functions:


CompileMarkSeparation
 $H Windows.ph
 $H Messages.ph
Struct Rect = left&,top&,right&,bottom&
Struct BUTTON_IMAGELIST = himl&,margin!Rect,uAlign&
DEF &EM_SETCUEBANNER $1501
DEF &CB_SETCUEBANNER $1703
DEF &BS_COMMANDLINK $0000000E
DEF &BCM_SETNOTE $00001609
Var Ende& = 0
CLS ~GetSysColor(~COLOR_BTNFACE)
SetDialogFont ~GetStockObject(~ANSI_VAR_FONT)
'Edit mit CueBanner ( funktioniert ab XP )
Var Edit&   = Create("Edit",%hwnd,"",10,10,200,24)
SendMessage(Edit&,&EM_SETCUEBANNER,0,WideString("gib was ein"))
'ComboBox mit CueBanner (funktioniert ab Vista )
Var Choice& = Create("ChoiceBox",%hwnd,2,10,40,200,200)
SendMessage(Choice&,&CB_SETCUEBANNER,0,WideString("triff deine Wahl"))
'Button als CommandLink (funktioniert ab Vista )
Var Button& = Control("BUTTON","Commandlink",~WS_CHILD | ~WS_VISIBLE | &BS_COMMANDLINK ,10,110,Width(%hwnd)-20,70,%hwnd,1000,%hInstance)
Var Notiz& = WideString("Button mit Notiz und automatischem Zeilenumbruch bei zu langen Hinweistexten. Ist ganz praktisch, man muss den Text nicht mehr selber, von Hand, umbrechen !")
SendMessage(Button&,&BCM_SETNOTE,0,Notiz&)
'Button als CommandLink (funktioniert ab Vista )
Var Button1& = Control("BUTTON","OwnerDraw und anderes Icon",~WS_CHILD | ~WS_VISIBLE | ~BS_OWNERDRAW | &BS_COMMANDLINK ,10,200,Width(%hwnd)-20,70,%hwnd,1001,%hInstance)
SendMessage(Button1&,&BCM_SETNOTE,0,Notiz&)
SendMessage(Button1&,~BM_SETIMAGE,1,~Loadicon(%hInstance,"A"))
'Button mit Icon und Text (funktioniert ab Vista )
Var Button2& = Create("BUTTON",%hwnd,"Button mit Icon",10,300,150,48)
SendMessage(Button2&,~BM_SETIMAGE, 1, ~LoadIcon(%hInstance,"eimer"))
'Button mit Imagelist und Text (funktioniert ab Vista )
Var Normal_Button_IL& = Control("BUTTON","Button mit Imagelist",~WS_CHILD | ~WS_VISIBLE | $0000000E ,210,300,200,28,%hwnd,1003,%hInstance)
'Bitmap für die Imageliste erstellen
Var BMP& = Create("hNewPic",80,16,0)
StartPaint bmp&
Usebrush 1,$FF
Ellipse 0,0-16,16
Usebrush 1,$FFFF
Ellipse 16,0-32,16
Usebrush 1,$FF00
Ellipse 32,0-48,16
Usebrush 1,$FF
Ellipse 48,0-64,16
Usebrush 1,$FF
Ellipse 64,0-80,16
EndPaint
'Imageliste mit dem Bitmap erstellen
var hIL& = @Create("ImageList", 16,16, Bmp&,0)
'das Bitmap brauchen wird nicht mehr
DeleteObject Bmp&
Var BIL# = New(BUTTON_IMAGELIST)
BIL#.himl& = hIL&,BIL#.Rect!left& = 0
BIL#.himl& = hIL&,BIL#.Rect!top& = 0
BIL#.himl& = hIL&,BIL#.Rect!right& = 0
BIL#.himl& = hIL&,BIL#.Rect!bottom& = 0
BIL#.uAlign& = 0'LINKS
'BIL#.uAlign& = 1 'RECHTS
'BIL#.uAlign& = 2 'OBEN
'BIL#.uAlign& = 3 'UNTEN
'BIL#.uAlign& = 4 'ZENTRIERT
SendMessage(Normal_Button_IL&,$1602,0,BIL#)
Dispose BIL#

WhileNot Ende&

    Waitinput

EndWhile

Proc WideString

    Parameters S$ : Declare w# : Dim w#,(Len(s$)*2)+2 : StringW w#,0 = S$ : Return w#

4 href='./../../Function-References/XProfan/endproc/'>ENDPROC


9 kB
Hochgeladen:10/26/10
Downloadcounter265
Download
 
10/26/10  
 




Julian
Schmidt
Very geile Controls, particularly the "Commandlink". Schade the not under WinXP functions.
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
12/11/11  
 



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

6.871 Views

Untitledvor 0 min.
p.specht11/21/21
R.Schneider11/20/21
Uwe Lang11/20/21
Manfred Barei11/19/21
More...

Themeninformationen

this Topic has 2 subscriber:

Julian Schmidt (1x)
iF (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