r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!RebGUI] A lightweight alternative to VID

Henrik
15-Jun-2005
[1486]
** Script Error: scroller has no value
** Where: display
** Near: attribute-color: get arg
>>


This is all I get when I start 031 after installing it on top of 
030...
Anton
15-Jun-2005
[1487x5]
SCROLLER has not been defined in the lastest rebgui-widgets.r
I get the same error.  A quick hack is to add this before the last 
line in rebgui-widgets.r:
; hacked in by Anton
	scroller: make slider [data: [arrows]]
Having done that, though, I see weird scroller behaviour - bugs I 
should say, with the operation of the scrollers in the tour.
Maybe it's something to do with being inside a tab panel. I will 
investigate.
Pekr
15-Jun-2005
[1492]
Anton - even with your line it does not work ...
Anton
15-Jun-2005
[1493x5]
There is also a problem with   slider-face/color: colors/widget  
 which is the same as tab-panel's background color. I tend to think 
that is an inherent problem with tab-panel, it being a container 
for other widgets.
Pekr, it works for me - what's the error you get?
(note: the last line is the last end square bracket ]  )
Slider bug fixed.
This is the patch:
	;;offset: event/offset - either action = 'time [face/offset][0]

 offset: event/offset - either action = 'time [win-offset? face][0]
I must say it's very cool to be able to use functions like win-offset? 
without worrying about backward compatibility :-)
Pekr
15-Jun-2005
[1498x3]
how to apply that? Still does not work ...
wouldn't it be better to re-release instead of adding xy lines here? 
:-)
>>  scroller: make slider [data: [arrows]]
** Script Error: slider has no value
** Where: halt-view
** Near: scroller: make slider [data: [arrows]]
Vincent
15-Jun-2005
[1501]
Anton: backward comptability wasn't  the only problem - VID functions 
aren't used to allows /Face (SDK) compatibility without VID components.
Pekr
15-Jun-2005
[1502]
ok, finally got it working ...
Anton
15-Jun-2005
[1503]
Vincent, you're right.  Happily, the Widget Designer's Guide says 
I am allowed to use win-offset?  :)
Vincent
15-Jun-2005
[1504]
good :)
Anton
15-Jun-2005
[1505x2]
If you didn't mention that I would not have checked, though.. :)
site: http://www.lexicon.net/antonr/rebol/
load-thru/check site/rebgui/slider.r 1.0.6
do site/rebgui/demo-slider.r
Ashley
15-Jun-2005
[1507]
Sorry guys, my fault for the confusion as I forgot to include the 
modified %tour.r. I've refreshed the zip with a "b" suffix to avoid 
any caching issues, and added Anton's fix as above:

	http://www.dobeash.com/files/RebGUI-031b.zip
shadwolf
15-Jun-2005
[1508x5]
We forgive you ;)
Well at least I forgive you ;)
the images directory is missing ...
In teh readme.txt it could be usefull to make some text about your 
web site; You can find illustration about how to use rengu in tour.r 
file and you can refeer to http://www.dobeash.com/reguifor complete 
and detailled documentation. You can contact me directly for any 
suggestion bugreport improvement in AlteME REBOL3
rengu mean rebgui  I don't know why I have some problems to tip text 
today :)
Ashley
15-Jun-2005
[1513]
Done. Correct link is: http://www.dobeash.com/it/rebgui/
shadwolf
15-Jun-2005
[1514]
Geat the thing is that people will use it in a test mean then have 
readme.txt and found lot tips to where to find more documentation 
and samples
yeksoon
15-Jun-2005
[1515]
like the initial intro. on what rebgui is..as oppose to 'why NOT 
VID'

