• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

AltME groups: search

Help · search scripts · search articles · search mailing list

results summary

worldhits
r4wp5907
r3wp58701
total:64608

results window for this page: [start: 31601 end: 31700]

world-name: r3wp

Group: !RebGUI ... A lightweight alternative to VID [web-public]
Volker:
28-Jun-2006
that chatting was about how to patch, not how to get it to me.

when you have a list of typical commands, eg ctx-menu checkout, its 
as easy as ftp
Volker:
28-Jun-2006
but yes, its a new command to learn :)
Graham:
28-Jun-2006
what would be good is a way to easily save and restore the state 
of all supported widgets
Graham:
28-Jun-2006
I have a display full of anonymous widgets ...
Pekr:
28-Jun-2006
ok, I expect it being just my unwillingness for simple things to 
install new sw. But to be fair, I will give it a try ... Will try 
to install Tortoise or what the hell the name is :-)
Graham:
28-Jun-2006
I save the data to a block and then restore the state
Graham:
28-Jun-2006
that's where I came a cropper with the divide by 0
Graham:
28-Jun-2006
so they act the same .. when i bring up a vid window from rebgui 
and the other way round
Graham:
28-Jun-2006
yes .. only got a new problem now :(
Graham:
28-Jun-2006
it's a logged ticket
Anton:
28-Jun-2006
I can't work on this right now. It takes a while to understand the 
code properly.
Ashley:
28-Jun-2006
Graham, "I meant in the trac .. want to see the diff", Browse Source|Revision 
Log ... then click on a specific Rev or Chgset.


Pekr, "guyyyys, pleaaaaase, when latest changes will be synced?" 
... since you asked so nicely I'm doing it now ...


Pekr, "are you suggesting I should install CSV product?" ... only 
if you want to make source code changes


Graham/Anton: "/keep"; an oversight that a number of people (apart 
from Graham) have found annoying
Pekr:
28-Jun-2006
table column separator color ;-) .... what about a bit of aesthetics? 
Too dark imo :-)
Normand:
29-Jun-2006
I am having a bug in a program interfacing RebGui to RebDB.

The problem is the following. The behaviour of RebGui'following commands 
having a strange effect on the data managed with RebDB:

my clear-UI function do clears a rebgui interface (simply a set of 
fields) to the RebDB data.

But clearing the 'text fields, it does also clears the values in 
the RebDB database.

At first I was using RebGui clear-text command, and tried the other 
View version just to check.
Both are doing the same thing.

Why clearing the interface fields does clears the data in the database. 
 clear-UI does not ask that.

And no instructions to do that appears in the clear-UI function, 
which is not calling any other function either.

It looks like the 'text field of the fields objects in RebGUI works 
as a direct reference to the database.

And nowhere my code calls by reference. I cannot explain that behaviour, 
nor find any hints in my code as to what causes that behaviour?

Any explanation or ideas on where to look for the cause of that behaviour?


