| |
|
|
![Manfred Barei: 08/05/08](.././../../i/a/61939461410cc5dc5821b.jpg) 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? ![](.././../../i/s/gruebel.gif)
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 ▲ |
|
|
|
|
![iF: 08/05/08](.././../../i/a/1.gif) | it shining me to kurzer Betrachtung as though here logisches trouble vorliegt, instead of z.B. a problem with ClearList. |
|
|
| |
|
|
|
![Dieter Zornow: 08/05/08](.././../../i/a/101212027948ca98cf1d74c.jpg) 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: 08/05/08](.././../../i/a/61939461410cc5dc5821b.jpg) 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. ![](.././../../i/s/eusa_think.gif)
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: 08/05/08](.././../../i/a/20.gif) 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: 08/05/08](.././../../i/a/61939461410cc5dc5821b.jpg) Manfred Barei | Hello Roland,
the wars, now functions it. ![](.././../../i/s/03.gif) simply to ClearList Gridliste& ClearList and it functions. CompileMarkSeparation 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 ▲ |
|
|
|