You are not logged in.

  • "GhostRider83" is male
  • "GhostRider83" started this thread

Posts: 3

Date of registration: Mar 4th 2010

Location: Ingolstadt

Hobbies: Motorrad, Oldtimer, Code, Party

  • Send private message

1

Thursday, March 4th 2010, 9:28pm

CommonFileDialog (Filter)

Irgendwie habe ich mit der Syntax noch einige Probleme:

Was ist Flasch daran?

Dim dlgFileDialog As CommonFileDialog

With dlgFileDialog
. DialogTitle = ""
.Filter = ""
.ShowOpen
picMain.Picture = .FileName
End With

Darüber hinaus macht mir die FILTER-Syntax irgendwie Probleme...

Kann mir jemand Nachhilfe geben... :) ?

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

2

Thursday, March 4th 2010, 9:35pm

Sieh mal hier

Gruß!

A1880

  • "GhostRider83" is male
  • "GhostRider83" started this thread

Posts: 3

Date of registration: Mar 4th 2010

Location: Ingolstadt

Hobbies: Motorrad, Oldtimer, Code, Party

  • Send private message

3

Friday, March 5th 2010, 8:06am

funktioniert nicht!

Hier mein Code inclusive "AddFilter"

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Public Sub cmdLoad_Click()
   
   Dim File As String
   
   Dim dlg_Filedialog As New CommonDialog
   
   With dlg_Filedialog
   
  	.DialogTitle = "Bild auswählen"
  	.Filter = ""
  	AddFilter dlg_Filedialog, "Bilder", "*.jpg"
  	.ShowOpen True
  	
  	File = .FileName
  	
   End With
   
   If File <> "" Then
  	
  	MsgBox File
   
   End If
   
End Sub

Public Sub AddFilter(ByVal dlg As CommonDialog, ByVal filter_title As String, ByVal filter_value As String)

   Dim txt As String

   txt = dlg.Filter
   If Len(txt) > 0 Then txt = txt & "|"
   txt = txt & filter_title & " (" & filter_value & ")|" & _
     	filter_value
   dlg.Filter = txt

End Sub



Liefert mir folgenden FileDialog:


A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

4

Friday, March 5th 2010, 8:35am

Yep!

Filter funktionieren noch nicht.

Wie in meinem oben zitierten Artikel beschrieben:

The filter functionality in CommonDialog has not been implemented yet in the current Jabaco framework.
The filter property is CommonDialog ignored for the time being.

Freiwillige Entwickler für's Jabaco-Framework sind derzeit Mangelware.

Gruß!

A1880

  • "GhostRider83" is male
  • "GhostRider83" started this thread

Posts: 3

Date of registration: Mar 4th 2010

Location: Ingolstadt

Hobbies: Motorrad, Oldtimer, Code, Party

  • Send private message

5

Saturday, March 6th 2010, 12:02pm

Ja, aber wofür dann die ganze METHODE????

Ich persönlich brauche sie nicht!!!!
Weil generell die Filter-Syntax behersche.

Oh Mann blöd...

Dann muss man wohl JABACO noch ein wenig Zeit geben...

Aber die Idee dahinter ist Klasse...
Java-Plattform mit VB-Syntax zu vereinen

Rate this thread
WoltLab Burning Board