English
Source / code snippets

selection Double click Listbox right

 

CompileMarkSeparation
Source wurde am 15.07.2007 aus der MMJ-Quellcodesammlung (Dietmar Horn) in die Babyklappe auf XProfan.Com abgelegt:
Rechts- und Doppelklick-Auswahl in Listbox
Doppel - und Rechtsclicklistbox, Autor: Dieter Zornow
Für nur Doppelclick braucht man kein zweites Getmessage mehr
und keine Variable einfach auf %lastmessage abfragen
Def GetSysColor(1) !USER32,GetSysColor
SETTRUECOLOR 1
DECLARE ENDE%,LISTBOX&,BUTTON&,text$,message%
WINDOWSTYLE 63
WINDOWTITLE Listbox with doubleclick and rightclick
WINDOW SUB(DIV(%MAXX,2),DIV(640,2)),SUB(DIV(%MAXY,2),DIV(500,2))-640,500
CLS GETSYSCOLOR(15)
USEFONT MS Sans Serif,13,0,0,0,0
SETDIALOGFONT 1
LISTBOX& = CREATELISTBOX(%HWND,LISTBOX,0013,0020,0402,0362)
BUTTON& = CREATEBUTTON(%HWND,Ende,410,410,70,25)
addstring(listbox&,Dieter)
addstring(listbox&,Zornow)
addstring(listbox&,Century Park Condominium)
addstring(listbox&,Viphavadi Rangsit Road, Soi 22)
addstring(listbox&,10900 Bangkok /Chatuchak)
addstring(listbox&,Thailand)

WHILENOT ENDE%

    getmessage anstatt waitinput

    If @EQU(%KEY,2)

        LET ENDE%= 1

    ELSEIF @EQU(%KEY,4)

    ELSEIF GETFOCUS(LISTBOX&) LISTBOXABFRAGE

        let message%=%lastmessage

        if neq(message%,512)

            getmessage

            if equ(message%,515)

                let text$=getstring$(listbox&,getcursel(listbox&))

            endif

            Locate 0,0
            print Doppelklick: ,text$;

        endif

        if equ(Message%,516) erst links markieren dann rechts holen

            let text$=getstring$(listbox&,getcursel(listbox&))
            Locate 0,0
            print Rechtsklick: ,text$;

        endif

    ELSEIF GETFOCUS(BUTTON&)

        LET ENDE%= 1

    ENDIF

WEND
ass=s4 href='./../../function-references/XProfan/end/'>end
 
07/16/07  
 



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

2.439 Views

Untitledvor 0 min.
Walter04/19/23
Manfred Barei12/28/20
holmol9304/25/13

Themeninformationen

this Topic has 1 subscriber:

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