English
Forum

different Fonts for listview Image and text in-Header

 

Frank
Abbing
Hi,

here times the one Source, circa different Fonts for listview Image and text in-Header (Spaltentexte) To release. sees somehow class from!

The Source must to the List view-Profancodes the List view.dll Pakets copies go, because it data of there nachlädt.
CompileMarkSeparation
SetErrorlevel 0
Declare bereich#,listview&,lvdll&,text$,bytes&,bereich#,x&,y&,z&,font1&,font2&
Def GetSysColor(1) !"USER32","GetSysColor"
 $I Listview_Funktionen.inc
lvdll&=usedll("Listview.dll")
SetTrueColor 1
Windowstyle 543
Windowtitle "Unterschiedliche Fonts für Listview und Listview-Header..."
Window 0,0-800,600
Cls GetSysColor(15)
font1&=@Create("Font","MS Sans Serif",10,0,0,0,0)
font2&=@Create("Font","Tahoma",24,0,0,0,0)
listview&=CreateListView(%hwnd,%hinstance,0,$FFFFFF,-1,$31)
EnableEdits(listview&,1)
InsertColumn listview&,"Lagercode",64,0
InsertColumn listview&,"Artikelnummer",64,0
InsertColumn listview&,"Warengruppe",148,0
InsertColumn listview&,"Artikelbezeichnung",200,0
InsertColumn listview&,"Artikelbeschreibung",150,0
InsertColumn listview&,"Preis",50,1
AutoSortListview listview&,1,1,1,1,1,2
text$="LVData/C64.csv"
bytes&=@FileSize(text$)

If bytes&>0

    Dim bereich#,bytes&
    ReadFileQuick(addr(text$),bereich#,0,bytes&)
    CsvToListview(listview&,bereich#,bytes&,6)
    Dispose bereich#

EndIf

x&=SendMessage(listview&,$101f,0,0)    LVM_GETHEADER
SetFont listview&,font1&               Font im Gesamt-Listview setzen
SetFont x&,font2&                      Extrafont für Header setzen
ShowListView(listview&,32,32,728,480)
InitMessages(%hwnd)

While 1

    waitinput
    Case %key=2:BREAK

Wend

CloseMessages(%hwnd)
freedll lvdll&
DeleteObject font1&
DeleteObject font2&
 $I Listview_Dispose.inc
/../function-references/XProfan/end/'>End
 
07/29/05  
 




Fernando
Santos
class, Frank

greeting

Pedro
 
Innovative Produkte für Aufzüge
07/30/05  
 




H.Brill
Hi,
i want the users whom Font-selection-
dialog available to put, circa then the
LV whom suitable Font To miss out on.

in the Profan Help Although an example
for dialog (API with Übergabe of/ one structure)
thereby, but How I get the lever the
selected Fonts ? whom Fontnamen and the
Size undergo I Yes from the übergebenen
structure, only the lever not.

has someone one code - shred ?
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
08/07/05  
 




Frank
Abbing
Hi,

hm, really must You only whom Font-Dialogue with ChooseFont (API from the Comdlg32.dll) Call. in the now gefüllten CHOOSEFONT-structure there u.a. whom Zeiger LPLOGFONT. Diesen worth commit You on The API CreateFontIndirect and erhälst so whom lever.
 
08/07/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.080 Views

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