Re: Problem in Dialog
Daniel Drijard <[email protected]> Sun, 15 Apr 2018 17:32:05 +0000
| Newsgroups | gmane.comp.lang.realbasic.user |
|---|---|
| Message-ID | <[email protected]> |
Eduardo, You mention 2 functions (or commands ?), SetupOpenDialog and DealWithFile, which I do not know and which are declared as well unknown by the current HELP of XOJO. Daniel On 15 04 2018, at 18:51, Eduardo Gutierrez de O <[email protected]<mailto:[email protected]>> wrote: I think you're talking about different things. James is talking about Getfolderitem, which allows you to define a folderitem from a path. OpenDialog (and FolderItemDialog, for a customizable version) is defines into, and opens, its own modal window. Without seeing a bit of your code it's impossible to find what you may be missing dim o as opendialog dim f,r as folderitem o = new opendialog o.prompttext = "Select a file to open" SetupOpenDialog(o) r = o.showmodal if r <> nil then f = o.result MsgBox "Selected file is "+f.name end (with "DealWithFile" being a function to deal with the file :D ) Eduo On 15 Apr 2018, at 17:17, Daniel Drijard <[email protected]<mailto:[email protected]>> wrote: Hello, james GetFolderItem will not allow me to choose a file inside a directory as a Dialog will instead. Daniel On 15 04 2018, at 17:10, Jim Wagner <[email protected]<mailto:[email protected]>> wrote: Hello, Daniel - That has never been how you access the file system. Try GetFolderItem() or one of its relatives. Jim James Wagner Oregon Research Electronics http://www.orelectronics.net<http://www.orelectronics.net/> On Apr 15, 2018, at 7:21 AM, Daniel Drijard <[email protected]<mailto:[email protected]>> wrote: I create a Dialog by OpenDialog, then define a starting Directory, then trigger ShowModal(). I get an empty window, transparent and movable which does not show the Directory I defined. Any clue ? Thanks in advance. I use an iMac with Sierra Daniel Daniel Drijard Thoiry téléphone : 04 50 41 22 75 international +33/4 50 41 22 75 Courriel : [email protected]<mailto:[email protected]> Thoiry F-01710 48, rue des Savoies Daniel Drijard Thoiry téléphone : 04 50 41 22 75 international +33/4 50 41 22 75 Courriel : [email protected]<mailto:[email protected]> Thoiry F-01710 48, rue des Savoies Daniel Drijard Thoiry téléphone : 04 50 41 22 75 international +33/4 50 41 22 75 Courriel : [email protected]<mailto:[email protected]> Thoiry F-01710 48, rue des Savoies