English
Forum

Tooltip for a row one Listviews settle

 
- Page 1 -



Julian
Schmidt
Hi,
can somehow of/ one row one Listviews a designed Tooltip allocate?
Greeting
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

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



 
- Page 2 -


Try simply from:
CompileMarkSeparation
something like:
CompileMarkSeparation
declare m#
dim m#,20
long m#,0=20,0,"Test",0,0
sendmessage(lv&,LVM_SETINFOTIP,0,m#)
dispose m#

ungetestet
 
02/19/12  
 




Julian
Schmidt
there comes..

Error in structure- or Klassendefinition CBSIZE

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

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



The View source needed but these (fehlerhafte) Struct-row not.
CompileMarkSeparation
 
02/19/12  
 




Julian
Schmidt
shining nevertheless not To functions...
CompileMarkSeparation
Def GetSysColor(1) !"USER32","GetSysColor"
 $I Listview_Funktionen.inc
var lvdll&=usedll("Listview.dll")
cls GetSysColor(15)
var listview&=CreateListView(%hwnd,%hinstance,0,GetSysColor(15),-1,$431)

whileloop 10

    InsertColumn listview&,"Spalte"+STr$(&loop)-1,50,0

Endwhile

whileloop 30

    SetItem listview&,"Text1","Text2","Text3","Text4","Text5","Text6","Text7","Text8","Text9"

Endwhile

ShowListView(listview&,0,0,width(%hwnd),height(%hwnd))
Declare m#
Dim m#,20
Long m#,0=20,0,"Test",0,0
Sendmessage(listview&,4096+173,0,m#)
Dispose m#
InitMessages(%hwnd)

While 1

    waitinput

Endwhile

CloseMessages(%hwnd)
freedll lvdll&
 $I Listview_Dispose.inc
end
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

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



load time one complete proposition high (if you The listview.dll uses) or a View source the without DLL auskommt.
 
02/19/12  
 




Julian
Schmidt
OK...
Download

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

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




Thomas
Freier
with the List view.dll and TTIP.pcu can still right simply crazy Tooltips create.



or without TTIP.pcu
CompileMarkSeparation
 $I Listview_Funktionen.inc
var lvdll&=usedll("Listview.dll")
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' (W) 2003 Frank Abbing
'
Declare bereich#,be#,erg&,erg2&,x&,y&,text$
Dim be#,8
Dim bereich#,1024
DEF GetCursorPos(1) !"USER32","GetCursorPos"
DEF WindowFromPoint(2) !"USER32","WindowFromPoint"
DEF ChildWindowFromPoint(3) !"USER32","ChildWindowFromPoint"
Def GetSysColor(1) !"USER32","GetSysColor"
Def ScreenToClient(2) !"USER32","ScreenToClient"
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SetTrueColor 1
cls GetSysColor(15)
var listview&=CreateListView(%hwnd,%hinstance,-1,9356944,-1,$20)
InsertColumn listview&,"1.Spalte",120,0
InsertColumn listview&,"2.Spalte",120,0

Whileloop 50

    AddString(listview&,"mit|HERZ  "+str$(&loop))

wend

'Liste Tooltips
vaR LB%=CreateListBox(%hwnd,0,0,0,0,0)

Whileloop GetCount(listview&)

    AddString(LB%,"Tooltip "+str$(&loop))

wend

var ToolTip&=create("Tooltip",%hwnd,listview&,"")
' Zeilenhöhe im Listview festlegen oder ermitteln und in einer Variablen speichern
' für die spätere Berechnung: Curserposition ist in Zeile
var freelist&=SetLineHeight(listview&,20)
ShowListView(listview&,10,160,400,200)
Declare ZeileO&,ZeileU&,x%,y%,xold%
Usermessages 16
SubClass listview&, 1

while 1

    waitinput
    case %umessage=16 :BREAK

wend

SubClass listview&, 0
DestroyWindow(%hwnd)
DestroyImageList(freelist&)
dispose be#
dispose bereich#
freedll lvdll&
end

SubClassProc

    Clear bereich#
    GetVisibleLines(listview&,bereich#)
    ZeileO&=Long(bereich#,0)'Obere sichtbare Zeile
    ZeileU&=Long(bereich#,4)'Untere sichtbare Zeile
    GetCursorPos(be#)
    x&=Long(be#,0)
    y&=Long(be#,4)
    erg&=@WindowFromPoint(x&,y&)

    If erg&<>0

        ScreenToClient(erg&,be#)
        x&=Long(be#,0)'Maus Position X
        y&=Long(be#,4)'Maus Position Y
        erg2&=@ChildWindowFromPoint(erg&,x&,y&)'Handle unter Mauszeiger

    EndIf

    x%= int((y&/21)-1+ZeileO&)'Zeile= Mausposition/ Zeilenhöhe+1(=Raster)

    if x%<>xold%

        settext ToolTip&,%hwnd,Listview&,""

        If erg&=Listview&

            settext ToolTip&,%hwnd,Listview&,getstring$(LB%,x%)
            xold%=x%

        EndIf

    EndIf

    Set("WinProc",1s=s2>)

ENDPROC


55 kB
Hochgeladen:02/19/12
Downloadcounter115
Download
15 kB
Hochgeladen:02/19/12
Downloadcounter74
Download
 
Gruß Thomas
Windows XP SP2, XProfan X2
02/19/12  
 




Julian
Schmidt
already, nevertheless is the lane over Subclassing umständlich
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

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




Thomas
Freier
is naturally too with GetMessage possible.
CompileMarkSeparation
 $I Listview_Funktionen.inc
var lvdll&=usedll("Listview.dll")
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' (W) 2003 Frank Abbing
'
Declare bereich#,be#,erg&,erg2&,x&,y&,text$
Dim be#,8
Dim bereich#,1024
DEF GetCursorPos(1) !"USER32","GetCursorPos"
DEF WindowFromPoint(2) !"USER32","WindowFromPoint"
DEF ChildWindowFromPoint(3) !"USER32","ChildWindowFromPoint"
Def GetSysColor(1) !"USER32","GetSysColor"
Def ScreenToClient(2) !"USER32","ScreenToClient"
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SetTrueColor 1
cls GetSysColor(15)
var listview&=CreateListView(%hwnd,%hinstance,-1,9356944,-1,$20)
InsertColumn listview&,"1.Spalte",120,0
InsertColumn listview&,"2.Spalte",120,0

Whileloop 50

    AddString(listview&,"mit|HERZ  "+str$(&loop))

wend

'Liste Tooltips
vaR LB%=CreateListBox(%hwnd,0,0,0,0,0)

Whileloop GetCount(listview&)

    AddString(LB%,"Tooltip "+str$(&loop))

wend

var ToolTip&=create("Tooltip",%hwnd,listview&,"")
' Zeilenhöhe im Listview festlegen oder ermitteln und in einer Variablen speichern
' für die spätere Berechnung: Curserposition ist in Zeile
var freelist&=SetLineHeight(listview&,20)
ShowListView(listview&,10,160,400,200)
Declare ZeileO&,ZeileU&,x%,y%,xold%
Usermessages 16

while 1

    GetMessage
    case %umessage=16 :BREAK
    GetVisibleLines(listview&,bereich#)
    ZeileO&=Long(bereich#,0)'Obere sichtbare Zeile
    GetCursorPos(be#)
    erg&=@WindowFromPoint(Long(be#,0),Long(be#,4))

    If erg&=Listview&

        ScreenToClient(erg&,be#)
        y&=Long(be#,4)
        x%= int((Long(be#,4)/21)-1+ZeileO&)

        If x%<>xold%

            settext ToolTip&,%hwnd,Listview&,getstring$(LB%,x%)
            xold%=x%

        EndIf

    EndIf

wend

DestroyWindow(%hwnd)
DestroyImageList(freelist&)
dispose be#
dispose bereich#
freedll 
end
 
Gruß Thomas
Windows XP SP2, XProfan X2
02/20/12  
 




Julian
Schmidt
naturally, though would find I the lane over LVM_SETINFOTIP rather. Schade the apparently none white Why these in the example not functions [...] .
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

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



shining neither To klappen if I pszText in the Unicode stature absende.

Try still time the Unicode-ListView-Control -

I faith Nico Madysa having that here at times different to put pictured -

z.B. here ( [...]  ) .
 
02/20/12  
 




Julian
Schmidt
Dass becomes though well hardly with List view.dll compatible his, there take I rather The Variante Thomas.
Thx you all.
Werds now simply install.
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
02/20/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

28.519 Views

Untitledvor 0 min.
Uwe Lang04/13/20
RudiB.08/08/19
H.Brill12/30/18
Member 154727709/23/18
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