Searchable Menus?
Searchable Menus?
Hi,
we have a big software with hundreds of popup menu-items. Is there any (easy) possibility to implement a search function for these menu items and display a hit list in a grid, where the user has the option to call the menu entry directly from the hit list?
we have a big software with hundreds of popup menu-items. Is there any (easy) possibility to implement a search function for these menu items and display a hit list in a grid, where the user has the option to call the menu entry directly from the hit list?
Re: Searchable Menus?
Any ideas for this topic?
Re: Searchable Menus?
Hii OeavDev,
you could create a small modless dialog box with a datafield for the search text and a grid/listbox with the "menu entries", and whenever the user enters a character, you populate the list with matching entries.
Kind regards
Harald
you could create a small modless dialog box with a datafield for the search text and a grid/listbox with the "menu entries", and whenever the user enters a character, you populate the list with matching entries.
Kind regards
Harald
Re: Searchable Menus?
Hi Harald,
thanks for your reply. But the question is not so much, how to implement the search function, but more, if there is any fancy function or trick how to automatically get all the entries of all popup menus. I just don't want to manually write and maintain a dictionary with entries and functions. Sorry for the confusion.
Thank you and kind regards,
Michael (aka OeavDev)
thanks for your reply. But the question is not so much, how to implement the search function, but more, if there is any fancy function or trick how to automatically get all the entries of all popup menus. I just don't want to manually write and maintain a dictionary with entries and functions. Sorry for the confusion.
Thank you and kind regards,
Michael (aka OeavDev)
Re: Searchable Menus?
So I'm afraid that there is no easy solution for this problem.
But it seems, it's only a matter of time. My company thinks about developing a completely new business solution without Gupta Team Developer. I'm very sorry to say this, but obviously the days of SQLWindows - and also mine, as a Gupta programmer - are counted. Good luck to the next generation of software developers.
But it seems, it's only a matter of time. My company thinks about developing a completely new business solution without Gupta Team Developer. I'm very sorry to say this, but obviously the days of SQLWindows - and also mine, as a Gupta programmer - are counted. Good luck to the next generation of software developers.

Re: Searchable Menus?
In my previous employment, we created a menu system that was very similar to the Windows start menu.
It allowed searching menu items, bookmarking menu items (favourites), etc.
A great replacement for traditional menu bar.
It allowed searching menu items, bookmarking menu items (favourites), etc.
A great replacement for traditional menu bar.
About Me: CJ Veniot's Curriculum Vitae
Re: Searchable Menus?
That's a pity. I know of nothing today anywhere near the goodness that is Gupta Team Developer.OeavDev wrote: ↑18 Mar 2024, 15:50So I'm afraid that there is no easy solution for this problem.
But it seems, it's only a matter of time. My company thinks about developing a completely new business solution without Gupta Team Developer. I'm very sorry to say this, but obviously the days of SQLWindows - and also mine, as a Gupta programmer - are counted. Good luck to the next generation of software developers.![]()
About Me: CJ Veniot's Curriculum Vitae
-
- Site Admin
- Posts: 447
- Joined: 05 Mar 2017, 20:57
- Location: Stroud, England <--> Tauranga, New Zealand
Re: Searchable Menus?
Charlie +100
It seems to me that abandoning the greatness that is Team Developer for lack of builtin searchable menus seems madness.
But without this turning into a pro's and con's debate, every abandoner means all the more TD work for the loyal

Greetings from New Zealand
Steve Leighton
Bankside Systems Ltd.
UK ♦ Australia ♦ New Zealand
www.banksidesystems.co.uk

Steve Leighton
Bankside Systems Ltd.
UK ♦ Australia ♦ New Zealand
www.banksidesystems.co.uk

Re: Searchable Menus?
hI ,
it's depend how your menus are constructed : if your menus are coded by SalMenuInsert.. ou VisMenuInsert.... , you put the windows handle of the menu in an array by SalWindowHandleToNumber, and "browse" inside the array to find the searched menu.(SalStrScan(SalMenuGetText (SalNumberToWindowHandle))) . It tough to code though.
If the menus are hard coded , I think, the only solution is creating a disctionnary.
I hope it helps,
Regards,
Alain
it's depend how your menus are constructed : if your menus are coded by SalMenuInsert.. ou VisMenuInsert.... , you put the windows handle of the menu in an array by SalWindowHandleToNumber, and "browse" inside the array to find the searched menu.(SalStrScan(SalMenuGetText (SalNumberToWindowHandle))) . It tough to code though.
If the menus are hard coded , I think, the only solution is creating a disctionnary.
I hope it helps,
Regards,
Alain
Re: Searchable Menus?
Hm, it seems even possible with hardcoded Named Menus. Currently I'm able to get the Menutext with
Set hMenu = VisMenuGetHandle( mdi1 )
Set ml1 = VisMenuGetText( mdi1, hMenu, 0 )
But unfortunatly I'm not able to send a Mouseclick to it:
Call SalSendMsg( SalNumberToWindowHandle( hMenu ), SAM_Click, wParam, lParam )
Set hMenu = VisMenuGetHandle( mdi1 )
Set ml1 = VisMenuGetText( mdi1, hMenu, 0 )
But unfortunatly I'm not able to send a Mouseclick to it:
Call SalSendMsg( SalNumberToWindowHandle( hMenu ), SAM_Click, wParam, lParam )
Re: Searchable Menus?
So, I have the solution: Every menuitem has its own, unique index. Call SalSendMsg( hWndMDI, WM_COMMAND,1025, lParam ) clicks on the first menuitem. Honestly I have no idea, why it's 1024 + MenuItemIndex, but it works.
So i 'just have to iterate through all menuitems store index and text of all available/enabled Items in an array and display them in a dropdown. And so our customers finally get this super-fancy-autocomplete-dynamic-menu-search-feature in their dashboard.
Thank you for your help and the proof that the SQLWindows Community is still alive and in good condition
Best regards,
Michael
So i 'just have to iterate through all menuitems store index and text of all available/enabled Items in an array and display them in a dropdown. And so our customers finally get this super-fancy-autocomplete-dynamic-menu-search-feature in their dashboard.
Thank you for your help and the proof that the SQLWindows Community is still alive and in good condition

Best regards,
Michael
Who is online
Users browsing this forum: No registered users and 1 guest