Jump to content

Recommended Posts

Posted (edited)

A TIP appears when I hover over an element.
I want to avoid displaying the TIP.

I know I can increase the column width, but the goal is for the column to be, and remain, smaller than its content.

To disable this, I've already tried removing the extended INFOTIP style.
With no success.

Here is repro script:

#Region ; *** Dynamically added Include files ***
#include <GuiListView.au3>                                   ; added:05/11/26 04:58:01
#EndRegion ; *** Dynamically added Include files ***
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <MsgBoxConstants.au3>
#include <WindowsStylesConstants.au3>

Example()

Func Example()
    GUICreate("listview items", 220, 250, 100, 200, -1, $WS_EX_ACCEPTFILES)
    GUISetBkColor(0x00E0FFFF) ; will change background color

    Local $idListview = GUICtrlCreateListView("col1  |col2|col3  ", 10, 10, 200, 150, BitOR(0, $LVS_SINGLESEL), BitXOR(BitOR($LVS_EX_DOUBLEBUFFER, $WS_EX_LEFTSCROLLBAR, $LVS_EX_FULLROWSELECT, $LVS_EX_GRIDLINES), $LVS_EX_INFOTIP))
    GUICtrlCreateListViewItem("item1|col12 121212121212|col13", $idListview)
    _GUICtrlListView_SetColumnWidth($idListview, 1, 50)

    GUISetState(@SW_SHOW)

    ; Loop until the user exits.
    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                ExitLoop

        EndSwitch
    WEnd
EndFunc   ;==>Example

 

How to do that well? 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Posted (edited)

