Stacks & Utilities

The following stacks and utilities are for free download. The stacks (open source) can be adapted or the utilities (standalones) used for any purpose whatsoever (including commercial) as long as it is fully understood that the author (Robert J Warren) is not responsible for the consequences.

That said, where credit can be appropriately given to the author/howsoft.com for inspiration or production arising from these stacks and utilities, it would be appreciated.

Please note the symbols regarding platform and development status on the right hand side of the titles. Click on the title-links for further details.

 


FILE and PICTURE CHOOSER WIDGETS

XP/2000

With the standalone widget on the right, you can preview and load pictures into your stacks/programs.

It is accompanied by a matching file chooser widget (left).

For an example of how to call these widgets from your application, a demo stack has been provided:
The above demo stack can also be used to see how the optional INI files enable you to change the size, font and filters of the widgets.

= ALPHA
= BETA
= STABLE
Report a BUG
DRAG PANE DIVISION DEMO
In #1 of the chooser widgets above, altering the width of the window also causes the left and right panes to be be expanded proportionally, providing more space for reading the folder/file names without use of the scroll. However, for #2 it is also planned to enable the operator to move the vertical division between the panes by dragging. This demo stack provides a solution for pane dragging, maintaining the mouse drag icon in the middle of the division, where it should be:

The idea is that when the operator moves the mouse over the division, the drag icon appears, and he can then click down on the mouse button and drag the pane to where he wants it.

In this "demo" as in all other stacks to follow, it is not the aim of this author to "teach" anything. On the contrary, if you have valid criticisms or suggestions for improvement, the author would like to know what they are. On the other hand, these stacks might be directly useful to you in some way. If they are not directly useful, you are welcome to adapt them to your necessities/taste.


# 1.1
2nd Feb 2006
FILE AND PICTURE CHOOSER WIDGETS

Here is a pair of chooser widgets for Ubuntu Linux.

If your computer does not possess a floppy diskette drive, the icon on the right at the top will not appear.

#1.0
23rd Feb 2006
For an example of how to call these widgets from your application, a demo stack has been provided for this Ubuntu Linux version:
WIDGET STACKS
Click on the icons below to download source stacks for the Windows XP/2000 and Ubuntu Linux widgets described above.

These have been made available so that versions can be developed (by you) for other Linux platforms and for Macintosh.


Windows_FileChooser_124.rev
Windows_PictureChooser_58.rev
Linux_FileChooser_40.rev
Linux_PictureChooser_36.rev

Conversion to other flavours of Linux should be simple, and can be done directly from the Linux stacks provided.

Conversion to Macintosh might not be quite so straightforward, since named multiple drives are possible. For this reason, the Windows stacks have also been provided. Together with the Linux stacks, and some slight changes in layout, the development of widgets for Mac would be a combined solution.

GENERAL PROJECT NAVIGATION TIPS

1. Load all these projects with MESSAGES SUPPRESSED.

2. The projects consist of a main stack and, in the case of the picture choosers, an invisible substack. The main stack has 4 cards on it. Coding will be found: (a) in the main stack script; (b) in the controls appearing on card "Card1"; (c) in the button on card "Card3". Note that code also appears in an invisible control on Card1 called "DriveField".

LINUX TIPS

The only conversions required for Linux are twofold:

1. Where to find the FSTAB file in Linux so that the widgets can decide whether or not CD-rom and floppy diskette drives exist on the machine. In Ubuntu Linux, the path is as follows: /etc/fstab

In the widgets, the routine for dealing with this is in the invisible control on Card1 called "DriveField" (mentioned above).

2. Mounting the CD-rom and floppy diskette drives (if they exist). In fact, they can be mounted anywhere, and they do not necessarily need to use the same denominations as those used in the Ubuntu Linux widgets: cdrom0 and floppy0. You can use "cdrom" and "floppy" for example. For an example of mounting, see the coding attached to the cd and floppy icons at the top of the widgets.

There is, however, a small issue involved with (Ubuntu?) Linux. When standalone programs (like the widgets) close, they clear the clipboard! I am not sure, but this might apply to all Linuxes.

For this reason, in the parameters (_file_chooser.ini and _picture_chooser.ini), the option for saving widget output (i.e. the path to a chosen file or 'cancel') should be set to "HD" and not "clipboard". For now, the widgets will accept the option "clipboard", but it will return empty.