Wolfgang writes:

<>
> > How do I position a PE window accurately?
<>

> Does the software have to be able to run on a machine
> that may NOT have the menu extensions installed?
>
> If not I suggest you use the menu extensions to set up your button.
> (I could help you there)

I hadnt thought of that, (I dont yet have the new Qmenu). But Id still
prefer to know how to do it myself ;)

> if not, I've dug up some old code I hd used previously for a button
> with a standard border
<>

I feared, but was hoping I wouldnt have to, go there

Thank you for your code ;) I think this is just what Im looking for. I shall
test it as soon as I can.

> > In certain circumstances, I want to be able to liberate the button from
> > the Button Frame and then, after doing whatever to it, put it back
> > again (automatically, ie not using wm.chwin). wm.prpos makes it jump
> > all over the place!
>
> I'm not sure I understand your problem - what jumps all over the palce?
> I presume it is not the button, but your "normal" wdw.

By DOing the liberated button, I want it to jump back into the BF, but
whatever the x-coordinate I provide, wm.prpos positions the button wherever
it thinks fit. Eg, if the free button was at (0,100) wm.prpos puts it in
the correct place at the end of the row of buttons at the top of the screen,
eg (764,0), exactly as specified. However, if the free button was at the
other screen edge, eg (972,50), wm.prpos puts it at (0,0)! If the free
button was anywhere in between, wm.prpos puts it in some intermediate
position (xxx,0). Surely this must be an "issue"? BTW, this behaviour is the
same whether QPC is running in HiColor or QLColor mode

<>
> If that is so, here is the code I use for that in some of my programs:
<>

Thanks a lot for the code! I'll see if I can make it work for me.

Per




              • ... Marcel Kilgus
              • ... Dilwyn Jones
              • ... Tony Firshman
        • ... "Phoebus R. Dokos (Φοίβος Ρ. Ντόκος)"
        • ... P Witte
  • ... RWAPSoftware

Reply via email to