World: r3wp
[!RebGUI] A lightweight alternative to VID
older newer | first last |
OneTom 30-Oct-2005 [2171x2] | has the choose function of the table widget documented somewhere? could someone help finding it? ive just saw it in the source so far.. it is not documented, maybe we should open the documentation for the devoted ones like me who likes documenting while learning undocumented stuff. the wikibook comes to mind again :) |
... IF it is not documented ... | |
Graham 30-Oct-2005 [2173] | There's no choose function in the table widget that I can see. |
OneTom 30-Oct-2005 [2174] | okay, i was lost in the code, i suppose. but how can i select a row or rows programmatically? |
Graham 30-Oct-2005 [2175] | well, you have the selected block. |
OneTom 30-Oct-2005 [2176] | yeees.. and? |
Graham 30-Oct-2005 [2177] | but I think Ashley has to code accessor functions to set these things. |
OneTom 30-Oct-2005 [2178x2] | its copied from the data, i would think |
its no use to change it. mmmm maybe im wrong and used this feature already :) | |
Graham 30-Oct-2005 [2180] | you could try using the engage function .. ie. to simulate a mouse click. |
OneTom 30-Oct-2005 [2181x2] | but let me ask another thing meanwhile: how can i redefine the up/dn or pgup/pgdn keys for field widgets? |
ay.. that would hurt :) | |
Graham 30-Oct-2005 [2183] | I'm guessing you have to trap those keys in the engage function. |
OneTom 30-Oct-2005 [2184x2] | but there is already a smart engage function crafted for widgets having textediting capabilities |
how can i extend that? what is the best practice for solving such situations? | |
Graham 30-Oct-2005 [2186] | except the cursor keys and page up/down don't work in the text editor as of yet. |
OneTom 30-Oct-2005 [2187x3] | pardon? which works and which dont? and dont forget about undoing and copy/paste. keys for those operations also work |
3. question: (im just inspecting rebgui-widgets.r and found this) foreach row picked [insert tail blk pick data row] | |
why is it insert tail blk instead of append blk ? | |
Volker 30-Oct-2005 [2190] | usually speed. |
OneTom 30-Oct-2005 [2191x2] | hmm.. wow. okay, i believe u, thank u |
but as in effect they are equivalent, right? | |
Volker 30-Oct-2005 [2193] | yes. but append is a meazzine. |
OneTom 30-Oct-2005 [2194] | okay, i see now |
Volker 30-Oct-2005 [2195] | just source it. |
OneTom 30-Oct-2005 [2196] | done that, thats why i said "i see now" :) |
Volker 30-Oct-2005 [2197] | isnt that "i source now"? :) |
OneTom 30-Oct-2005 [2198x3] | :)) |
volker, u look like a guru as well, can u help me answering my keybinding problem? | |
i wrote a little csveditor and this is the last thing i need to release it as a useful app | |
Volker 30-Oct-2005 [2201] | Maybe, but did not much with rebgui. What was the question? |
OneTom 30-Oct-2005 [2202x2] | i would like to bind an action to the pgup/pgdn key when im in field widgets preserving all the predefined keybindings of course |
the action would be selecting the next row in a table widget. i cant solve that either but its more possible that i can solve it by myself than figuring out how do the keybindings work in rebgui | |
Volker 30-Oct-2005 [2204] | Can you override the /engage in rebgui? like with feel in vid? |
OneTom 30-Oct-2005 [2205x2] | maybe not exactly like in vid, but it already has a value |
a very complex function | |
Volker 30-Oct-2005 [2207] | Yes, but thee is a trick. |
OneTom 30-Oct-2005 [2208] | and im curious about that wether it contains any extension capabilities or not or im just too blind to recognize it |
Volker 30-Oct-2005 [2209] | I am writing a demo in vid. maybe it helps. |
OneTom 30-Oct-2005 [2210x2] | well that would b great |
http://dunasoft.com/~tom/csveditor.jpg<-- thats what i was talking about | |
Volker 30-Oct-2005 [2212x2] | http://polly.rebol.it/test/test/nextgen/www/../../../test/nextgen/../rebgui/../extend-engage.r |
traps mouseclicks. do not know exactly about keys yet. | |
OneTom 30-Oct-2005 [2214] | aha.. (fancy url :) |
Volker 30-Oct-2005 [2215x3] | My index-builder is a bit unsmart.. |
and i got the url from desktop. when i go up, it adds %../ , when i go back, the folder, up again an so on. | |
http://polly.rebol.it/test/test/extend-engage.r | |
OneTom 30-Oct-2005 [2218] | anyway, i like your experiments. i was browsing around thru your doors yesterday or so |
Volker 30-Oct-2005 [2219] | Thanks :) |
OneTom 30-Oct-2005 [2220] | i programmed turbovision and delphi earlier, so its the usual "overriding a virtual method trick" |
older newer | first last |