File/Picture Chooser Widgets available for Windows XP

Bob Warren robertum at brturbo.com
Tue Jan 17 12:41:24 EST 2006


Dear Ken,

Thanks very much indeed for the quick feedback. My hair began to stand 
on end at the bugs you seem to have found until I read the following:
-------------------------------------------------------------------------
Ken Ray wrote:
 >For troubleshooting, I'm running WinXP Pro, SP2, and the path to the 
 >folder I downloaded and executed stuff from is:

 >c:\Documents and >Desttings\Ken\Desktop\RunRev_Chooser_Widgets_DEMO_PACK_2

-------------------------------------------------------------------------
I suspect that you might not have read "__readme.txt". The relevant part 
is as follows:

DEMO PACK

The demo pack consists of the following files:

1) __readme.txt (this file)

2) _file_chooser.exe
3) _file_chooser.ini
4) _file_chooser_filters.ini

5) _picture_chooser.exe
6) _picture_chooser.ini
7) _picture_chooser_filters.ini

8) TEST_Launch_File_Choosers_Windows_46.rev

You can copy the exe files to any folder and execute them.
This will show you how the widgets run according to the defaults (i.e. 
with no ini parameter input).

If you then copy the ini files to the same folder and after run the exe 
files, you can see how they run with an example set of ini parameters.

To use TEST_Launch_File_Choosers_Windows_46.rev (8) above), copy files 
2-7 to your Revolution folder (used as the default folder).
You can then use this stack to alter all the ini parameters without 
effort and to launch the widgets to study the effects.

-------------------------------------------------------------------------
The point is that the EXE files can be run from any folder, accompanied 
by their respective INI's. But if you run the DEMO stack, the default 
folder becomes that of Revolution itself, and the demo stack expects to 
find the widget EXEs in the same folder (i.e. that of Revolution).
-------------------------------------------------------------------------
Did you follow the instructions? If not, please try it. If so, please 
let me know as soon as you can so that I can look into the problems 
involved (somehow). Here, I am using WinXP Pro, SP1, and the widgets 
work perfectly in all respects.

 > 5) I really think it would be great to add a "resizable" option to 
the INI
 > files, which would start at the predefined width/height, and allow 
the user
 > at runtime to resize it if they wanted to.

This is already in the pipeline for #2.
Although the overall size of the widget can be changed through the INI 
file, the proportion of the widths of the left (folders) pane and the 
right (files) pane is fixed at 2/3:1/3. This may be more or less correct 
generically, but of course the convenience of this proportion depends 
heavily on the lengths of the user's folder names and file names!

Another way of handling it would be to maintain the fixing of the 
overall window size in the INI file, but to allow the operator to drag 
the division between the left and right panes (e.g. as in the CHM-style 
RR Help).

Or perhaps both would be better: allow the operator to re-size the 
window AND drag the division between the L-R panes.

-------------------------------------------------------------------------
 > 6) I'd suggest making the INI files follow the real INI format
 > (param=value), that way it eliminates potential issues with people 
wanting
 > to change one param on line 5, but accidentally changing one on line 
6. If
 > you do that, you can use "split" to easily get the data into a readable
 > form.

I thought of doing it that way, but then decided against it. But I'm not 
being dogmatic about it. If you don't mind, I think I'll hang fire on 
that one for the moment until you get the existing version working and I 
see what the opinion of other users is. OK?

-------------------------------------------------------------------------
I have not received any Use_Revolution lists for over a day now, so I am 
not sure what feedback has/has not been published. I presume that you 
wrote to me off-list? I am sure you will not mind if I post this reply 
to the List. Apart from stressing the importance of reading the README 
file, I think the points you have raised would be of general interest. OK?

Once again, many thanks for your useful feedback (as always).

Best regards,
Bob
-------------------------------------------------------------------------
-------------------------------------------------------------------------
Ken Ray wrote:

 > Bob,
 >
 > I took a look at your picture and file choosers - neat stuff! Just a 
couple
 > of bugs/quick suggestions:
 >
 > 1) It appears as though some of the settings in the INI file don't 
work (at
 > least for Picture Chooser). Turning off bold and Italic worked, as did
 > changing the drive letter, but nothing else seemed to.
 >
 > 2) When I changed the drive letter to d:, when the Picture Chooser 
came up,
 > it had both C:  and D: highlighted.
 >
 > 3) The filters file for Picture Chooser didn't work either - it only
 > displayed "All Files" as an option in the filter popup, even though there
 > were more choices in the filters INI.
 >
 > 4) All of the above seem to apply to the File Chooser as well.
 >
 > 5) I really think it would be great to add a "resizable" option to 
the INI
 > files, which would start at the predefined width/height, and allow 
the user
 > at runtime to resize it if they wanted to.
 >
 > 6) I'd suggest making the INI files follow the real INI format
 > (param=value), that way it eliminates potential issues with people 
wanting
 > to change one param on line 5, but accidentally changing one on line 
6. If
 > you do that, you can use "split" to easily get the data into a readable
 > form. For example, if you had:
 >
 > startupFolder=c:\
 > indentSize=4
 > fontName=Arial
 >
 > You could read the file into tINI, say, and then do:
 >
 >   split tINI with CR and "="
 >
 > Then you could do:
 >
 >   put tINI["indentSize"]
 >   --> 4
 >
 >   put tINI["fontName"]
 >   --> Arial
 >
 > For troubleshooting, I'm running WinXP Pro, SP2, and the path to the 
folder
 > I downloaded and executed stuff from is:
 >
 > c:\Documents and Desttings\Ken\Desktop\RunRev_Chooser_Widgets_DEMO_PACK_2
 >
 > Let me know if you need more info to track the bugs down...
 >
 >
 > Ken Ray
 > Sons of Thunder Software
 > Web site: http://www.sonsothunder.com/
 > Email: kray at sonsothunder.com
 >
 >
 >
 >




More information about the use-livecode mailing list