English
Source / code snippets

selection Double click Listbox

 

CompileMarkSeparation
 
07/16/07  
 




Walter
was hocherfreut, that this really functions!
me went it around the Double click in a GridBOX.

have another bisschen updated and comments...
' Double click in Grid functions !
' ACHTUNG: getmessage instead of waitinput use
' and any clicked() in this Loop in getfocus() transfiguring
declare hgrid&,s$,end%,b&,m&
Set("TrueColor", 0)
cls RGB(29, 29,29)
' Grid define
s$="a;0;90;b;0;90"
hGrid&=Create("Gridbox", %hwnd, s$,0, 40, 25, 190, 150)
b&=Create("Button", %hwnd,"Ende",40, 250, 70,25)
m&=Create("Text", %hwnd,"",40, 300, 400,25)
'Grid fill
addstring(hGrid&,"Bla1|xxx")
addstring(hGrid&,"Bla2|xxx")
addstring(hGrid&,"Bla3|xxx")

WhileNot end%

    getmessage' getmessage instead of waitinput

    if %key=2' Closing

        end%=1

    elseif getfocus(b&)' Button end

        end%=1

    elseif getfocus(hGrid&)' everywhere getfocus()instead of clicked()

        if %lastmessage =515' Double click

            if getcursel(hGrid&)>=0

                settext m&, "Doppelklick: "+getstring$(hGrid&,getcursel(hGrid&))

            else

                settext m&, "Außerhalb the valid Lines."

            EndIf

        endif

    endif

endwhile

 
04/19/23  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.002 Views

Untitledvor 0 min.
Gast.0815 vor 30 Tagen
Member 862464105/12/24
ecki07/28/23
Thomas Zielinski06/28/23
More...

Themeninformationen

this Topic has 2 subscriber:

Walter (1x)
unbekannt (1x)


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