Page 1 of 2

Dc:_PopDir wrong function

Posted: Thu Jan 16, 2020 12:11 pm
by PedroAlex
Hi Roger,


dc_Popdir() is not working correct.

Re: Dc:_PopDir wrong function

Posted: Thu Jan 16, 2020 12:37 pm
by rdonnay

Code: Select all

dc_Popdir() is not working correct.
What do you want it to do?

Re: Dc:_PopDir wrong function

Posted: Fri Jan 17, 2020 4:01 am
by PedroAlex
Roger

same as the previous version:
Select the drive.
Select file type




Thanks..

Re: Dc:_PopDir wrong function

Posted: Fri Jan 17, 2020 7:53 am
by rdonnay
The source code for DC_PopDir() hasn't been changed in 20 years.

Re: Dc:_PopDir wrong function

Posted: Sat Jan 18, 2020 4:38 am
by PedroAlex
Where can I find the DCDIRTREE source code?

Re: Dc:_PopDir wrong function

Posted: Sat Jan 18, 2020 8:53 am
by rdonnay
What is it that you want it to do?

It's purpose is only to allow you to choose a directory.

If you want more than that, then maybe you should look at DC_PopFile().

Re: Dc:_PopDir wrong function

Posted: Sat Jan 18, 2020 11:50 pm
by Wolfgang Ciriack
I think, he means the sizing problem from the second picture, the fields for drive and type are not visible ?

Re: Dc:_PopDir wrong function

Posted: Mon Jan 20, 2020 4:09 am
by PedroAlex
Wolfgang Ciriack wrote:I think, he means the sizing problem from the second picture, the fields for drive and type are not visible ?

Yes, this is the problem.
and i often use these types of functions in my apps.
This occurrence happens in eXpress 267 and xBase 2.0.1176.
Perhaps some change has occurred in the XbpTreeView()
and probably an update to the eXpress Code is needed.

Many thanks..

Re: Dc:_PopDir wrong function

Posted: Mon Jan 20, 2020 9:19 am
by rdonnay
I still don't understand.

It appears that Pedro took a snapshot of a different selector than DC_PopDir().

The source code for this 20-year old function does not have any drive and file type selectors.

This was one of the first functions I wrote when I got Xbase++.
DC_PopDir() is just a wrapper for a class that was a sample given to us by Alaska.

It doesn't have a drive and file type selector.

Re: Dc:_PopDir wrong function

Posted: Tue Jan 21, 2020 3:28 am
by reganc
rdonnay wrote:I still don't understand.

It appears that Pedro took a snapshot of a different selector than DC_PopDir().

The source code for this 20-year old function does not have any drive and file type selectors.

This was one of the first functions I wrote when I got Xbase++.
DC_PopDir() is just a wrapper for a class that was a sample given to us by Alaska.

It doesn't have a drive and file type selector.
Sorry, Roger, I hate to point this out, but doesn't dc_popdir use dc_dirselector (which has a drive letter combobox) and dc_fileselector (which has an extensions combobox).

And as the original screenshot shows (and in our application where it is used as a popup) the static parent of each seems to be the wrong size for the listbox and combobox to fully be visible.