nanogui: Thread: FLNX 0.14 - scrolling problem


[<<] [<] Page 1 of 1 [>] [>>]
Subject: FLNX 0.14 - scrolling problem
From: ####@####.####
Date: 9 Nov 2000 03:06:01 -0000
Message-Id: <48256992.0010605D.00@HKGWEB01.VTECH.COM.HK>

Hi Jeff,

I'd like to resize the Tabs group to fit the window when the virtual keypad is
actived or disactived (toggled).
I find no problem when the Tabs Group is resized and the scroll bar is
automatically shown on the right. However, the label of input field is crashed
(the labels seem overlapped) when scrolling.
What am I doing wrong? Please advise how to resolve this problem.
Can I redraw it after scrolling? But, I find no event issued during scrolling.
What can I do?

Here list the part of my program for reference.

//toggle keypad
void Pb::keypad() {
if(flag) {
 Disp->CatTabsGp->size(240,150);   //shrink the Tabs group when keypad is
actived
 KeyPadDisp->KeyPadGp->show();     //invoke the keypad
} else {
 KeyPadDisp->KeyPadGp->hide();     //hide the keypad
 Disp->CatTabsGp->size(240,220);   //grow the Tabs group when keypad is
disactived
}
flag^=true;
}

//create the Tabs group for user input
void Disp::inputDisp()
{
//...omit something

      { Fl_Tabs* o = CatTabsGp = new Fl_Tabs(0, 0, 240, 229);          //create
the Tabs group, default as large size
        o->callback((Fl_Callback*)cb_CatTabsGp);
        { Fl_Group* o = CompanyInfo = new Fl_Group(0, 19, 240, 210, "Company
Info");
          o->labelsize(11);
          { Fl_Scroll* o = new Fl_Scroll(0, 19, 240, 210);
            { Fl_Input* o = Company = new Fl_Input(60, 19, 160, 20, "Company:");
              o->box(FL_THIN_DOWN_BOX);
              o->labelsize(11);
              o->textfont(5);
              o->textsize(11);
            }
//...omit other input field
            o->end();
            Fl_Group::current()->resizable(o);
          }
          o->end();
        }
        o->end();
      }

//... omit something
}


Thanks,
HiFi Wong.


Subject: Re: FLNX 0.14 - scrolling problem
From: Jeff Moellmer ####@####.####
Date: 9 Nov 2000 16:10:11 -0000
Message-Id: <3A0ADBF9.5080902@censoft.com>

Eric,

I'm not exactly sure what you mean. Do you mean that the input widget's 
label does not align exactly with the widget? Could you send some screen 
shots of the problem, perhaps that will help.

Thanks,

Jeff

####@####.#### wrote:

> Hi Jeff,
> 
> I'd like to resize the Tabs group to fit the window when the virtual keypad is
> actived or disactived (toggled).
> I find no problem when the Tabs Group is resized and the scroll bar is
> automatically shown on the right. However, the label of input field is crashed
> (the labels seem overlapped) when scrolling.
> What am I doing wrong? Please advise how to resolve this problem.
> Can I redraw it after scrolling? But, I find no event issued during scrolling.
> What can I do?
> 
> Here list the part of my program for reference.
> 
> //toggle keypad
> void Pb::keypad() {
> if(flag) {
>  Disp->CatTabsGp->size(240,150);   //shrink the Tabs group when keypad is
> actived
>  KeyPadDisp->KeyPadGp->show();     //invoke the keypad
> } else {
>  KeyPadDisp->KeyPadGp->hide();     //hide the keypad
>  Disp->CatTabsGp->size(240,220);   //grow the Tabs group when keypad is
> disactived
> }
> flag^=true;
> }
> 
> //create the Tabs group for user input
> void Disp::inputDisp()
> {
> //...omit something
> 
>       { Fl_Tabs* o = CatTabsGp = new Fl_Tabs(0, 0, 240, 229);          //create
> the Tabs group, default as large size
>         o->callback((Fl_Callback*)cb_CatTabsGp);
>         { Fl_Group* o = CompanyInfo = new Fl_Group(0, 19, 240, 210, "Company
> Info");
>           o->labelsize(11);
>           { Fl_Scroll* o = new Fl_Scroll(0, 19, 240, 210);
>             { Fl_Input* o = Company = new Fl_Input(60, 19, 160, 20, "Company:");
>               o->box(FL_THIN_DOWN_BOX);
>               o->labelsize(11);
>               o->textfont(5);
>               o->textsize(11);
>             }
> //...omit other input field
>             o->end();
>             Fl_Group::current()->resizable(o);
>           }
>           o->end();
>         }
>         o->end();
>       }
> 
> //... omit something
> }
> 
> 
> Thanks,
> HiFi Wong.
> 
> 
> 
> 

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.