a very clear focus of rebgui purpose
shadwolf
15-Jun-2005
[1516x2]
I think that's more a joke than a real lite motiv ....
RebGUI intents to extant and embeter VID but it's obviously a layer 
over VID ;)
Rebolek
16-Jun-2005
[1518]
I can CTRL+A and CTRL+C to get password field.
Graham
16-Jun-2005
[1519]
So, although the actions are happening, the visual feedback is not 
ie. the password field does not highlight
Rebolek
16-Jun-2005
[1520]
it does not highlight but it should not let me to copy password
Graham
16-Jun-2005
[1521x2]
Just wondering whether the tab in a tab panel should perform it's 
associated action each time it is clicked as opposed to the current 
behaviour.
In this way, it differs from the action of a button.
Ashley
16-Jun-2005
[1523]
But it does perform its action each time it is clicked ... *unless* 
it is already "active" (i.e. we ignore clicks on the currently active 
tab). If the intent / desire is to have a "refresh" type ability 
then specifying a button for that tab (which calls the action) is 
probably the better way to go.
Graham
16-Jun-2005
[1524x4]
I'm not sure of that.
the only reason to click again on an active tab would be to refresh 
the panel.
presumably there is code there that checks to see if the tab is active, 
and disallows the action.
ie. ordinarily, the programmer is trying to save a few cpu cycles 
by doing nothing when the user clicks again on the current tab.  
But if the tab already has an active action associated with it, might 
as execute it. Otherwise, the programmer has to use up valuable display 
space by adding another button, or the user has to click on another 
tab, just so that they can click on the first tab they originally 
wanted to click upon.
Ashley
16-Jun-2005
[1528x3]
You're forgetting the, "Oops, I didn't mean to click that again / 
twice" factor. ;) Also, how often [in windows] does clicking an active 
tab refresh it's contents? I can't think of any off-hand. I'm not 
saying it's a bad idea, just how familiar would most folks be with 
it.
A simple image-based button replacement. Thoughts?
button: make rebface [
		size:	12x4
		text:	""
		data:	reduce [
			load #{

    89504E470D0A1A0A0000000D49484452000000070000000E0806000000E35D06

    1B0000001374455874536F667477617265005245424F4C2F566965778FD91678

    0000006D49444154789C7DD0210EC0201404510EC78DB90937402030080C09E6

    3743B250DAA62423D8574C9D9939EFBD3D6377B7CB3ADA9C608CB1EABD6FD440

    AD35ABB56E1410504A39911704A49436F2B502628C6FD4AB0319D527E69C672F

    6450C0811A2884305B481A0513FF7EFC050B081E1B1469CACD0000000049454E
				44AE426082
				}
			load #{

    89504E470D0A1A0A0000000D49484452000000070000000E0806000000E35D06

    1B0000001374455874536F667477617265005245424F4C2F566965778FD91678

    0000004E49444154789C63F8FFFF3F838B8BCB7F740C12874B6CDEBC198E6162

    0CE812C80A50242F5DBAF4FFE1C387608C2209921828499802ACAE8561E28D85

    09BE7CF9125512844182300C0F3E7C010F0010F10EBBAF4E057A000000004945
				4E44AE426082
			}
			load #{

    89504E470D0A1A0A0000000D49484452000000070000000E0806000000E35D06

    1B0000001374455874536F667477617265005245424F4C2F566965778FD91678

    0000007049444154789C63F8FFFF3F838B8BCB7F740C12874BFCBB3F0B8E6162

    0C30893F97AAE018A60045F2FBF7EF244AC28CFBF4E9139C0D97FC753C118CDF

    BD7B0767C3257FEEF306E3972F5FC2D9C449FED8620AC64F9F3E85B331241F3E

    7C885B1219C32541F8E974063886071FBE800700F5AD02E08E740D5300000000
				49454E44AE426082
			}
		]
		image:	first data
		effect:	[mix extend 3x7 1x1]
		font:	make default-font [align: 'center valign: 'middle]
		feel:	make default-feel [
			over: func [face act pos] [
				face/image: either act [face/data/3] [face/data/1]
				show face
			]
			engage: func [face act event] [
				either act = 'down [
					face/image: face/data/2 show face face/action face
				][
					if act = 'up [face/image: face/data/1 show face]
				]
			]
		]
		init:	does [effect/4: size - image/size]
	]
