Jump to content



Photo

GuiListView Hiding Behind BG Image


  • Please log in to reply
11 replies to this topic

#1 ame1011

ame1011

    Universalist

  • Active Members
  • PipPipPipPipPip
  • 250 posts

Posted 05 December 2007 - 05:36 PM

AutoIt         
#include <GuiListView.au3> #include <GUIConstants.au3> ;main program $QuickBackupForm = GUICreate("Computer Elite - Quick Backup", 645, 420, 193, 115) $bg = GUICtrlCreatePic("bg_backup.jpg", 0, 0, 645, 420) GUICtrlSetState ( $bg, $GUI_DISABLE ) ;------IMPORT GROUP-------- ;$import_grp = GUICtrlCreateGroup("Open Existing Backup File", 0, 0, 641, 50) $import_createnew = GUICtrlCreateButton("Create New", 10, 17, 90, 25, 0, $WS_EX_TRANSPARENT ) $import_dropdown = GUICtrlCreateCombo("", 110, 16, 300, 25, BitOR($CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL)) GUICtrlSetFont(-1, 12, 400, 0, "Times New Roman") ;populate combo ;~ GUICtrlSetData (-1, _ArrayToString($bat_list, "|", 1)) $import_save = GUICtrlCreateButton("Save", 420, 17, 90, 25, 0, $WS_EX_TRANSPARENT ) $c_default = GUICtrlCreateCheckbox("", 530, 20, 17, 17) GUICtrlSetBkColor(-1, 0x00000020) $import_default_label = GUICtrlCreateLabel("Make Default", 550, 22) GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) ;------ADD GROUP---------- ;$backup_grp = GUICtrlCreateGroup("Add Files/Folders", 0, 51, 641, 70) $source_folders = GUICtrlCreateButton("Select Folder", 430, 65, 100, 25, 0, $WS_EX_TRANSPARENT ) $source_files = GUICtrlCreateButton("Select File(s)", 534, 65, 100, 25, 0, $WS_EX_TRANSPARENT ) $source = GUICtrlCreateInput("", 10, 66, 405, 24) GUICtrlSetFont(-1, 12, 400, 0, "Times New Roman") ;~Checkboxes $c_mydocuments = GUICtrlCreateCheckbox("", 32, 99, 17, 17) GUICtrlSetBkColor(-1, 0x00000020) $c_desktop = GUICtrlCreateCheckbox("", 160, 99, 17, 17) GUICtrlSetBkColor(-1, 0x00000020) $c_favorites = GUICtrlCreateCheckbox("", 272, 99, 17, 17) GUICtrlSetBkColor(-1, 0x00000020) $c_outlook = GUICtrlCreateCheckbox("", 384, 99, 17, 17) GUICtrlSetBkColor(-1, 0x00000020) $c_outlookexpress_windowsmail = GUICtrlCreateCheckbox("", 496, 99, 17, 17) GUICtrlSetBkColor(-1, 0x00000020) $l_mydocuments = GUICtrlCreateLabel("My Documents", 56, 100, 75, 17) GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) $l_desktop = GUICtrlCreateLabel("Desktop", 184, 100, 44, 17) GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) $l_favorites = GUICtrlCreateLabel("Favorites", 296, 100, 47, 17) GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) $l_outlook = GUICtrlCreateLabel("Outlook", 408, 100, 41, 17) GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) if @OSVersion = "WIN_VISTA" Then     $l_outlookexpress_windowsmail = GUICtrlCreateLabel("Windows Mail", 520, 100, 81, 17) Else     $l_outlookexpress_windowsmail = GUICtrlCreateLabel("Outlook Express", 520, 100, 81, 17) EndIf GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) ;--------DESTINATION GROUP--------- ;$dest_grp = GUICtrlCreateGroup("Select Destination", 0,122,641,83) $backup_submit = GUICtrlCreateButton("Update Backup List", 264, 172, 113, 25, 0, $WS_EX_TRANSPARENT ) $dest_button = GUICtrlCreateButton("Select Folder", 550, 141, 85, 25, 0, $WS_EX_TRANSPARENT ) $destination = GUICtrlCreateInput("", 10, 142, 534, 24) GUICtrlSetFont(-1, 12, 400, 0, "Times New Roman") ;----------LIST GROUP----------- ;$list_grp = GUICtrlCreateGroup("Currently on Back-Up List", 0, 208, 641, 209) $list = GUICtrlCreateListView("Source|Destination", 8, 222, 625, 146) _GUICtrlListViewSetColumnWidth ( $list, 0, 310 ) _GUICtrlListViewSetColumnWidth ( $list, 1, 310 ) $generate_button = GUICtrlCreateButton("Backup Now!", 259, 384, 117, 25, 0, $WS_EX_TRANSPARENT ) GUISetState(@SW_SHOW) While 1     $msg = GuiGetMsg()     Select         Case $msg = $GUI_EVENT_CLOSE             Exit     EndSelect WEnd


