Back to Four Js Website
Four Js Customer Forum
Subscribe for automatic updates:
RSS
Sign in for full access
|
Help
Four Js Development Tools Forum
>
Discussions by product
>
Genero BDL
>
StartMenu attributes not working
Most recent posts
Pages: [
1
]
« previous
next »
Reply
|
Print
Author
Topic: StartMenu attributes not working (Read 13518 times)
Tim B.
Posts: 67
StartMenu attributes not working
«
on:
November 11, 2008, 07:31:56 pm »
The 'disabled' attribute for StartMenuCommand & StartMenuGroup doesn't seem to work. There is one called 'hidden' (undocumented) which works, but we really want to grey-out options which aren't available to the user.
Bernard M.
Posts: 45
Re: StartMenu attributes not working
«
Reply #1 on:
November 12, 2008, 10:40:46 am »
I'm not able to reproduce the issue, 'disabled' attribute works on my side.
What version of Genero are you using?
Tim B.
Posts: 67
Re: StartMenu attributes not working
«
Reply #2 on:
November 12, 2008, 10:55:07 am »
BDL is 2.11.03 and GDC is 2.11.05.
Attached example shows code, GDC and debug tree.
example.png
(29.25 KB, 472x445 - viewed 2069 times.)
Tim B.
Posts: 67
Re: StartMenu attributes not working
«
Reply #3 on:
November 12, 2008, 11:26:16 am »
It seems to be because we are using a 'tree' menu. With a 'menu' menu it works. Is this a feature of tree menus, or can this be changed?
Bernard M.
Posts: 45
Re: StartMenu attributes not working
«
Reply #4 on:
November 12, 2008, 11:44:03 am »
This is a bug when the StartMenu is displayed as treeview. When displayed as a pull-down menu ("menu") or as a treeview in a popup window ("poptree") it's working.
I've registered it as bug #Bz.11532.
Sorry for the inconvenience and thanks for reporting.
Tim B.
Posts: 67
Re: StartMenu attributes not working
«
Reply #5 on:
November 20, 2008, 03:20:34 pm »
By accident, I have noticed that this can be made to work by adding in "CALL ui.Interface.Refresh()" after the StartMenu is first created or during it's creation (ie in a FOR loop). It doesn't work if the refresh comes after the build of the StartMenu has finished.
.
Posts: 115
Re: StartMenu attributes not working
«
Reply #6 on:
November 24, 2008, 09:20:16 am »
Yes, this is "expected" (understand: the code in the product reflects this behavior, and of course there is a bug):
the code to manage the attribute "disabled" in the StartMenu is there and is working. What is not working is the code which applies the attribute at the widget creation. So when creating the StartMenu as tree, we don't apply the attribute, but later on when you modify the attribute, it is applyed.
So the workaround is expected to work - you can use it safely (if there is no side effect) until the fixed version comes out.
Pages: [
1
]
Reply
|
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Discussion
=> Ask Reuben
=> WWDC21
-----------------------------
Discussions by product
-----------------------------
=> Products announcements
=> Genero BDL
=> GWS
=> GAS and GBC
=> GDC
=> Genero Mobile for Android or iOS
=> Genero Studio
=> Reporting tools (GRW, GRE)
-----------------------------
Jobs
-----------------------------
=> Jobs
Powered by SMF 1.1.21
|
SMF © 2015, Simple Machines
Loading...