Re:Invisible invisible insertion point in field - solved but not resolved BZ 1734

2005-07-21 Thread David Wilkinson
First prize is shared by Sarah and Chipp - overlapping group.  Thanks 
guys. Surprisingly BZ returned Key Ray's report first hit, and it is 
just about on its first birthday.   Too much of a rewrite required 
for the time being, unfortunately.

Sarah was also right about the margin/text offset/vscroll thing, but 
I seemed only to be able to effect any obvious change with left and 
right margins - so I made the editbox taller to show the ascenders 
and descenders.

So that makes the Aussies one up in the Series already! 

ref: RevOnline user227 Table Field Experiment
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Invisible insertion point in field

2005-07-20 Thread David Wilkinson
On Wednesday 20 July 2005 6:00 pm, Jacqueline Landman Gay wrote:

> To lock/unlock a field you need to set three field properties:
> locktext, autohilite, traversalOn. The last two should be set to
> the opposite of the first one.

Unfortunately they are opposite

As a test, as a result of Jonathon's post, I created a new stack, 
dragged a table field onto it along with a ordinary one.  I grouped 
them, edited the group and dragged another single field into the 
group.  All was as expected - insertion point etc.

I also tried edting the group of the uploaded teststack and dragging 
a new field into the group.  This new field  had no insertion 
point.

That suggests some sort of inheritance issue, but I could not see any 
obvious differences between the properties in the group, card or 
stack of the two examples.  If the edit field is copied from the 
group and pasted onto the card, the insertion point then becomes 
visible.

BTW in order to get left mouse drag of the field, I only needed to 
set the locktext to true - those associated props do not appear to 
change when this is done.

Thanks for your rapid response.  The problem isn't critical but gives 
this table component an additional element of flakiness it could do 
without!

David 
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: MatchText and PCRE

2005-07-20 Thread David Wilkinson
David

Just a couple of points since Mark has already answered very well

Frederic Rinaldi's plugin in the rev development/plugin menu is 
invaluble for testing Rev's regex implementation and porting syntax, 
if you haven't discovered it

Like Mark, I had difficulties with the (?s) switch, though I 
concluded that this was to do with the greediness of the regex engine 
and my ignorance.   I resorted to using repeat for each line since I 
could not get lookbehind to work.

I would also recommend Jeffrey Friedl's illuminating book, though 
probably not reading it as I did during a  couple of sleepless nights 
with a dental abscess.  It is not a recipe book, but then I suspect 
that you already have a good understanding of regex.

David Wilkinson
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Invisible insertion point in field

2005-07-20 Thread David Wilkinson
I imagine there is an obvious answer to this but I cannot figure it 
out.

I have uploaded an experimental table field stack to my user space 
(user227), which uses work by and ideas from Chipp Walters, Sarah 
Reichelt and Scott Rossi.  It has an edit field that sits on top 
of a  worksheet/grid field. The problem is that although you can 
enter text in the edit field, the insertion point is invisible. Does 
anyone know why this might be?  One possible clue is that in order to 
drag the field with the left mouse button, the field has to be locked 
when the mouse enters its border zone and the insertion point does 
not show in lockedtext fields - but then you can't enter text in such 
field either.

As a side question, is there any reason why Rev should set the 
vscroll of this field to 4?  I cannot recall any code that scrolls it 
directly and notionally the textheight and textsize are the same as 
the underlying field.  I suspect this might be tied to the vertical 
offset from which text entered into fields, with hgrid enabled, seems 
to suffer.

TIA

David Wilkinson

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Database Query Builder: workaround please

2003-11-14 Thread David Wilkinson
On Thursday 13 November 2003 3:47 pm, you wrote:

> On the Database Query Builder, Record Set Tab, SQL query field:
>
> 1) enter some syntactically bad SQL
> 2) click the refresh query button (or close the Database Query
> Builder window)
> 3) now Rev gets stuck in an endless loop of modal error dialogs.
>

OK  The handlers appear to be identical, though I have not stepped 
through as yet.  However it is clear that on Linux and 2.0.1, the 
behaviour is not so extreme as you have reported, no matter what 
sort of garbage I enter in the query field.  By the way, I did not 
say three times , but three times for each db object, though I did 
not figure out how that observation could be true.  

Does the query builder work for you, if you enter syntactically 
correct sql?  If so,  why not  debug the query outside the query 
builder for the timebeing?Moreover, queries that attach to field 
objects, generally, are not very sophisticated : maybe an inner join 
between client_id  from invoice and client tables for example, in 
order to show the client name, or select detail rows corresponding 
to an invoice.  The Query Builder  is clearly designed to return a 
record view of each row.  In the end, I am not sure that the by 
field/column interrogation of the db is going to be fast enough 
though showall fields seem pretty quick.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: File Open Error: Illegal File Name Character " " in xyz.rev

2002-11-28 Thread David Wilkinson
Rob 

I did a few experiments and it appears that the restriction is more 
to do with RevDev under Linux:

