82 if (p->
fFrame == 0)
continue;
83 if (p->
fY < y + h && p->
fY + p->
fH > y &&
84 p->
fX < x + w && p->
fX + p->
fW > x) {
114 for (; p; p = p->
fINext) {
158 for (i = 0; i < int(
sizeof(types) /
sizeof(types[0])); i++) {
159 if (strcasecmp(types[i].zName, z) == 0) {
160 type = types[i].type;
249 while (pFirs && pFirs != pEnd) {
250 switch (pFirs->
fType) {
260 static char zSpaces[] =
" ";
262 while (cnt > (
int)
sizeof(zSpaces) - 1) {
263 str->
Append(zSpaces,
sizeof(zSpaces) - 1);
264 cnt -=
sizeof(zSpaces) - 1;
267 str->
Append(zSpaces, cnt);
284 virtual ~TGHtmlLBEntry() {
if (fVal)
delete fVal; }
286 const char *GetValue()
const {
return fVal ? fVal->
GetString() : 0; }
313 const char *zValue = p->
MarkupArg(
"value",
"");
314 const char *sel = p->
MarkupArg(
"selected",
"");
315 if (sel && !strcmp(sel,
"selected"))
321 while (p && p != pEnd &&
361 if (pElem->
fSized)
return 0;
403 const char *z = pElem->
MarkupArg(
"value", 0);
416 const char *z = pElem->
MarkupArg(
"value", 0);
417 if (!z) z =
"Submit";
429 const char *z = pElem->
MarkupArg(
"maxlength", 0);
430 int maxlen = z ? atoi(z) : 256;
431 if (maxlen < 2) maxlen = 2;
433 int size = z ? atoi(z) * 5 : 150;
445 const char *z = pElem->
MarkupArg(
"maxlength", 0);
446 int maxlen = z ? atoi(z) : 256;
447 if (maxlen < 2) maxlen = 2;
449 int size = z ? atoi(z) * 5 : 150;
462 const char *z = pElem->
MarkupArg(
"size", 0);
463 int size = z ? atoi(z) : 1;
464 UInt_t width = 0, height = 0;
474 TGHtmlLBEntry *te = (TGHtmlLBEntry *)lb->
GetEntry(i);
475 if (te && te->GetText())
476 width =
TMath::Max(width, te->GetDefaultWidth());
479 cb->
Resize(width > 0 ? width+30 : 200,
480 height > 22 ? height : 22);
489 TGHtmlLBEntry *te = (TGHtmlLBEntry *)lb->
GetEntry(i);
490 if (te && te->GetText())
491 width =
TMath::Max(width, te->GetDefaultWidth());
494 lb->
Resize(width > 0 ? width+30 : 200, height * size);
569 const char *
name, *z;
589 if ((z = q->
MarkupArg(
"name", 0)) && !strcmp(z, name)) {
627 static char gNeedEscape[] = {
628 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
629 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
630 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0,
631 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
632 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
633 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0,
634 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
635 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1,
637 #define NeedToEscape(C) ((C)>0 && (C)<127 && gNeedEscape[(int)(C)])
648 if (i > 0) str->
Append(z, i);
653 }
else if (*z ==
'\n') {
655 }
else if (*z ==
'\r') {
659 snprintf(zBuf, 10,
"%%%02X", 0xff & *z);
virtual Int_t GetNumberOfEntries() const
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
#define INPUT_TYPE_TextArea
virtual void MapSubwindows()
virtual void Resize(UInt_t w, UInt_t h)
Resize the listbox widget.
virtual void AddEntry(TGString *s, Int_t id)
Add entry with specified string and id to listbox.
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
#define INPUT_TYPE_Checkbox
void AppendText(TGString *str, TGHtmlElement *pFirst, TGHtmlElement *pEnd)
Append all text and space tokens between pStart and pEnd to the given TString.
#define INPUT_TYPE_Hidden
void SizeAndLink(TGFrame *frame, TGHtmlInput *pElem)
'frame' is the child widget that is used to implement an input element.
#define INPUT_TYPE_Unknown
void DeleteControls()
Delete all input controls.
virtual void SetMultipleSelections(Bool_t multi=kTRUE)
void AddFormInfo(TGHtmlElement *p)
Add the DOM control information for form elements.
virtual const char * MarkupArg(const char *, const char *)
virtual UInt_t GetOptions() const
int MapControls()
Map any control that should be visible according to the current scroll position.
static double p2(double t, double a, double b, double c)
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
TString & Append(const char *cs)
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
ColorStruct_t * fApColor[N_COLOR]
TGHtmlInput * fFirstInput