Paradox Community

Items in pnews.paradox-programming

Subject:Re: Toolbar
Date:Sat, 13 Apr 2019 11:54:28 +0200
From:"Ivan" <ivan.moro@web.de>
Newsgroups:pnews.paradox-programming
Hi Steve,

> can you set them manually, use GetPosition to see where each one is
> docked, then use that?

I'll tried such position settings.
If I set the toolbars manually, and change the script as follows
(added lines without > at the begining)

> ; *****
>   var
>      ar  Array[6] String
        x,
        y   LongInt
>      i   SmallInt
>      s   String
>      tb  Toolbar
>   endVar
>
>   ar[6] = "Standard"
>   ar[5] = "Property"
>   ar[4] = "Design Object"
>   ar[3] = "Align"
>   ar[2] = "Text Formatting"
>   ar[1] = "ActiveX Control"
>
>   for i from 1 to ar.size()
>      tb.attach(ar[i])
>      if NOT tb.isVisible()
>      then
>         tb.setState(ToolbarStateRight)
>         tb.show()
        else
            tb.getPosition(x, y)
            msgInfo(ar[i], "x: " + String(x) + ", y: " + String(y))
>      endIf
>   endFor
> ; *****

the changed script shows the following result.
For all opened toolbars at the desired position (2 columns) the values are
x: 0, y: 0.

Maybe wrong values or unusable method to solve that problem.

Thanks for the hint.

Ivan

> If I'm working in the developing mode, I'd like to have the toolbars open
> on
> the right side within 2 columns.
> If I run the app, then it closes all tollbars (it's necessary - can't be
> changed).
> If I change again to developing mode, I've to reopen all toolbars again,
> so
> I wrote a script for it.
>
> I'd like to have the toolbars on the right side of the window (in 2
> columns)
>    See attached pic. Toolbox-C2.png
>
> But if I would like to do it with this script
>
> ; *****
>   var
>      ar  Array[6] String
>      i   SmallInt
>      s   String
>      tb  Toolbar
>   endVar
>
>   ar[6] = "Standard"
>   ar[5] = "Property"
>   ar[4] = "Design Object"
>   ar[3] = "Align"
>   ar[2] = "Text Formatting"
>   ar[1] = "ActiveX Control"
>
>   for i from 1 to ar.size()
>      tb.attach(ar[i])
>      if NOT tb.isVisible()
>      then
>         tb.setState(ToolbarStateRight)
>         tb.show()
>      endIf
>   endFor
> ; *****
>
> then the toolbars opens as it is shown in the pic Toolbox-C6.png
>
> Is it possible to change the script, that it opens the toolbars like it
> shows the Toolbar-C2.png? It would save some time.
>
> Thanks.
>
> Ivan

---
Diese E-Mail wurde von AVG auf Viren geprüft.
http://www.avg.com


Copyright © 2004 thedbcommunity.com