FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with setmenu
Posts: 55
Joined: Thu Mar 13, 2008 02:35 AM
Problem with setmenu
Posted: 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:

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problem with setmenu
Posted: Thu Jul 05, 2018 01: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 (fw): Select all Collapse
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
Posts: 55
Joined: Thu Mar 13, 2008 02:35 AM
Re: Problem with setmenu
Posted: Fri Jul 06, 2018 07: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.

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problem with setmenu
Posted: 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=3t=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
Posts: 55
Joined: Thu Mar 13, 2008 02:35 AM
Re: Problem with setmenu
Posted: Wed Aug 01, 2018 01:32 AM

Thanks C. Navarro. Comments in lines 200 and 201 already! Solved!!! Thanks!

Continue the discussion