Quelqu'un pourrait il me dire comment sélectionner un élément dans une ListViewGadjet au moyen d'un clic de souris afin de le mettre dans une variable pour l'utiliser dans la suite du programme.
Je ne vois pas comment on gère la souris .Je suis nul..
Merci
Code : Tout sélectionner
If OpenWindow(0,0,0,940,1080,"ListViewGadget",#PB_Window_SystemMenu | #PB_Window_ScreenCentered)
SetWindowColor(Window_0, RGB(255,255,128))
ListViewGadget(0,10,40,150,200,#PB_ListView_ClickSelect)
SetGadgetColor(0, #PB_Gadget_BackColor, $9CF2A1 )
ListViewGadget(1,220,40,150,100,#PB_ListView_ClickSelect)
SetGadgetColor(1, #PB_Gadget_BackColor, $9CF2A1 )
TextGadget(3, 10, 20, 100, 20," Valeur ")
TextGadget(4, 220, 20, 100, 20," Coefficient ")
For n=0 To 300 Step 15
AddGadgetItem (0,-1,Str(n) )
Next n
For n=0 To 10 Step 2
AddGadgetItem (1,-1,Str(n) )
Next n
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
End