English
Forum

GridBOX Entries delete

 

Manfred
Barei
Hi,

have one Problm with the GridBOX , I try all Entries in a GridBOX To delete what but not functions,

here one Beispielcode:
CompileMarkSeparation
 $P+
SET("ERRORLEVEL",0)
********************** HINWEISE ********************************
CODE ERZEUGT MIT ROKOS OBJECT CREATOR 4.6.5
DATUM  05.08.2008    um  16:42 Uhr
VERWENDETE PROFANVERSION IST 11.0-NT XPROFAN
CODE ERSTELLT UNTER WINDOWS VISTA
!!! Dieser Code wird von Roc immer neu erzeugt!!!
!!! Erst bearbeiten, wenn alle Objekte erzeugt wurden !!!
!!! Verändern Sie ggf. feste Pfade in variable Pfade
********************** DATEN ***********************************
>>>>> AB HIER KOPIEREN UND IN EIGENEN CODE EINBINDEN <<<<<<<<<<<<
DEF GETSYSCOLOR(1) !"USER32","GetSysColor"
SET("TRUECOLOR",1)

PROC DIALOG  ---------------------------------------------------------------------------> Dialoganfang

    DECLARE DLG&, DIALOGENDE%
    DECLARE GridListe&
    DECLARE BUTTON1&,BUTTON2&
    Declare TmpListe&
    Declare Ordnerpfad$,TmpPfad$

    proc GridBox_füllen

        DECLARE zähler%,eintrag$
        ClearList GridListe&
        @SendMessage(GridListe&,$0184,0,0)
        zähler%=0

        Whilenot zähler% = @GetCount(TmpListe&)

            eintrag$ = @SubStr$(@GetString$(TmpListe&,zähler%),1,".") + "|" + @SubStr$(@GetString$(TmpListe&,zähler%),2,".")
            @AddString(GridListe&,eintrag$)
            inc zähler%

        EndWhile

    endproc

    WINDOWSTYLE 31
    DLG&=CREATE("DIALOG",%HWND,"GridBox",(%maxx/2 - 265/2),(%maxy/2 - 299/2),265,299)
    USEFONT "MS Sans Serif",13,0,0,0,0
    SETDIALOGFONT 1
    TmpListe&=@Create("List",1)
    Ordnerpfad$ = getdir$("@")
    GridListe& = create("GridBox",DLG&,"Datei;0;120;Typ;0;60",3,0027,0027,0204,0164)
    BUTTON1& =@CREATE("BUTTON",DLG&,"Ordner wählen",0029,0216,0100,0030)
    BUTTON2& =@CREATE("BUTTON",DLG&,"Beenden",0159,0214,0070,0030)
    ClearList TmpListe&
    AddFiles "*.exe"
    @MoveListToHandle(TmpListe&)
    GridBox_füllen
    SETFOCUS(DLG&)
    DIALOGENDE%=0

    WHILENOT DIALOGENDE%

        WAITINPUT

        If %KEY=2

            DIALOGENDE%= 1

        ELSEIF CLICKED(GridListe&) GRIDBOX

        ELSEIF CLICKED(BUTTON1&) Ordner wählen

            TmpPfad$ = getdir$("@")
            Ordnerpfad$ = choosedir$("Ordner wählen")

            if (%button = 1)

                ClearList (TmpListe&)
                @SendMessage(TmpListe&,$0184,0,0)
                ChDir Ordnerpfad$
                AddFiles "*.exe"
                @MoveListToHandle(TmpListe&)
                GridBox_füllen

            else

                Ordnerpfad$ = TmpPfad$
                ClearList (TmpListe&)
                @SendMessage(TmpListe&,$0184,0,0)
                ChDir Ordnerpfad$
                AddFiles "*.exe"
                @MoveListToHandle(TmpListe&)
                GridBox_füllen

            endif

        ELSEIF CLICKED(BUTTON2&) Programm Beenden

            DIALOGENDE%= 1

        ENDIF

    ENDWHILE

    DESTROYWINDOW(DLG&)
    ENDPROC --------------------------------------------------------------------------------> Dialogende
    SET("AUTOPAINT",2)
    >>>>> HIER KOPIERENDE FÜR EIGENEN CODEEINBAU <<<<<<<<<<<<<<<<<<<<
    Das folgende Hauptfenster ist nur zum Testen:
    WINDOWTITLE "DUMMY HAUPTFENSTER"
    WINDOWSTYLE 63
    WINDOW (%maxx-300),10-280,80
    CLS RGB(0,0,0)
    Color 10,0
    PRINT "Bitte aufs Systemmenükreuz klicken "
    DIALOG dialog Call!

After the change in a others Ordner should really the first Entries in the GridBOX deleted and be The new Entries attend.
this geschied but not separate teh folks Entries stay receive and the new Entries come moreover.

What do I do wrong?

Greeting
Manfred
 
Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 |
08/05/08  
 



it shining me to kurzer Betrachtung as though here logisches trouble vorliegt, instead of z.B. a problem with ClearList.
 
08/05/08  
 




Dieter
Zornow
You must before You addfiles using first The Listboxliste delete, You deletes only The GridBOX and tempbox.. that is your Entries are still in the Listboxliste

first

Clearlist
addfiles

Greeting

Dieter
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
08/05/08  
 




Manfred
Barei
Hello Dieter,

I lösche with process the Ordnerbutton The TmpListe&, on it can it means not lying.
it go to the fill the GridBOX any lists with ClearList deleted, what but anscheinent not functions.

Greeting
Manfred
 
Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 |
08/05/08  
 




RGH
deletes You too The XProfaneigene ListboxListe with ClearList (without Parameter)?

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
08/05/08  
 




Manfred
Barei
Hello Roland,

the wars, now functions it.
simply to ClearList Gridliste& ClearList and it functions.
CompileMarkSeparation
ClearList
ClearList GridListe
e>

ought to but in the Help erwähnt go.

Greeting
Manfred
 
Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 |
08/05/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

963 Views

Untitledvor 0 min.
RudiB.04/16/22
Christof Neuß09/18/18
Manfred Barei12/05/16
rquindt06/06/16
More...

Themeninformationen



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