1. MLE box vertical scrollbar

I am using Win32Lib.  I need a small multiline edit box (MLE) but I want to
remove the vertical scroll bar. It appears, though disabled, but I want just a
small multi-line edit box.  Can anyone tell me which constant to use to tell
dear old Windows[tm] that I don't want the vertical scroll, please?

AndyD

new topic     » topic index » view message » categorize

2. Re: MLE box vertical scrollbar

Andy Drummond wrote:
> 
> I am using Win32Lib.  I need a small multiline edit box (MLE) but I want to
> remove the vertical scroll bar. It appears, though disabled, but I want just
> a
> small multi-line edit box.  Can anyone tell me which constant to use to tell
> dear old Windows[tm] that I don't want the vertical scroll, please?
> 
> AndyD

Soon after creating the control, just issue
removeStyle(targetted_mle,WS_VSCROLL)

Works for any control, actually.
Removing any horizontal scrollbar is left as an exercise...

I didn't try this, but I'd expect the cde to work even after the control was
displayed, so that you can toggle scrollbar visibility at will.
CChris

new topic     » goto parent     » topic index » view message » categorize

3. Re: MLE box vertical scrollbar

CChris wrote:
> 
> Andy Drummond wrote:
> > 
> > I am using Win32Lib.  I need a small multiline edit box (MLE) but I want to
> > remove the vertical scroll bar. It appears, though disabled, but I want just
> > a
> > small multi-line edit box.  Can anyone tell me which constant to use to tell
> > dear old Windows[tm] that I don't want the vertical scroll, please?
> > 
> > AndyD
> 
> Soon after creating the control, just issue
> }}}
<eucode>
> removeStyle(targetted_mle,WS_VSCROLL)
> </eucode>
{{{

> Works for any control, actually.
> Removing any horizontal scrollbar is left as an exercise...
> 
> I didn't try this, but I'd expect the cde to work even after the control was
> displayed, so that you can toggle scrollbar visibility at will.
> CChris

Thank you CChris, it did just what I wanted. Je vous remercie beaucoup.

AndyD

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu