Re: Win32Lib; Shortcuts in GetOpenFileDialog
- Posted by ZNorQ <znorq at holha?g.co?> Jun 13, 2008
- 801 views
CChris wrote: > > ZNorQ wrote: > > > > CChris wrote: > > > > > > ZNorQ wrote: > > > > > > > > CChris wrote: > > > > > > > > > > ZNorQ wrote: > > > > > > > > > > > > Hi, > > > > > > > > > > > > a) Is there functionality in Win32Lib that enables the coder to > > > > > > change > links</font></i> > > > > > > in the GetOpenFileDialog? (See enclosed picture - highlighted with a > > > > > > red > > frame.)</font></i> > > > > > > > > > > > > <a > > > > > > href="http://euphoria.znorq.net/images/forum/openDialog_shortcuts_HF09.jpg">http://euphoria.znorq.net/images/forum/openDialog_shortcuts_HF09.jpg</a> > > > > > > > > > > > > > > > > > > b) [OT] Is it at all possible for the general user to change this in > Windows</font></i> > > > > > > settings? > > > > > > > > > > > > Kenneth / ZNorQ > > > > > > > > > > Just run the openfile.exw demo in the Demo\ folder. It is displaying > > > > > exactly > > > > > that on my system (both at home and at work). If it does for you, then > > > > > you > > just</font></i> > > > > > have to inspect that code... > > > > > If it doesn't, you'll have to tell us which version of Windows, which > > > > > desktop > > > > > theme, and this sort of things, so that I can understands what could > > > > > possibly > > > > > go wrong. > > > > > > > > > > CChris > > > > > > > > I'm not quite sure what you are aiming at, CChris. I do get the dialog > > > > as shown > > > > on the picture - and in the above example you mentioned. > > > > > > > > What I'm asking; "Is it possible to change those links to suit your own > > > > need?". > > > > For example, I don't use "my documents" much, so I'd like to change it > > > > to some > > > > other folder I'm using more frequently.. > > > > > > > > Kenneth/ZNorQ > > > > > > Ah.. I didn't get that. > > > > Hehe, np. > > > > > The links are "obviously" registry entries. I'll try to find out today, > > > but > > > > I'd appreciate that, CChris, but don't exhaust yourself trying. It's not > > really > > a big deal, just gives me some minor additional comforts. A pity if one have > > to > > make registry changes to do this, as the company I work for has limited the > > access > > to that.. > > > > > they may change with the Windows version. > > > > I'm using WinXP. > > > > > > > > CChris > > I eventually found out this page > <a > href="http://msdn.microsoft.com/en-us/library/ms646960">http://msdn.microsoft.com/en-us/library/ms646960</a>(VS.85).aspx#_win32_Open_and_Save_As_Dialog_Box_Customization > > Here is the relevant material. Copyright to whom it's due: > > The contents of the Places bar are determined by the contents of the following > subkey: > > > HKEY_CURRENT_USER > Software > Microsoft > Windows > CurrentVersion > Policies > Comdlg32 > Placesbar > Currently, there can only be five entries under this key, and the value/name > index is zero-based. The names for the entries should be Place0, Place1, > Place2,Place3, > and Place4. The values of the entries can be REG_DWORD, REG_SZ, or > REG_EXPAND_SZ > values that identify locations to include in the places bar. > > Value type Meaning > REG_DWORD A CSIDL value that identifies a folder. For a list of CSIDL values, > see CSIDL. > REG_SZ or REG_EXPAND_SZ A null-terminated string that specifies a valid path. > > > Now, you only need to: > * use wisely a registry tool (there are a couple in the archive), > * get the CSIDL for the items you want - or simply remove those you don't > want. > Back the key up before any tampering. Google for CSIDL and select hits on > MSDN. > > CChris CChris, Great work! You didn't have to dedicate so much efforts in helping me out, but it is greatly appreciated. I haven't had time to try it out yet, but I will as soon as I'm able. Again, thank you. Kenneth / ZNorQ