Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #11859
| Newsgroups | comp.lang.clipper.visual-objects |
|---|---|
| Date | 2018-08-31 09:03 -0700 |
| References | <57c20e37-5880-44c1-9142-e0f3e44d68f4@googlegroups.com> |
| Message-ID | <cdc70990-cea3-400a-a9c0-eb511320547c@googlegroups.com> (permalink) |
| Subject | Re: Statusbar SB_SETPARTS |
| From | simon@abersoftware.co.uk |
Hi,
I dont use the status bar but could you use the StatusBarItem:Width assign to set the width for each item.
HTH
Simon
On Thursday, August 30, 2018 at 6:38:54 PM UTC+1, beli...@gmail.com wrote:
> Hello friends,
>
> I am trying to resize the statusbaritens in the status bar, however without effect while changing the size of the window. Can someone tell me if the code listed below is wrong. Has anyone here done this?
>
> //wWin:Canvas:Area 400px
> //StatusBar = 4 Elements {100,100,100,100}
> METHOD StatusBarResize(pStatusBar) CLASS wWin
> LOCAL a as array
> LOCAL p as long
> LOCAL w, s, i as int
>
> p := SendMessage(pStatusBar:Handle(), SB_GETPARTS, 0, 0)
> w := integer(self:CanvasArea:Width / p)
> a := ArrayCreate(p)
> s := 0
> for i := 1 upto p
> if ( i < p )
> s += w
> a[i] := s
> else
> a[i] := -1
> endif
> next
>
> SendMessage(pStatusBar:Handle(), SB_SETPARTS, dword(_cast,p), long(_cast,@a))
> // does not change the size of the status bar items
>
> RETURN nil
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Statusbar SB_SETPARTS beliniazi@gmail.com - 2018-08-30 10:38 -0700
Re: Statusbar SB_SETPARTS simon@abersoftware.co.uk - 2018-08-31 09:03 -0700
Re: Statusbar SB_SETPARTS Robert van der Hulst <rjvanderhulst@gmail.com> - 2018-09-01 05:23 -0700
Re: Statusbar SB_SETPARTS beliniazi@gmail.com - 2018-09-01 14:50 -0700
csiph-web