English
Forum

Entf- Button in a dialog inquire?

 
- Page 1 -



holmol93
Halloooo together

is it somehow possible, in a dialog abzufragen, whether The Entf Button pressed watts? %scankey shining Yes no effect to have (only Mainwindow)...

have Forum time a little bit durchforstet, there was always of inquire over The Windows API functions The speech... with them have I yet but generally not yet befasst and white mere of understanding and the Implementierung garnichts so to begin

would have been someone an example for this drop?
(in the "alten" XProfan Forum, which one yet via Date finds, there were time one ähnliches Topic, but the Posts are not any more abrufbar )

EDIT:

around the whole klarer To make:
i want The Entf Button inquire and, if one Listboxinhalt select watts, should this Content from the DB, from the it loaded watts, deleted go.

means to the Motto: IF ENTF Button pressed UND Content select then: ausgewählter Content in String reading, DB open, Content Search and delete. Listbox complete delete and DB new in Listbox loading.

should whom effect having, How one if through ENTF a Datensatz delete could.
yet realisiere I with the one "Löschen" Button, but through ENTF (so kenn I the zB from Access) ists eleganter

Gruess us Bärn,

danny
 
06/13/13  
 



« this Posting watts as Solution marked. »


Thomas
Freier
The simplest lane goes over WAY from. Mini example
CompileMarkSeparation
cls
var dlg&=Create("Dialog",%hwnd,"",10,10,700,300)
var GridBox&=Create("GridBox", dlg&, "Eins;2;144;Zwei;2;144;Drei;2;144;Vier;2;144;NR;0;0", 0, 20, 20, width(dlg&)-40, height(dlg&)-70)
clearlist
MoveListToHandle(GridBox&)
AddString(GridBox&,"Eins | Zwei | Drei | Vier | 3")
AddString(GridBox&,"Zwei | Drei | Vier | Fünf | 1")
AddString(GridBox&,"Drei | Vier | Fünf | Sechs | 4")
AddString(GridBox&,"Vier | Fünf | Sechs | Sieben | 2")
AddHotKey 7001, 12, 0
AddHotKey 7001, 46, 0

while 1

    waitinput
    case %key=2:BREAK

    If Getfocus(GridBox&)

        If GetCurSel(GridBox&) > -1

            'ggf. MenuItem und Button
            case MenuItem(7001) OR MenuItem(7002): Messagebox("Entf gedrückt\nsoll der Datensatz Nr. " \
            +GetText$(GridBox&, GetCurSel(GridBox&), 4)\
            +"\ngelöscht werden","Hinweis",32)

        endif

        setfocus(GridBox&)

    endif

wend

end

with DBs "schleppe" I in the last slot The Satznummer with (old Marotte). Changes can then always live over The Satznummer erfolgen.
WAY from has too its detriments.

ought to it really a Listbox meant his and the Text not multiple in the DB sought go should, exists by me the Listboxstring from TEXT+Space(enough)+"|"+DB-NR. The number then by SubStr$($, -1, "|") detect.
 
Gruß Thomas
Windows XP SP2, XProfan X2
06/14/13  
 




holmol93
Heyhooo merci viumau!

Dass it so goes, had I do not virtual, because I had with the whom Hotkeys already ausprobiert

and merci for the example with the GridBOX!
I known not at all, that it such a thing gives, because I mean Window in the ROC zusammenbastle... If I several Split having, have I always 2 listboxen next to each other set :O
(I knows, listview.dll there too yet, but the found I To umständlich for the, I so make wished. )

Vielen Vielen Thanks!

Greeetz,

danny
 
06/14/13  
 




Thomas
Freier
an GridBOX ala Listbox, means without Spaltenüberschrift goes with:
CompileMarkSeparation
 $H commctrl.ph
'--Gridbox ohne Header:
setstyle Gridbox&,getstyle(Gridbox&) | ~LVS_NOCOLUMNHEADERre>
 
Gruß Thomas
Windows XP SP2, XProfan X2
06/14/13  
 




holmol93
Hey

I find Gridboxen are the "Urfassung" eh sooner the, I me pictured have circa Datensätze view...
I wanted to for such a thing simply not each time one List view bemühen and because I do not known, that it Gridboxen gives, have I zwangsläufig Listboxes for ready

my Program loggt but zB Logon Vorgänge in the program for each user self-contained and if one this Logfile aufruft shows itself now one deutlicher Geschwindigkeitsvorteil in the comparison To Listboxes.
there could one with many Einträgen useful zuschauen, as loaded get :o)

Greeetz,

danny
 
06/14/13  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.391 Views

Untitledvor 0 min.
Rainer Hoefs04/21/15
Andre Rohland12/31/14
Jochen Roxlau10/04/14
RGH09/25/14
More...

Themeninformationen

this Topic has 2 subscriber:

holmol93 (3x)
Thomas Freier (2x)


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