World: r3wp
[View] discuss view related issues
older newer | first last |
Endo 1-Dec-2010 [10484] | I see, thanks. |
ddharing 7-Dec-2010 [10485] | I'm having trouble changing the scroller size (i.e. width) for the text-list style. Changing the font size was easy enough. I'm trying to make it bigger to accommdate fat fingers on a touch screen display. Has anyone done this before? Thanks. |
Anton 7-Dec-2010 [10486x3] | print mold svv/vid-styles/text-list/init |
Note the hardcoded size 16x0. | |
You just need to patch that. | |
ddharing 7-Dec-2010 [10489] | Anton, that worked great. Thanks. |
Anton 7-Dec-2010 [10490x2] | stylize/master [ fat-list: text-list with [ use [blk][ init: copy init blk: copy select init [pane: layout/size] replace/all blk 16x0 32x0 change/only find/tail init [pane: layout/size] blk ] ] ] view center-face layout [fat-list "Is the scroller" "fat enough?"] |
Oh, you already did it. | |
ddharing 7-Dec-2010 [10492] | Yes, but yours is more elegant than the crude patch job I just did to the actual text-list style. :) |
Anton 7-Dec-2010 [10493] | It depends on if you need the original text-list style unmodified alongside your patched version. If you intend merging in other code, then it's better to derive a new style. If not, then it doesn't matter. |
ddharing 7-Dec-2010 [10494] | I decided to leave the original style alone and use your fat-list definition for the reasons you stated. Thanks. |
GrahamC 25-Dec-2010 [10495] | When writing a spreadsheet/grid, is it better to give each cell a name, or work out the location based on a grid reference? |
Steeve 25-Dec-2010 [10496] | I would say both of them, but are you talking about the user interface of the style or something else ? |
GrahamC 25-Dec-2010 [10497] | accessing cells programmatically .. ie. populating them with data |
Robert 26-Dec-2010 [10498] | Both make sense. We use a name generator on our RebGUI grid implementation, the nice thing about this is, that it's position independent. If the column order etc. changes, the names stay the same. |
Gregg 27-Dec-2010 [10499] | If you expect to support large, dense, spreadsheets, you may want to minimize storage by having a name mapping interface. If the target is small/medium/sparse sheets, having the name explicit for each cell may be practical. In any case, having a alias system would be nice, for named cells and ranges. |
DideC 28-Dec-2010 [10500x3] | >> view layout [ [ box white 327x327 draw [ [ pen logo.gif fill-pen off box 100x100 300x300 [ ] [ ] ** Script Error: draw expected image argument of type: image pair ** Where: do-facets ** Near: draw [ pen logo.gif fill-pen off box 100x100 300x300 ] |
...but this is an example from the Wiki docs : http://www.rebol.net/wiki/Pen | |
It error out with 2.7.7, 1.3.1, 1.2.8 so whats-up ? Is this just R3 Draw capability ? | |
Cyphre 28-Dec-2010 [10503] | you are missing the EFFECT facet in your code (the DRAW block is inside EFFECT block in R2) so the correct way is: view layout [ box white 327x327 effect [draw [ pen logo.gif fill-pen off box 100x100 300x300 ]] ] |
DideC 10-Jan-2011 [10504] | Oh my god. sorry for the mistake. Jumping from R2 to R3 syntax make me dumb. |
GrahamC 18-Jan-2011 [10505x2] | Is there a way to set focus on a field and then send some characters into the keyboard buffer or something to simulate key strokes? |
Or, should I be looking at some windows macro programs? | |
Maxim 18-Jan-2011 [10507] | you can in glass ;-) |
GrahamC 18-Jan-2011 [10508] | unfortunately I can't rewrite 1000s of lines to just solve one issue |
Maxim 18-Jan-2011 [10509] | the standard view doesn't have programmable events. but you can set the field's data after focus... |
GrahamC 18-Jan-2011 [10510] | that doesn't work .. so I'm thinking some key recorder or something |
Maxim 18-Jan-2011 [10511] | what do you mean it doesnt work? |
GrahamC 18-Jan-2011 [10512x4] | it's a RebGUi issue |
there's a bug in my widget and i have to stuff one character in it, delete it and then insert the characters I want | |
I don't think you can insert a del | |
or backspace ... | |
Maxim 18-Jan-2011 [10516x3] | you can't generate events in normal view R2. |
though you can call a face's feel if you want. | |
just build an object with the same fields as an event and it will work :-) | |
GrahamC 18-Jan-2011 [10519] | is there a windows key stroke recorder? |
Maxim 18-Jan-2011 [10520] | yeah it exists. just google it. |
GrahamC 18-Jan-2011 [10521x2] | hmm...maybe something else. just control the mouse and the keyboard buffer |
I thought Gregg did some Api work with windows... can't find it by googling. | |
ChristianE 18-Jan-2011 [10523] | Leaving all RebGUI specialities aside, can't you just patch the widgets FEEL/ENGAGE to allow objects being passed to it? If there is a point where you're in control to FOCUS the face in question, that may be possible. |
GrahamC 18-Jan-2011 [10524] | I can't actually get focus to the face either :( |
Gregg 20-Jan-2011 [10525] | My old send-keys stuff should be around somewhere. If not, let me know and I'll zap it to you. |
Maxim 20-Jan-2011 [10526] | did it not rely on the console being opened to work? |
GrahamC 20-Jan-2011 [10527] | Gregg, please send it to me |
Gregg 21-Jan-2011 [10528] | Graham, sent. |
GrahamC 22-Jan-2011 [10529] | Thanks .. looks like send-keys solves my problem too :) I needed to send a backspace to a rebgui field to initialize it and this works |
Maxim 29-Jan-2011 [10530] | for those who don't know how to change the title of a window in R2.... rebol [] win: view/offset/new layout [ button 400x20"change window name" [ win/text: random "ogiue goiueng oesigneso ginue sogine sgioun " win/changes: [text] show win] ] 200x200 do-events |
DideC 31-Jan-2011 [10531] | The following code cause an error if you click on the window (XP SP2) : view layout [box effect [ draw [ pen none navy line-pattern 2 7 2 3 ]]] Does others could confirm the problem ? |
Henrik 31-Jan-2011 [10532] | it just quits here in 2.7.7. |
Oldes 31-Jan-2011 [10533] | It's known bug. At least Maxim was talking about it with Cyphre in OSX group a few days ago. |
older newer | first last |