IMAGE: bg_backup.jpg


When the list column width is changed (click and dragged) the listview hides behind the image.

SEE: http://www.autoitscript.com/forum/index.php?showtopic=58736

Edited by ame1011, 05 December 2007 - 05:36 PM.

I always thought dogs laid eggs, and I learned something today.





#2 Monamo

Monamo

    Sushi

  • Active Members
  • PipPipPipPipPipPip
  • 476 posts

Posted 05 December 2007 - 05:48 PM

Try adding:
GUICtrlSetState($list,$GUI_ONTOP)


... right after the line creating your listview item.
- MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window TracerNew!

#3 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 8,925 posts

Posted 05 December 2007 - 08:56 PM

could you use the official release so we can help you

#4 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 06 December 2007 - 10:23 AM

could you use the official release so we can help you

only need to change 2 lines to use current release.

AutoIt         
#include <GuiListView.au3> #include <GUIConstants.au3> ;main program $QuickBackupForm = GUICreate("Computer Elite - Quick Backup", 645, 420, 193, 115) $bg = GUICtrlCreatePic("bg_backup.jpg", 0, 0, 645, 420) GUICtrlSetState ( $bg, $GUI_DISABLE ) ;------IMPORT GROUP-------- ;$import_grp = GUICtrlCreateGroup("Open Existing Backup File", 0, 0, 641, 50) $import_createnew = GUICtrlCreateButton("Create New", 10, 17, 90, 25, 0, $WS_EX_TRANSPARENT ) $import_dropdown = GUICtrlCreateCombo("", 110, 16, 300, 25, BitOR($CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL)) GUICtrlSetFont(-1, 12, 400, 0, "Times New Roman") ;populate combo ;~ GUICtrlSetData (-1, _ArrayToString($bat_list, "|", 1)) $import_save = GUICtrlCreateButton("Save", 420, 17, 90, 25, 0, $WS_EX_TRANSPARENT ) $c_default = GUICtrlCreateCheckbox("", 530, 20, 17, 17) GUICtrlSetBkColor(-1, 0x00000020) $import_default_label = GUICtrlCreateLabel("Make Default", 550, 22) GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) ;------ADD GROUP---------- ;$backup_grp = GUICtrlCreateGroup("Add Files/Folders", 0, 51, 641, 70) $source_folders = GUICtrlCreateButton("Select Folder", 430, 65, 100, 25, 0, $WS_EX_TRANSPARENT ) $source_files = GUICtrlCreateButton("Select File(s)", 534, 65, 100, 25, 0, $WS_EX_TRANSPARENT ) $source = GUICtrlCreateInput("", 10, 66, 405, 24) GUICtrlSetFont(-1, 12, 400, 0, "Times New Roman") ;~Checkboxes $c_mydocuments = GUICtrlCreateCheckbox("", 32, 99, 17, 17) GUICtrlSetBkColor(-1, 0x00000020) $c_desktop = GUICtrlCreateCheckbox("", 160, 99, 17, 17) GUICtrlSetBkColor(-1, 0x00000020) $c_favorites = GUICtrlCreateCheckbox("", 272, 99, 17, 17) GUICtrlSetBkColor(-1, 0x00000020) $c_outlook = GUICtrlCreateCheckbox("", 384, 99, 17, 17) GUICtrlSetBkColor(-1, 0x00000020) $c_outlookexpress_windowsmail = GUICtrlCreateCheckbox("", 496, 99, 17, 17) GUICtrlSetBkColor(-1, 0x00000020) $l_mydocuments = GUICtrlCreateLabel("My Documents", 56, 100, 75, 17) GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) $l_desktop = GUICtrlCreateLabel("Desktop", 184, 100, 44, 17) GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) $l_favorites = GUICtrlCreateLabel("Favorites", 296, 100, 47, 17) GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) $l_outlook = GUICtrlCreateLabel("Outlook", 408, 100, 41, 17) GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) if @OSVersion = "WIN_VISTA" Then     $l_outlookexpress_windowsmail = GUICtrlCreateLabel("Windows Mail", 520, 100, 81, 17) Else     $l_outlookexpress_windowsmail = GUICtrlCreateLabel("Outlook Express", 520, 100, 81, 17) EndIf GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) ;--------DESTINATION GROUP--------- ;$dest_grp = GUICtrlCreateGroup("Select Destination", 0,122,641,83) $backup_submit = GUICtrlCreateButton("Update Backup List", 264, 172, 113, 25, 0, $WS_EX_TRANSPARENT ) $dest_button = GUICtrlCreateButton("Select Folder", 550, 141, 85, 25, 0, $WS_EX_TRANSPARENT ) $destination = GUICtrlCreateInput("", 10, 142, 534, 24) GUICtrlSetFont(-1, 12, 400, 0, "Times New Roman") ;----------LIST GROUP----------- ;$list_grp = GUICtrlCreateGroup("Currently on Back-Up List", 0, 208, 641, 209) $list = GUICtrlCreateListView("Source|Destination", 8, 222, 625, 146) _GUICtrlListView_SetColumnWidth ( $list, 0, 310 ) _GUICtrlListView_SetColumnWidth ( $list, 1, 310 ) $generate_button = GUICtrlCreateButton("Backup Now!", 259, 384, 117, 25, 0, $WS_EX_TRANSPARENT ) GUISetState(@SW_SHOW) While 1     $msg = GuiGetMsg()     Select         Case $msg = $GUI_EVENT_CLOSE             Exit     EndSelect WEnd