1: Rename a standalone to include a space - runs fine from term 
window or file browser.  Build a standalone with spaces in name - 
Distribution builder replaces them with underscores.

2: Change a stackfilename(.rev) to eliminate space - opens fine. If 
I eliminated the Serendipity stack name spaces the stack would open  
but your error checking for the existence of the original filenames 
meant it then exited gracefully.

3: Try to save or open a mainstack(.rev) with space in filename in 
RevDev - produces illegal file name error message.

Conclusion: Main problems with spaces are
1: RevDev - includes some precautionary filtering?(other unices?)
2: Difficult to read in console window especially with long paths!! 
(escaped spaces)


And yes this seems to be the case :
> Am I correct that this restriction applies only to the mainstack
> stack file names?  In other words, it's OK to set a stack's name
> or label to "Serendipity Library" so long as the stack resides in
> a file named "Serendipity_Library.rev"?  And by extension, spaces
> are OK in substack names so long as they are not saved externally
> from the mainstack?

But I still don't  use spaces;  but then I still use punched cards.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



File Open Error: Illegal File Name Character " " in xyz.rev

2002-11-27 Thread David Wilkinson
Just a thought

File naming has been a topic before in this list but it would appear 
that if you want your stacks to work seamlessly on 'nix, (not that 
anyone does of course!)  it would be wise to avoid spaces in stack 
file names.  

The db demo included with Rev and Rob Cozens' impressive SDB stacks 
both refuse to run on my Linux box because of the above error.   If 
we are serious about cross-platform development,  we will need to 
work with the lowest common denominator between systems.   For the 
same reason,  if we use applescript to achieve something, it might 
be wiser to find another way round and/or submit a request for the 
absent but required functionality to the list??  

My problem is that I am not creative enough to use a Mac!



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



RE: RTF Reader in Rev

2002-11-10 Thread David Wilkinson
Roger

Just a suggestion:

There is an excellent  open source Word compatible WP - Abiword 
(http:\\www.abisource.com)  - reads, writes and prints Word Docs  
runs on 
GNU/Linux, BSD, Solaris (2.6, 7,8,9), AIX, HP/UX (10.20, 11.0), 
OSF/1, Tru64, Mac OS X,QNX,BeOS oh and I nearly forgot Windows.

Perhaps Word will not be the de facto corporate standard for ever? 
Especially, since the file format does not remain the same!



On Saturday 09 November 2002 5:01 pm,  [EMAIL PROTECTED] 
wrote:
>
> That sounds great, but let's take it a step further. Where I work,
> MS-Word (.doc) is a corporate standard for memos, etc. sent via
> e-mail. We also have several unix (not linux) based machines that
> people use. They have to get PC/Mac users to print these memos
> because there are no decent MS-word viewers available for *nix
> machines. Rev could change this. How about adding a new docText
> property as well? This has been a *nix desired functionality for
> s long.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Web Access - launch Browser

2002-11-09 Thread David Wilkinson
Jeanne
Thanks for your response. Unfortunately, I don't think it is the 
complete answer since the original scriptlet was:

put the selectedtext into tAppName 
Answer file "Select Text file to open " 
If tAppName is not empty then 
put"file:" & it into tFileName 
Get shell (tAppName && tFileName) 
End if

The problem was that the conditional clause never ran because 
tAppName was always empty. The answer dialog lines were inserted one 
at a time to discover if RR had picked up the selectedText, which it 
had but for some reason it would not *put* it into the variable.

However, today it is working as expected - as I said, there are some 
gremlins at work somewhere - ?with running stacks within the dev UI?
There are other issues under Linux  - cutting from the documentation 
works sporadically( though c&p is a bit of a nightmare under X 
anyway), likewise code completion in the script editor and mouse 
wheel scrolling direction is reversed to mention just three off the 
top of my head.  By the way. does RR install by default with root 
privileges - if so that might need to be addressed in due course? - 
though that will not be easy.

> From: "Jeanne A. E. DeVoto" <[EMAIL PROTECTED]> > > This is 
happening because the dialog box takes the focus, so the > text is 
deselected. Instead, you need to save the text in a > variable: > > 
put the selectedText into myText > answer myText > put myText into 
tAppName > answer tAppName

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Web Access -launching external browser

2002-11-05 Thread David Wilkinson
FWIW RevGoURL does not seem to work at all on my Unix box

If you single step through the revLib, the function returns 255, which I take to mean 
success, and nothing else. My workaround is to use:
put "http://"; & the selectedtext into tUrlName 
put shell ("netscape" && tUrlName) 

maybe the same approach will work for you 

This seems to be true of a fair bit of RR on Unix - ie either things do not work as 
expected OR they work and then they stop working. In this instance the library uses 
*get shell .* not put; the message box will launch the browser if you 
enter that command - but the same line in a script will terminate silently with no 
launch.

and another example
 
answer the selectedtext
put the selectedtext into tAppName
answer tAppName

the first dialog box shows the selected text and the second is blank!  ??? 

Still, it is early days.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution