Jump to content

Put a ListView on top of an image in a tab


Cengokill
 Share

Recommended Posts

Hi everyone,

I have created a ListView that is in a tab, and I want to display an image in that tab, with the ListView on top.

However, the image still appears on top of my ListView.
If I remove the tabs everything works. :huh:

I looked at the autoit documentation and the <GuiListView.au3> documentation , I can't figure out how to display a background image, and put on top a ListView, inside a tab. 😥

Here is the code:

Opt("GUIOnEventMode", 1)
$Form1 = GUICreate($Titre, 700, 627, $Form1Width, $Form1Height); main window

$tabulation = GUICtrlCreateTab(148,0,700,580); creating tabs

$tab1=GUICtrlCreateTabItem("Tab 1"); first tab
GUICtrlSetState(-1, $GUI_SHOW); this tab is selected by default

$Pic1 = GUICtrlCreatePic("image.jpg", 0, 30, 700, 627)
GUICtrlSetState(-1, $GUI_DISABLE).

$idListview = GUICtrlCreateListView("list 1|list 2|list 3", 200, 50, 390, 200)

GUISetState(@SW_SHOW)
While 1
    Sleep(100)
WEnd

Thank you in advance.

tab test.png

Edited by Cengokill
GUICtrlSetState(-1, $GUI_DISABLE).

-- Cengokill --

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...