Big Popup

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Big Popup

Post by Silvio.Falconi »

for issues that I am not here to explain I had to move a menu (vtaskbar) from left to right.
this class has the ability to create popup submenus and I managed to make the menu appear no longer on the right but on the left,
now the problem is the popup menu which creates a huge space compared to the options that are entered.

Image


and logically the menupopup is show bad that is bad to see because it comes out of the program window

Image

obviously I could find a solution by moving the coordinates of the popup by n spaces

What do you think is the best solution?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Big Popup

Post by cnavarro »

Please, use function SetSpaceXTrasPop( <nSpaces> ), before call your menu, and try
Save this value before change with this function
Not is possible use value 0, but is possible use negative values

Code: Select all


static nOldXtras

Function Main()

    nOldXtras := SetSpaceXTrasPop()
....
     SetSpaceXTrasPop( 10 )


...
// Other function with other menu

   SetSpaceXTrasPop( nOldXtras )

 
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
Post Reply