UI-fields: [Funiqueid Fchristen-name Fsurname Fbirth Fname-prefix]
clear-UI: does [
	foreach f UI-fields [
		clear get in (get f) 'text
		show (get F)
	]
	ctx-rebgui/edit/focus (get 'Fchristen-name)
]
Ashley:
29-Jun-2006
because copy can be expensive

 That's one reason, but the main reason is to not take the choice 
 away from the developer as it's trivial to copy a reference but impossible 
 (or at least not easy) to re-reference a copy.
Anton:
30-Jun-2006
That's right. This is not a RebGUI or RebDB issue, it is a Rebol 
issue that everyone needs to be aware of. If you don't copy series 
(ie. strings) then they are by reference. Use COPY a few times and 
you'll be right.
Graham:
30-Jun-2006
If you're in an area widget, and leave, is the caret position stored 
anywhere?  I want to try and insert text by clicking on a button 
outside the area widget were the caret was before.
Volker:
30-Jun-2006
have only a few minutes left, back in a few hours :( hope i find 
them quickly.
Normand:
30-Jun-2006
When there is text in a field and we do the focus on it, then the 
text is shaded black.  Is there a command where, instead of shaded 
region, the focus is simply the insertion point placed before the 
string in the field.  The shaded region presumes that we will replace 
it all with a new value.  An insertion point suggest that we will 
correct the entry.  The difference is that we do not have to systematically 
hit a left arrow key first, to correct the field.
Volker:
30-Jun-2006
Note to http://home.wilddsl.net.au/anton/rebol/doc/create-a-rebgui-widget.html#section-3
needs also append to 'words
 
ctx-rebgui/widgets: make ctx-rebgui/widgets [
    append ctx-rebgui/words 'my-rebgui-widget ;!!
    my-rebgui-widget: make ctx-rebgui/rebface [

    ]
]
Graham:
30-Jun-2006
suggest that in the date requestor, either change result: copy "" 
or have a refinement to return an empty string if the requester is 
cancelled.
Graham:
1-Jul-2006
Any way to filter the display of a table based on row criteria ?
Volker:
1-Jul-2006
Here is a litle demo how to access the caret even if on-unfocus is 
called. eg a buton is pressed. or user edits in a find-area and wants 
to search in the edit-area. works by overriding on-unfocus and  saving 
caret in face. unfortunally i was not able to do it the other way 
around. i can restore the face-caret on on-focus, but something unfocusses 
later when i do that by a button. http://polly.rebol.it/test/test/rebgui/../../test/rebgui/edit-area.r.
Normand:
1-Jul-2006
I want to add some commands to the top window red "close" square 
button, so that I commit changes to the database and save some data 
before the close.  I can add a quit button on the interface, but 
it is still important that the top window close button do the same 
thing.  I dont see any instructions about that, neither in the RebGui 
display guide, nor the vid spec.  Can someone provide the code to 
do that, or where to find it explicitly?
Henrik:
1-Jul-2006
remember that insert-event-func inserts the event in a block of events 
so if you run the same program multiple times from console, the event 
will be added again the next time you run it and therefore run twice.
Normand:
4-Jul-2006
A so smart pill marketer created false defect on the timeline http://trac.geekisp.com/rebgui/timeline.
Normand:
4-Jul-2006
I am unable to refresh a textlist.  My text list is defined as

Fall-ids: text-list 80x60 #HW data (db-select uniqueid contactDB) 
[
			new-cursor: rowid-of-identifier? face/selected
			valid-set: validate-cursor new-cursor
			if valid-set [show-values-of-current-cursor]
			]
And my function to refresh it is :
refresh-ids-list: does [
	Fall-ids/data: (db-select uniqueid contactDB)
	Fall-ids/redraw
]

Calling this, the data gets changed, but the textlist does not redraws 
itself?  I did try with set in Fall-dis 'data and show Fall-ids, 
without effect either. 3 hours later I am still in neverland.  Any 
Ideas?.
Normand:
4-Jul-2006
Thank-you, it works.  It is not clear in my head, as to why 'insert 
clear' is better than 'TheObject/Data: "NewListOfValues"', but Ill 
try to remember it by hart.  I am nearing completion of a small example 
of RebGui+RebDB app.  Last glitches are show-focus and display/close.

As for the option in display to capture the close event, how do I 
state it?  As this does not work.
Contact: compose/deep/only [
; Gui definition
]
do show-contact: does [
	display/min-size "ContactDB" Contact 680x650
	do[show-first-rowid]
	display/close [] [shutdown] ; <-- Culprit
	]
do-events
[unknown: 10]:
5-Jul-2006
Never the less, a very nice result guys !!! Ill use it ;-)
Ashley:
6-Jul-2006
Tab (and shift-tab) changes focus. 'with is a VID construct, not 
RebGUI (unless Cyphre's changes are more far reaching than I'm aware 
of ;) )


The area in tour.r is the only tabable widget so it re-tabs to end 
of text. Try:

	display "" [area area area]


to see how it works when more than one tabable widget is/are present.
Ashley:
6-Jul-2006
No reason why it can't be supported as the following shows:

display "" [
	a: area
	button [insert tail a/text tab]
]

but which widgets should support it? area? text? others?


If Tab is redefined for these widgets then how does one navigate 
to other widgets apart from mouse clicks? Or should we have a special 
key combination for "hard-tabs"?
Robert:
7-Jul-2006
Maybe it's best to support SHIFT-TAB as TAB inside an area. Using 
TAB to navigate between fields is very common to a lot of users. 
And in other programs (like Excel) you have to use ALT-RETURN to 
insert a hard line break in a cell. Just RETURN leaves the cell.
Ashley:
7-Jul-2006
Graham, that caret insert question you had before can be easily solved 
with something like:

