Problem with setmenu

Problem with setmenu

Postby shark » Thu Jul 05, 2018 11:04 am

I have a problem calling setmenu method in Fivewin 18.01.

In Fivewin 17.07 it´s ok.


When i call the setmenu method: oMain:SetMenu( oMenu ), the menu bar is dragged to the left, it sharpens and cuts the gradiente bar on the right.

In first time, menu it´s ok. The problem occurred when call de setmenu method again.

the image below shows what happens:

Image
shark
 
Posts: 55
Joined: Thu Mar 13, 2008 2:35 am

Re: Problem with setmenu

Postby cnavarro » Thu Jul 05, 2018 1:47 pm

I have seen the images, thanks
Please explain better your implementation or send example for test it
Before calling SetMenu again, put this code, try, and tell me the results
Code: Select all  Expand view  RUN


oWnd:oMenu:End()
oWnd:oMenu := nil
oWnd:SetMenu( oMenu )

 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Problem with setmenu

Postby shark » Fri Jul 06, 2018 7:16 am

added sugest lines, but, problem continued.

could you describe what was changed in the tmenu class between versions 17.07 and 18.01 ?

Thanks.
shark
 
Posts: 55
Joined: Thu Mar 13, 2008 2:35 am

Re: Problem with setmenu

Postby cnavarro » Fri Jul 06, 2018 11:40 am

From version 17.07 to 17.11 there were many changes in the classes of construction of menus
http://wiki.fivetechsoft.com/doku.php?i ... _fwh_17.09

Can you send me an example with the problem?
I can not reproduce the effect that comments

Also, you test this

viewtopic.php?f=3&t=35564#p211729
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Problem with setmenu

Postby shark » Wed Aug 01, 2018 1:32 am

Thanks C. Navarro. Comments in lines 200 and 201 already! Solved!!! Thanks!
shark
 
Posts: 55
Joined: Thu Mar 13, 2008 2:35 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 59 guests