search for: oncancel

Displaying 7 results from an estimated 7 matches for "oncancel".

Did you mean: nocancel
2004 Jun 09
1
Using macros
...m$expr <- NULL mm[[1]] <- as.name("macro") attr(ff, "source") <- c(deparse(mm), deparse(expr)) ## return the macro ff } OKCancelHelp <- defmacro(window=top, OKbutton=OKbutton, onOK=onOK, cancelButton=cancelButton, onCancel=onCancel, helpButton=helpButton, onHelp=onHelp, helpSubject, expr={ OKbutton <- tkbutton(window, text="OK", fg="darkgreen", width="12", command=onOK, default="active") onCancel <- function() { tkde...
2009 Oct 19
1
Problem with geometry manager in TclTK
...grid(tklabel(Choose.frame, text="Format 1 "),file.format1) tkgrid(tklabel(Choose.frame, text="Format 2 "),file.format2) tkgrid(Choose.frame) onOK <- function() { ReturnFormat <<- tclvalue(file.format) tkgrab.release(ask.form) tkdestroy(ask.form) } onCancel <- function() { tkgrab.release(ask.form) tkdestroy(ask.form) } Buttons.frame <- tkframe(ask.form, relief="groove") OK.but <- tkbutton(Buttons.frame, text = " OK ", command = onOK) cancel.but <- tkbutton(Buttons.frame, text = "Cancel", comma...
2005 Jul 12
1
help: how to use tkevent.generate(...)
...a function which can do the operation "click a button", just like using a mouse to click. If tkevent.generate can do that? I tried it as below, but failed. Please give me a hint! tt <- tktoplevel() tkwm.title(tt,"Simple Dialog") onOK <- function(){print("OK")} onCancel <- function(){print("Cancel")} OK.but <- tkbutton(tt, text=" OK ", command=onOK) Cancel.but <- tkbutton(tt, text="Cancel",command=onCancel) tkgrid(OK.but,Cancel.but) tkevent.generate(tt, onOK) Thank you, Shengzhe
2008 Jul 18
0
Retrieving data from a tcl /tk function
...I am sorry if this is an answered question, but I did my homework for a long while and couldn't figure out a way to retrieve data entry from a model dialog. In one of the examples compiled by James Wettenhall: odalDialog <- function(title, question, entryInit, entryWidth = 20, returnValOnCancel = "ID_CANCEL") { dlg <- tktoplevel() tkwm.deiconify(dlg) tkgrab.set(dlg) tkfocus(dlg) tkwm.title(dlg, title) textEntryVarTcl <- tclVar(paste(entryInit)) textEntryWidget <- tkentry(dlg, width = paste(entryWidth), textvariable = textEntryVarTcl)...
2008 Mar 30
0
javascript confirm function in FBJS
...e and replace the missing confirm function with Facebook''s Dialogs. function confirm(text) { dlg = new Dialog(Dialog.DIALOG_CONTEXTUAL).showChoice(''Confirm Request'', text , ''Yes'', ''No''); dlg.onconfirm = function() { return true; }; dlg.oncancel = function() { return false; }; } The above code doesn''t work because confirm needs to return true or false as seen below: if (confirm(''Really delete this record?'')) { new Ajax.Updater ... So, is there a way to make the onconfirm event listener return true to the confi...
2007 Mar 29
0
[926] branches/wxruby2/wxwidgets_282: Update Dialog wx2.6 -> wx2.8 API, remove deprecations and cruft, update doc
...;/span><span class="cx"> * "Dialog#is_iconized":#Dialog_isiconized </span><span class="cx"> * "Dialog#is_modal":#Dialog_ismodal </span><del>-* "Dialog#on_apply":#Dialog_onapply -* "Dialog#on_cancel":#Dialog_oncancel -* "Dialog#on_ok":#Dialog_onok </del><span class="cx"> * "Dialog#on_sys_colour_changed":#Dialog_onsyscolourchanged </span><span class="cx"> * "Dialog#set_affirmative_id":#Dialog_setaffirmativeid </span><ins>+* &qu...
2007 Mar 17
0
[883] branches/wxruby2/wxwidgets_282/swig: API changes for move to WxWidgets 2.8
...bsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param wxCommandEvent& </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ </span><span class="cx"> </span><del>- virtual void OnCancel(wxCommandEvent& event ) ; </del><ins>+ //virtual void OnCancel(wxCommandEvent& event ) ; </ins><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/** </span><span class="cx"> &nbsp&nbsp...