Another modified example - still no success :(

 

#include <GUIConstantsEx.au3>
#include <GuiListView.au3>
#include <ListViewConstants.au3>
#include <MsgBoxConstants.au3>
#include <WindowsStylesConstants.au3>

Example()

Func Example()
    GUICreate("listview items", 220, 250, 100, 200, -1, $WS_EX_ACCEPTFILES)
    GUISetBkColor(0x00E0FFFF) ; will change background color

    Local $idListview = GUICtrlCreateListView("col1  |col2|col3  ", 10, 10, 200, 150, BitOR(0, $LVS_SINGLESEL), BitXOR(BitOR($LVS_EX_DOUBLEBUFFER, $WS_EX_LEFTSCROLLBAR, $LVS_EX_FULLROWSELECT, $LVS_EX_GRIDLINES), $LVS_EX_INFOTIP))
    _GUICtrlListView_SetExtendedListViewStyle($idListView, 0, $LVS_EX_INFOTIP)
    GUICtrlCreateListViewItem("item1|col12 121212121212|col13", $idListview)
    _GUICtrlListView_SetColumnWidth($idListview, 1, 50)
    GUISetState(@SW_SHOW)

    ; Loop until the user exits.
    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                ExitLoop

        EndSwitch
    WEnd
EndFunc   ;==>Example

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Posted

hmm.... still no success:

#include <GUIConstantsEx.au3>
#include <GuiListView.au3>
#include <ListViewConstants.au3>
#include <MsgBoxConstants.au3>
#include <WindowsStylesConstants.au3>

;~ #AutoIt3Wrapper_UseX64=Y
#AutoIt3Wrapper_UseX64=N

Example()

Func Example()
    GUICreate("listview items", 220, 250, 100, 200, -1, $WS_EX_ACCEPTFILES)
    GUISetBkColor(0x00E0FFFF) ; will change background color

    Local $idListview = GUICtrlCreateListView("col1  |col2|col3  ", 10, 10, 200, 150, BitOR(0, $LVS_SINGLESEL), BitXOR(BitOR($LVS_EX_DOUBLEBUFFER, $WS_EX_LEFTSCROLLBAR, $LVS_EX_FULLROWSELECT, $LVS_EX_GRIDLINES), $LVS_EX_INFOTIP))
;~  _GUICtrlListView_SetExtendedListViewStyle($idListview, 0, $LVS_EX_INFOTIP)
    Local $CURRENT = _GUICtrlListView_GetExtendedListViewStyle($idListview)
    ConsoleWrite("CURRENT:" & @CRLF & @TAB & Binary($CURRENT) & @CRLF)
    ConsoleWrite("$LVS_EX_INFOTIP:" & @CRLF & @TAB & Binary($LVS_EX_INFOTIP) & @CRLF)
    ConsoleWrite("BitOR:" & @CRLF & @TAB & Binary(BitOR($CURRENT, $LVS_EX_INFOTIP)) & @CRLF)
    ConsoleWrite("BitXOR:" & @CRLF & @TAB & Binary(BitXOR($CURRENT, $LVS_EX_INFOTIP)) & @CRLF)
    _GUICtrlListView_SetExtendedListViewStyle($idListview, BitXOR($CURRENT, $LVS_EX_INFOTIP))
    GUICtrlCreateListViewItem("item1|col12 121212121212|col13", $idListview)
    _GUICtrlListView_SetColumnWidth($idListview, 1, 50)
    GUISetState(@SW_SHOW)

    ; Loop until the user exits.
    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                ExitLoop

        EndSwitch
    WEnd
EndFunc   ;==>Example

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Posted


The issue is realted to $WS_EX_LEFTSCROLLBAR 
without $WS_EX_LEFTSCROLLBAR I was able to get rid of TIP :

#include <GUIConstantsEx.au3>
#include <GuiListView.au3>
#include <ListViewConstants.au3>
#include <MsgBoxConstants.au3>
#include <WindowsStylesConstants.au3>

;~ #AutoIt3Wrapper_UseX64=Y
#AutoIt3Wrapper_UseX64=N

Example()

Func Example()
    GUICreate("listview items", 220, 250, 100, 200, -1, $WS_EX_ACCEPTFILES)
    GUISetBkColor(0x00E0FFFF) ; will change background color

    Local $idListview = GUICtrlCreateListView("col1  |col2|col3  ", 10, 10, 200, 150, BitOR(0, $LVS_SINGLESEL), Binary(BitXOR(BitOR($LVS_EX_DOUBLEBUFFER, $WS_EX_LEFTSCROLLBAR, $LVS_EX_FULLROWSELECT, $LVS_EX_GRIDLINES), $LVS_EX_INFOTIP)))
;~  _GUICtrlListView_SetExtendedListViewStyle($idListview, 0, $LVS_EX_INFOTIP)
    Local $iStyle = _GUICtrlListView_GetExtendedListViewStyle($idListview)
    ConsoleWrite("CURRENT:" & @CRLF & @TAB & Binary($iStyle) & @CRLF)
    ConsoleWrite("$WS_EX_LEFTSCROLLBAR:" & @CRLF & @TAB & Binary($WS_EX_LEFTSCROLLBAR) & @CRLF)
    ConsoleWrite("$LVS_EX_INFOTIP:" & @CRLF & @TAB & Binary($LVS_EX_INFOTIP) & @CRLF)
    ConsoleWrite("BitOR:" & @CRLF & @TAB & Binary(BitOR($iStyle, $LVS_EX_INFOTIP)) & @CRLF)
    ConsoleWrite("BitXOR:" & @CRLF & @TAB & Binary(BitXOR($iStyle, $LVS_EX_INFOTIP)) & @CRLF)
    ConsoleWrite("BitAND:" & @CRLF & @TAB & Binary(BitAND($iStyle, BitNOT($LVS_EX_INFOTIP))) & @CRLF)
;~  _GUICtrlListView_SetExtendedListViewStyle($idListview, BitXOR($iStyle, $LVS_EX_INFOTIP))
    _GUICtrlListView_SetExtendedListViewStyle($idListview, BitAND($iStyle, BitNOT($LVS_EX_INFOTIP)))
    GUICtrlCreateListViewItem("item1|col12 121212121212|col13", $idListview)
    _GUICtrlListView_SetColumnWidth($idListview, 1, 50)
    GUISetState(@SW_SHOW)

    ; Loop until the user exits.
    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                ExitLoop

        EndSwitch
    WEnd
EndFunc   ;==>Example

 

Is it possible to avoit TIP also when using $WS_EX_LEFTSCROLLBAR ?

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Posted (edited)

It looks like $WS_EX_LEFTSCROLLBAR and $LVS_EX_LABELTIP have the same values.

But what is strange $WS_EX_LEFTSCROLLBAR works.

And solution is to disable exStyles after ListView is already created now the only one to do is like this:

Local $iStyle = _GUICtrlListView_GetExtendedListViewStyle($g_idListView)
$iStyle = BitAND($iStyle, BitNOT($LVS_EX_INFOTIP), BitNOT($LVS_EX_LABELTIP))
_GUICtrlListView_SetExtendedListViewStyle($g_idListView, $iStyle)

example:

#include <GUIConstantsEx.au3>
#include <GuiListView.au3>
#include <ListViewConstants.au3>
#include <MsgBoxConstants.au3>
#include <WindowsStylesConstants.au3>

;~ #AutoIt3Wrapper_UseX64=Y
#AutoIt3Wrapper_UseX64=N

Global $g_idListView
Example()

Func Example()
    GUICreate("listview items", 220, 250, 100, 200, -1)
    GUISetBkColor(0x00E0FFFF) ; will change background color

    $g_idListView = GUICtrlCreateListView("col1  |col2|col3  ", 10, 10, 200, 150, BitOR(0, $LVS_SINGLESEL), BitXOR(BitOR($LVS_EX_DOUBLEBUFFER, $WS_EX_LEFTSCROLLBAR, $LVS_EX_FULLROWSELECT, $LVS_EX_GRIDLINES), $LVS_EX_INFOTIP))
;~  _GUICtrlListView_SetExtendedListViewStyle($g_idListView, 0, $LVS_EX_INFOTIP)
    Local $iStyle = _GUICtrlListView_GetExtendedListViewStyle($g_idListView)
;~  ConsoleWrite("! $iStyle:" & @CRLF & @TAB & Binary($iStyle) & @CRLF)
;~  ConsoleWrite("$WS_EX_LEFTSCROLLBAR:" & @CRLF & @TAB & Binary($WS_EX_LEFTSCROLLBAR) & @CRLF)
;~  ConsoleWrite("$LVS_EX_LABELTIP:" & @CRLF & @TAB & Binary($LVS_EX_LABELTIP) & @CRLF)
;~  ConsoleWrite("$LVS_EX_INFOTIP:" & @CRLF & @TAB & Binary($LVS_EX_INFOTIP) & @CRLF)
;~  ConsoleWrite("BitOR:" & @CRLF & @TAB & Binary(BitOR($iStyle, $LVS_EX_INFOTIP)) & @CRLF)
;~  ConsoleWrite("BitXOR:" & @CRLF & @TAB & Binary(BitXOR($iStyle, $LVS_EX_INFOTIP)) & @CRLF)
;~  ConsoleWrite("BitAND 1:" & @CRLF & @TAB & Binary(BitAND($iStyle, BitNOT($LVS_EX_INFOTIP))) & @CRLF)
;~  ConsoleWrite("BitAND 2:" & @CRLF & @TAB & Binary(BitAND($iStyle, BitNOT($LVS_EX_LABELTIP))) & @CRLF)
;~  _GUICtrlListView_SetExtendedListViewStyle($g_idListView, BitXOR($iStyle, $LVS_EX_INFOTIP))
    $iStyle = BitAND($iStyle, BitNOT($LVS_EX_INFOTIP), BitNOT($LVS_EX_LABELTIP))
    _GUICtrlListView_SetExtendedListViewStyle($g_idListView, $iStyle)
;~  $iStyle = _GUICtrlListView_GetExtendedListViewStyle($g_idListView)
;~  ConsoleWrite("! $iStyle:" & @CRLF & @TAB & Binary($iStyle) & @CRLF)
;~  $iStyle = BitAND($iStyle, BitNOT($LVS_EX_LABELTIP))
;~  _GUICtrlListView_SetExtendedListViewStyle($g_idListView, $iStyle)
    $iStyle = _GUICtrlListView_GetExtendedListViewStyle($g_idListView)
    ConsoleWrite("! $iStyle:" & @CRLF & @TAB & Binary($iStyle) & @CRLF)
    GUICtrlCreateListViewItem("item1|col12 121212121212|col13", $g_idListView)
    GUICtrlCreateListViewItem("item1|col12 121212121212|col13", $g_idListView)
    GUICtrlCreateListViewItem("item1|col12 121212121212|col13", $g_idListView)
    GUICtrlCreateListViewItem("item1|col12 121212121212|col13", $g_idListView)
    GUICtrlCreateListViewItem("item1|col12 121212121212|col13", $g_idListView)
    GUICtrlCreateListViewItem("item1|col12 121212121212|col13", $g_idListView)
    GUICtrlCreateListViewItem("item1|col12 121212121212|col13", $g_idListView)
    GUICtrlCreateListViewItem("item1|col12 121212121212|col13", $g_idListView)
    GUICtrlCreateListViewItem("item1|col12 121212121212|col13", $g_idListView)
    GUICtrlCreateListViewItem("item1|col12 121212121212|col13", $g_idListView)
    GUICtrlCreateListViewItem("item1|col12 121212121212|col13", $g_idListView)
    _GUICtrlListView_SetColumnWidth($g_idListView, 1, 50)
    GUISetState(@SW_SHOW)

;~  GUIRegisterMsg($WM_NOTIFY, WM_NOTIFY)

    ; Loop until the user exits.
    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                ExitLoop

        EndSwitch
    WEnd
EndFunc   ;==>Example


Func WM_NOTIFY($hWnd, $iMsg, $wParam, $lParam)
    #forceref $hWnd, $iMsg, $wParam, $lParam

    Local $tNMHDR = DllStructCreate($tagNMHDR, $lParam)

    Local $hwndFrom = HWnd(DllStructGetData($tNMHDR, "hWndFrom"))
    Local $code = DllStructGetData($tNMHDR, "Code")

    If $hwndFrom = GUICtrlGetHandle($g_idListView) Then
        Switch $code
            Case $LVN_GETINFOTIPW

                ; NMLVGETINFOTIP
                Local $tInfoTip = DllStructCreate( _
                        "hwnd hWndFrom;" & _
                        "uint_ptr IDFrom;" & _
                        "int Code;" & _
                        "ptr pszText;" & _
                        "int cchTextMax;" & _
                        "int iItem;" & _
                        "int iSubItem;" & _
                        "lparam lParam", _
                        $lParam)

                DllStructSetData( _
                        DllStructCreate("wchar[" & _
                        DllStructGetData($tInfoTip, "cchTextMax") & "]", _
                        DllStructGetData($tInfoTip, "pszText")), _
                        1, "")
                ConsoleWrite("! " & @ScriptLineNumber & @CRLF)

                Return $CDRF_SKIPDEFAULT
        EndSwitch
    EndIf

    Return $GUI_RUNDEFMSG

EndFunc   ;==>WM_NOTIFY

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...