display "" [
	a: area "12345"
	button [
		all [
			system/view/caret
			insert at a/text index? system/view/caret "-"
			show a
		]
	]
]


More complex variations (to handle keyboard focus change, multiple 
area targets etc) can be built with code like:

	...
	area on-unfocus [i: index? system/view/caret true]
	...


but the first example handles simple "click within area, click on 
button" type scenarios pretty well as is.
Graham:
8-Jul-2006
Thanks Ashley, I'll give that a go.
Anton:
8-Jul-2006
You should check if the caret is in your area/text :
button [all [
	same? head system/view/caret head a/text
	insert ...
Graham:
9-Jul-2006
** Internal Error: Stack overflow
** Where: into-widget
** Near: unless find [object! block!] type?/word get
** Press enter to quit...

Got this error again on tabbing out of a field :(
Volker:
9-Jul-2006
Could be that after a button-action the focus is removed, so show-focus 
does nothing.
Volker:
9-Jul-2006
so either you have a parent pane as child-pane, or it has a bug.
Graham:
9-Jul-2006
so, I think it's a rebgui bug
Robert:
10-Jul-2006
I think WRT widgets we are mostly complete. What I see as the next 
big step is to add runtime APIs to the widgets like: changing the 
buttons in a radio-group, selecting a button programmatically.
Henrik:
10-Jul-2006
>> ? help
USAGE:
    HELP 'word

DESCRIPTION:
     Prints information about words and values.
     HELP is a function value.

ARGUMENTS:
     word -- (Type: any-type)

>> do %/c/rebol/rebgui/rebgui.r
Script: "RebGUI system" (11-Jul-2005)
Script: "Untitled" (none)

>> ? help
USAGE:
    HELP 'word   word -- (Type: any-type)>>

What does this?
Henrik:
11-Jul-2006
print was set to NONE, but I was using too old a version of RebGUI 
it seems.
Henrik:
11-Jul-2006
Is the "How to create a RebGUI 0.3.0 widget" no longer valid? I can't 
make it work with RebGUI 0.4.2, but it says nothing about not being 
compatible anywhere...
Henrik:
11-Jul-2006
nope, I need to find a replacement to layout/tight
Henrik:
11-Jul-2006
which basically should be display without needing a title and just 
the block...
Henrik:
11-Jul-2006
is there a method to display a layout inside another layout?
Anton:
11-Jul-2006
Henrik, yes since then Rebgui was rearranged a bit.
Anton:
11-Jul-2006
Pekr, the drop-list would have to be a window itself to do that.
Anton:
11-Jul-2006
Doc updated. http://home.wilddsl.net.au/anton/rebol/doc/create-a-rebgui-widget.html
Anton:
11-Jul-2006
No... *source* is vital. Documentation is a mere reflection.
Anton:
11-Jul-2006
Pretty sure, unless I misunderstand you (I didn't look at the source). 
 How can a rebol/view face hang over the edge, overlapping its parent 
window ?
Anton:
11-Jul-2006
It would not be *in* the window, then. It would have to be a new 
window or layer of some kind, supplied by the OS.
Anton:
11-Jul-2006
I've made a pop-menu which uses borderless windows. It works on WinXP 
but the problem is we can't guarantee that windows on other platforms 
don't have forced decorations on their windows.
Anton:
11-Jul-2006
so each menu level would look less like a menu and more like a window.
Graham:
11-Jul-2006
This is a problem with drop lists. I thought though that this was 
one problem Cyphre was tackling
Pekr:
11-Jul-2006
uh, the Trac is really a stupid system .... damned, where have we 
moved? Can this system produce some simplistic way of how to get 
particular widget source? Without line numbering? That is just crazy 
....
Pekr:
11-Jul-2006
uf, there is, at the very bottom ... that system is pretty denerving 
for normal typical user, who is not a developer, and can't get easily 
to source of widgets, as rebgui.r comes in despaced version ...
Anton:
11-Jul-2006
If it is within a window face it can't go outside, with rebol/view 
system as it is currently.
Graham:
11-Jul-2006
Got this error again !  third time now, and this was a screen with 
2 fields, and a couple of buttons
Ingo:
12-Jul-2006
Referencing Henriks message in Ann-Reply "I need a way to show a 
sub-layout" and my own from 26-jun-2006


This is another point that the way 'display works is sub-optimal: 

When building a gui we need 3 actions: layout, display, event-handling.
Having these 3 as distinct actions works well.

Having 1 action for layout and 1 other for display and start of event-handling 
works.

BUT having 1 action for layout AND display doesn't make sense. Because 
you can't build sub-layouts, and you are stuck with a displayed but 
non-functional window after this step.
Graham:
12-Jul-2006
Ashley, is there a way we can halt the recursion before it causes 
a stack overflow?
Graham:
12-Jul-2006
I thought there was supposed to be a switch in display to allow you 
to construct a layout without viewing it.
Pekr:
12-Jul-2006
Anton - today I consulted with Cyphre, and it is really how I thought 
about it - drop-list, and its inside/outside argument really allows 
you to have the drop-list to go beyond the border of parent app. 
The case is, that there is simply a bug, which Cyphre nearly fixed 
(hilite stopped working)
Pekr:
12-Jul-2006
guys, I would like to open some UI look chat .... not much, but a 
bit.... Cyphre will look for me to do some slight improvements, e.g. 
to allow gradients for tabs, etc.
Pekr:
12-Jul-2006
Is there anyone else who thinks, that rounded tabs do not work? As 
well as rounded buttons? While we tried to stay WinXP look compatible 
as much as possible, in some situations, rounded buttons do not work 
- try to change tour.r background color to any of darker colors - 
those tabs look more like a leak, than real shape - simply disturbing 
a bit. I have such reaction independently confirmed by Bobik, and 
my brother objected too, without telling him what to judge ....
Henrik:
12-Jul-2006
Something I did a while ago
[unknown: 9]:
12-Jul-2006
Perhaps buttons need a "touch" flag so that the side that touches 
another button takes of the rounded edges.
Graham:
12-Jul-2006
And I gather Windows Vista is going to bring a whole new heap of 
problems trying to match their new GUI
Graham:
13-Jul-2006
happens once a day now
Volker:
13-Jul-2006
And his error-message said in "into-widget". Thats in %rebgui-edit.r 
, looks for a tabbable face and is recursive.
Volker:
13-Jul-2006
A little bug is in the foreach. A pane-block can still conatin functions 
(for lists), and that is not checked.
Volker:
13-Jul-2006
put a function in a block in a pane.
Volker:
13-Jul-2006
but thats a theoretical possibility. the code does not look like 
it.
Graham:
13-Jul-2006
needs to be rewritten to be a non recursive function
Volker:
13-Jul-2006
its called from 'next-field too. That recurses too. looks a bit suspicious 
to me at first read. but then the error-m,essage should sometimes 
show it and not always bail out on 'into-widget IMHO.
Volker:
13-Jul-2006
resetting focus would be worth a try. or unfocus.
Graham:
13-Jul-2006
This pops up a VID window .. enter some text and then "Accept"
Graham:
13-Jul-2006
1. Highlight the first text field
2. Click on the "server" button
3. Highlight the "type here" field to give focus
4. Click on the "OK" button
the rebgui no longer has focus.
Now do tab .. and it crashes with a stack overflow.
Volker:
13-Jul-2006
;a quick fix seems to be
	process-keystroke: make function! [face event /local f] [
		switch/default event/key [
			#"^-" [
				if all[view*/focal-face viewed? view*/focal-face][
[unknown: 9]:
13-Jul-2006
Graham: "For me, function is beauty"


As it is for me.  But your statement here implies that this issue 
is superfluous in light of deeper issues, which mischaracterizes 
the problem.   Form and function go hand in hand.  In a GUI (which 
literally implies both form and function) subtle information is transmitted 
in the cross roads of the form and the function.


Links, buttons, rounded buttons mean different things in different 
places.  To marginalize it may be myopic.


Anton: "I think that can't be good for people with vision problems. 
I say stick to the simple old ways."


We are actually going to offer both, we are actively working on this. 
 


.
Anton:
13-Jul-2006
Volker, last time I looked a pane *block* cannot contain functions. 
(I remember wishing it could.)
Robert:
15-Jul-2006
I want to add a row to a table but I don't want to keep a special 
block containing all the table values. How to do it? I only can get 
one entry added and than it's reused. Looks like some sharing is 
happening.
Graham:
15-Jul-2006
this was using a scrollwheel on a field
Ashley:
15-Jul-2006
Robert, have a look at %tour.r to see how it adds rows to a table 
(and refreshes).
Graham:
19-Jul-2006
Most of the time I have no need for cell level addressing so the 
table works fine.  But I could use a grid someday ...
Graham:
19-Jul-2006
but a table that could colour rows would be very nice too
Graham:
19-Jul-2006
forgotten, how to display a particular tab programmatically?
Robert:
20-Jul-2006
Short note: Cyphre did, what I call, an input-grid. It's a static 
grid that you can specify which even generates names to access the 
cells. Might be useful in many cases as well.
Pekr:
31-Jul-2006
Hi, I would like to get some feedback on some rebgui-grid decision. 
The thing is, I need to do it till tomorrow, to stabilise a bit and 
go for more final version ....
Pekr:
31-Jul-2006
how do you solve possible change to amount of data? My friend working 
with SAP grid suggested to me simply keep index block, and assign 
each record a recno virtually, as with update, in multiuser system, 
there could come some new records, or some may disappear ....
Henrik:
31-Jul-2006
in my experience, data manipulation is never a performance issue. 
what is a performance issue, is related to VID and SHOW
[unknown: 9]:
31-Jul-2006
At what "size" of array do you notice slow downs?  We are about to 
add a simple spreadsheet to Qtask.  We will be facing the same issues. 
 In our case we will be using Javascript on the front end, but the 
issues are similar, we have to decide which parts work on the client 
(virtual as you would say), or when we do a complete refresh.
Henrik:
31-Jul-2006
I think it's depending on view size rather than the number of cells. 
A list with 10x10 entries in a 300x300 configuration can be faster 
to scroll than a 5x5 in an 600x600 configuration. LIST-VIEW uses 
iterated faces to generate the entries, so whenever the list view 
needs to be updated in just one cell, the entire list face is rerendered 
automatically.
Henrik:
31-Jul-2006
also I don't really notice slow downs on very large arrays, because 
I always work from a sorting index, a plain 'pick of the row need 
from the data array. this is pretty fast.
Henrik:
31-Jul-2006
if SHOW was much faster, LIST-VIEW could be insanely fast. you could 
probably easily scroll a 50x50 array in fullscreen 1024x768 at 25-40 
fps. I've noticed that when doing manipulations when not updating, 
such as sorting and moving entries in one go, these things are close 
to instant. The MOVE-ROW-UP/DOWN operations work like that.
Henrik:
31-Jul-2006
probably somewhere around 2-5 fps with a fullscreen list.
Robert:
31-Jul-2006
Petr: IMO you need to decide, do you have all the data in memory 
or not. If it's up to 10.000 lines and 10 columns you shoul be able 
to do this. Than per line one block. Either have the block contain 
only values (that position matters) or use a name/value pair. Than 
it doesn't. Going for name/value pairs with hash! should be pretty 
fast.
Pekr:
31-Jul-2006
... without the need to adapt block to any other format. However, 
I think I decided to not modify original data block, and one of the 
reasons is easy call to update sql from the row. If I let user change 
order of  fields directly, the update could be a bit tricky, without 
knowing which field is on particular position.
Ashley:
31-Jul-2006
If I let user change order of  fields directly

 ... is this a requirement? I've never met an end user who ever wanted 
 or needed to change order of columns ... good UI design will present 
 only the columns and rows needed, and in the most appropriate order. 
 "Appropriate" could be by order of importance, logical sequence (e.g. 
 street number followed by street name), or tied back to an "external" 
 order/sequence (e.g. another application, paper-based forms, etc).


I think something like grid is far easier to over-engineer than under-engineer! 
;)
Pekr:
1-Aug-2006
Ashley - I don't know how many users you met, or how are particular 
users' habits in various countries, but I can guarantee you, that 
we had pretty powerfull grid even 10 years ago in Clipper (DBase 
era). I should dig some app and make a screen-shot probably :-) Even 
in DOS, our grid allowed to freeze some columns, each user could 
set its own column order, add available column or hide it, set column 
width, and save it - for each DB. It was pretty heavily used.....
31601 / 6460812345...315316[317] 318319...643644645646647