SciTE for AutoItDirections for Submitting Standard UDFs

Don't argue with an idiot; people watching may not be able to tell the difference.


#5 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 8,925 posts

Posted 06 December 2007 - 11:23 AM

Thanks Gary,
I run iy under Vista with 3.2.10.0 without any problem

#6 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 06 December 2007 - 11:25 AM

Thanks Gary,
I run iy under Vista with 3.2.10.0 without any problem


Problem exists on WinXP Pro SP2

SciTE for AutoItDirections for Submitting Standard UDFs

Don't argue with an idiot; people watching may not be able to tell the difference.


#7 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 8,925 posts

Posted 06 December 2007 - 11:37 AM

Problem exists on WinXP Pro SP2

Jon will smile as something corected under Vista.
I will try to see what's happening

#8 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 8,925 posts

Posted 21 December 2007 - 10:08 AM

Problem exists on WinXP Pro SP2

I cannot reproduce the error under XP/Sp2 3.2.10.0
How do you reproduce It? :)

#9 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 21 December 2007 - 12:50 PM

I cannot reproduce the error under XP/Sp2 3.2.10.0
How do you reproduce It? :)


Run the script I provided above.

Make sure to drag the header divider far enough to the right to cause the horizontal scrollbar to appear, then you should see the bug.

SciTE for AutoItDirections for Submitting Standard UDFs

Don't argue with an idiot; people watching may not be able to tell the difference.


#10 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 8,925 posts

Posted 21 December 2007 - 06:30 PM

Run the script I provided above.

Make sure to drag the header divider far enough to the right to cause the horizontal scrollbar to appear, then you should see the bug.

Thanks that do it. Not sure to find what's going on with XP but Well I still try

#11 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 8,925 posts

Posted 28 December 2007 - 02:38 PM

In fact that beyond my competence. I have asked other dev some help.
It looks like Vista did correct something. YES MS not always add bugs ...

#12 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 8,925 posts

Posted 30 January 2008 - 09:04 AM

Finally Vista was not working either as the refresh of the horizontal slider was not done.

In fact listview behave as tab and a GuiCtrlSetState($list, $GUI_ONTOP) is needed to have a refresh of the listview control when modified as changing the size og the column
Doc Fixed for 3.2.11.1
:D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users