[Incrtcl-develop] [ incrtcl-Iwidgets Feature Requests-1758439 ] initialize combobox with defult value
by SourceForge.net other posts by this author
Jul 22 2007 5:49AM messages near this date
[Incrtcl-develop] [ incrtcl-Bugs-1765589 ] auto_import of an ensemble fails
|
[Incrtcl-develop] porting GDB's "insight" to itk-3.3
Iwidgets Feature Requests item #1758439, was opened at 2007-07-22 05:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=383688&aid=1758439&group_id=13244
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: initialize combobox with defult value
Initial Comment:
when i opened windows with combobox the entry is empty,
i will need to open it with defult value.
example for combobox : (please help)
#!/bin/sh
# the next line restarts using wish exec tixwish8.1.8.3.1 "$0" "$@"
#------------------------------------------
package require Iwidgets
# itkwish interprets the rest...
# ----------------------------------------------------------------------
# Doesn't handle focus all that well yet. Not totally bust though...
#wm title . "Combobox Example"
##
## supporting proc to dynamically
## change the second list
##
proc updateList1 {} {
global lst
set sel [.cb1 get]
return
}; # end proc updateList1
## Some lists to populate the
## comboboxes
##
set lst(1) [list Linux Windows]
##=========================================================
## Create several Combobox iwidgets
##=========================================================
##
## Non-editable Dropdown Combobox
iwidgets::combobox .cb1 -labeltext OS: -editable false -arrowrelief ridge -popupcursor h
and2 -selectioncommand updateList1
##
## Add the first combox list
##
eval .cb1 insert list 0 $lst(1)
pack .cb1 -padx 10 -pady 10
#iwidgets::Labeledwidget::alignlabels .cb1 .cb2 .cb3
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=383688&aid=1758439&group_id=13244
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now > > http://get.splunk.com/
_______________________________________________
Incrtcl-develop mailing list
Incrtcl-develop@[...].net
https://lists.sourceforge.net/lists/listinfo/incrtcl-develop
|