Anton
16-Jun-2005
[1531x4]
Mmm. Seems no better or worse to me. Maybe the text is slightly easier 
to read.
I don't think the extra code size is worth it.
Ashley, what do you think about  tab-panel's color = colors/widget 
?   slider's color  = colors/widget  as well, so it's background 
is indistinguishable from tab-panel.  I tend to think tab-panel is 
wrong to use colors/widget
*its background*
BrianH
16-Jun-2005
[1535]
This code segment may be bigger in appearance, but it is more efficient
when run, both in memory and time.

data: [
    #[image! 7x14 #{

        000000444444444444444444444444444444000000444444444444FFFFFF

        FFFFFFFFFFFF444444444444444444FFFFFFFAFAFAFAFAFAFAFAFAF7F7F7

        444444444444FAFAFAF7F7F7F7F7F7F2F2F2EEEEEE444444444444F7F7F7

        F7F7F7F7F7F7EEEEEEE9E9E9444444444444F7F7F7F2F2F2F2F2F2E9E9E9

        E1E1E1444444444444EEEEEEEEEEEEEEEEEEE1E1E1D2D2D2444444444444

        EEEEEEEEEEEEE9E9E9E1E1E1D2D2D2444444444444E9E9E9E9E9E9E9E9E9

        E1E1E1D2D2D2444444444444E9E9E9E5E5E5E5E5E5E1E1E1D2D2D2444444

        444444E1E1E1E1E1E1E1E1E1D2D2D2D2D2D2444444444444D2D2D2D2D2D2

        D2D2D2B3B3B3B3B3B3444444444444444444B3B3B3B3B3B3B3B3B3444444
        444444000000444444444444444444444444444444000000
    } #{
        FF0000000000FF000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00FF0000000000FF
    }]
    #[image! 7x14 #{

        000000444444444444444444444444444444000000444444444444B3B3B3

        B3B3B3B3B3B3444444444444444444B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3

        444444444444B3B3B3B3B3B3D2D2D2E1E1E1E1E1E1444444444444B3B3B3

        D2D2D2D2D2D2E1E1E1E1E1E1444444444444B3B3B3D2D2D2D2D2D2E1E1E1

        E1E1E1444444444444B3B3B3D2D2D2D2D2D2E1E1E1E1E1E1444444444444

        B3B3B3D2D2D2D2D2D2E1E1E1E1E1E1444444444444B3B3B3D2D2D2D2D2D2

        D2D2D2E1E1E1444444444444B3B3B3B3B3B3D2D2D2D2D2D2D2D2D2444444

        444444B3B3B3D2D2D2D2D2D2E1E1E1E1E1E1444444444444B3B3B3E1E1E1

        E1E1E1E9E9E9E1E1E1444444444444444444E9E9E9E9E9E9E9E9E9444444
        444444000000444444444444444444444444444444000000
    } #{
        FF0000000000FF000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00FF0000000000FF
    }]
    #[image! 7x14 #{

        000000444444444444444444444444444444000000444444444444FEDF9A

        FEDF9AFEDF9A444444444444444444FEDF9AFCD27AFCD27AFCD27AFEDF9A

        444444444444FEDF9AFCD27AF7F7F7FCD27AFEDF9A444444444444FEDF9A

        FCD27AF7F7F7FCD27AFEDF9A444444444444FCD27AFCD27AF2F2F2FCD27A

        FCD27A444444444444FAC761FAC761EEEEEEFAC761FAC761444444444444

        F9BE4BF9BE4BE9E9E9F9BE4BF9BE4B444444444444F9BE4BF9BE4BE9E9E9

        F9BE4BF9BE4B444444444444F8B435F8B435E5E5E5F8B435F8B435444444

        444444F8B435F8B435E1E1E1F8B435F8B435444444444444F8B435F8B435

        F8B435F8B435F8B435444444444444444444E59700E59700E59700444444
        444444000000444444444444444444444444444444000000
    } #{
        FF0000000000FF000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00000000000000000000
        00FF0000000000FF
    }]
]