7 More Discussions You Might Find Interesting
1. Programming
Hello All,
I am a learner in C++. I was testing my inheritance knowledge with following piece of code.
#include <iostream>
using namespace std;
class base
{
public :
void display()
{
cout << "In base display()" << endl;
}
void display(int k)
{... (2 Replies)
Discussion started by: anand.shah
2 Replies
2. Programming
I have the two class definition as follows.
class A { public: int a; };
class B : virtual public A{ };
The size of class A is shown as 4, and size of class B is shown as 16. Why is this effect ?. (2 Replies)
Discussion started by: techmonk
2 Replies
3. UNIX for Advanced & Expert Users
Hi all!
I am trying to register a device in an existing device class, but I am
having trouble getting the pointer to an existing class.
I can create a class in a module, get the pointer to it and then use
it to register the device with:
*cl = class_create(THIS_MODULE, className);... (0 Replies)
Discussion started by: hdaniel@ualg.pt
0 Replies
4. Programming
Hi,
I believe the next code is wrong:
class Egg {
Egg e;
int i;
Egg(int ii=0) : i(ii) {}
};
because you would end up with an endless definition (memory allocation) of Egg objects, thus int i.
Ok, so God Eckel proposes for a singleton:
class Egg {
static Egg e;
int... (5 Replies)
Discussion started by: xavipoes
5 Replies
5. Programming
Hi, i have a question about C++. Is it possible to declare a class with a member ot the same class? For example, a linked list or i want to convert this C code to C++ class (Elemento)
typedef struct elemento
{
char name;
char value;
List<struct elemento> ltElementos;
... (7 Replies)
Discussion started by: pogdorica
7 Replies
6. UNIX for Dummies Questions & Answers
im just trying to have some fun and kill some time writing a c++ program that has a person type in a car make and model then gives them a year and a price. or something like that. i always have problems getting it goin but once the ball is rolling im usually pretty good. anyone wanna help me out? ... (1 Reply)
Discussion started by: rickym2626
1 Replies
7. Shell Programming and Scripting
hi anbu23 u have just replied to my post i want to ask u something else can we get into contact thanks
or reply itself
mv -f $XXTEST_TOP/install/SPE1/XXTEST_SPE1_XX_QUOTE_DETAILS_TBL.sql $XXTEST_TOP/admin2/sql
if
then
echo "Move is successful"
fi
1. What u mean by $? here can u be... (1 Reply)
Discussion started by: Lutchumaya
1 Replies
LEARN ABOUT DEBIAN
iwidgets_selectionbox
iwidgets::selectionbox(1) [incr Widgets] iwidgets::selectionbox(1)
__________________________________________________________________________________________________________________________________________________
NAME
iwidgets::selectionbox - Create and manipulate a selection box widget
SYNOPSIS
iwidgets::selectionbox pathName ?options?
INHERITANCE
itk::Widget <- iwidgets::Selectionbox
STANDARD OPTIONS
activeBackground background borderWidth cursor
exportSelection foreground highlightColor highlightThickness
insertBackground insertBorderWidth insertOffTime insertOnTime
insertWidth relief repeatDelay repeatInterval
selectBackground selectBorderWidth selectForeground
See the "options" manual entry for details on the standard options.
ASSOCIATED OPTIONS
textBackground textFont
See the "entryfield" widget class manual entry for details on the above associated options.
labelFont labelMargin
See the "labeledwidget" class manual entry for details on the above associated options.
activeRelief elementBorderWidth jumptroughColor
See the "scrollbar" widget class manual entry for details on the above associated options.
dblClickCommand hscrollMode sbWidth scrollMargin
textBackground textFont vscrollMode
See the "scrolledlistbox" widget class manual entry for details on the above associated options.
WIDGET-SPECIFIC OPTIONS
Name: childSitePos
Class: Position
Command-Line Switch: -childsitepos
Specifies the position of the child site in the selection box: n, s, e, w, or . The default is center
Name: height
Class: Height
Command-Line Switch: -height
Specifies the height of the selection box. The value may be specified in any of the forms acceptable to Tk_GetPixels. The default
is 320 pixels.
Name: itemsCommand
Class: Command
Command-Line Switch: -itemscommand
Specifies a command to be evaluated following selection of an item.
Name: itemsLabel
Class: Text
Command-Line Switch: -itemslabel
Specifies the text of the label for the items list. The default is "List".
Name: itemsLabelPos
Class: Position
Command-Line Switch: -itemslabelpos
Specifies the position of the label along the side of the items list: n, ne, e, se, s, sw, w, or nw. The default is nw.
Name: itemsOn
Class: ItemsOn
Command-Line Switch: -itemson
Specifies whether or not to display the items list in any of the forms acceptable to Tcl_GetBoolean. The default is true.
Name: margin
Class: Margin
Command-Line Switch: -margin
Specifies distance between the items list and selection entry in any of the forms acceptable to Tk_GetPixels. The default is 7 pix-
els.
Name: selectionCommand
Class: Command
Command-Line Switch: -selectioncommand
Specifies a Tcl procedure to be associated with a return key press event in the selection entry field.
Name: selectionLabel
Class: Text
Command-Line Switch: -selectionlabel
Specifies the text of the label for the selection entry field. The default is "Selection".
Name: selectionLabelPos
Class: Position
Command-Line Switch: -selectionlabelpos
Specifies the position of the label along the side of the selection: n, ne, e, se, s, sw, w, or nw. The default is nw.
Name: selectionOn
Class: SelectionOn
Command-Line Switch: -selectionon
Specifies whether or not to display the selection entry in any of the forms acceptable to Tcl_GetBoolean. The default is true.
Name: width
Class: Width
Command-Line Switch: -width
Specifies the width of the selection box. The value may be specified in any of the forms acceptable to Tk_GetPixels. The default
is 260 pixels.
__________________________________________________________________________________________________________________________________________________
DESCRIPTION
The iwidgets::selectionbox command creates a scrolled list of items and a selection entry field. The user may choose any of the items dis-
played in the scrolled list of alternatives and the selection field will be filled with the choice. The user is also free to enter a new
value in the selection entry field. Both the list and entry areas have labels. A child site is also provided in which the user may create
other widgets to be used in conjunction with the selection box.
METHODS
The iwidgets::selectionbox command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations
on the widget. It has the following general form: pathName option ?arg arg ...? Option and the args determine the exact behavior of the
command.
ASSOCIATED METHODS
curselection delete index nearest
scan selection size
See the "listbox" widget class manual entry for details on the associated methods.
WIDGET-SPECIFIC METHODS
pathName cget option
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the iwid-
gets::selectionbox command.
pathName childsite
Returns the child site widget path name.
pathName clear component
Delete the contents of either the selection entry widget or items list. The component argument may be either items or selection.
pathName configure ?option? ?value option value ...?
Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available
options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then
the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value
returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget
option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted
by the iwidgets::selectionbox command.
pathName get
Returns the current value of the selection entry widget.
pathName insert component args
Insert element(s) into either the selection entry widget or items list. The component argument may be either items or selection.
The args follow the rules of either an entry or list widget depending on the component value.
pathName selectitem
Replace the selection entry field contents with the currently selected items value.
COMPONENTS
Name: childsite
Class: Frame
The childsite component is the user child site for the selection box. See the "frame" widget manual entry for details on the child-
site component item.
Name: items
Class: Scrolledlistbox
The items component provides the scrolled list box of items for the selection box. See the "scrolledlistbox" widget manual entry
for details on the items component item.
Name: selection
Class: Entryfield
The selection component provides the entry field in the selection box for display of the selected item in the items component. See
the "entryfield" widget manual entry for details on the selection component item.
EXAMPLE
package require Iwidgets 4.0
option add *textBackground white
iwidgets::selectionbox .sb -items {Hello {Out There} World}
pack .sb -padx 10 -pady 10 -fill both -expand yes
set cs [label [.sb childsite].label -text "Child Site"]
pack $cs -fill x -padx 10 -pady 10
.sb insert items 2 {Cruel Cruel}
.sb selection set 1
AUTHOR
Mark L. Ulferts
KEYWORDS
selectionbox, widget
Tk iwidgets::selectionbox(1)