Jump to content

PeterPanettone

Members
  • Content Count

    547
  • Joined

  • Last visited

  • Days Won

    3

PeterPanettone last won the day on March 4

PeterPanettone had the most liked content!

Community Reputation

79 Excellent

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. PeterPanettone

    Improve the Structure Panel?

    Delphi is wonderful for small projects. But if you have a middle-size or large project, the mentioned drawbacks (e.g. the linkage of the structure panel content to the current type of editor) are annoying and time-consuming.
  2. PeterPanettone

    Highlight a specific popup menu item?

    Actually I work with Delphi 3. I am glad you helped me to understand.
  3. PeterPanettone

    Highlight a specific popup menu item?

    And which style exactly did you add? I am still waiting for the screenshots.
  4. PeterPanettone

    Highlight a specific popup menu item?

    Where exactly did you add "STYLE"?
  5. PeterPanettone

    Highlight a specific popup menu item?

    Could you please show me a screenshot of that "bluish color but so faint that it is almost not there".
  6. PeterPanettone

    Highlight a specific popup menu item?

    Very impressive!
  7. PeterPanettone

    Highlight a specific popup menu item?

    I do not think you are a novice.
  8. PeterPanettone

    Highlight a specific popup menu item?

    Can you please show a screenshot while you hover the mouse pointer over a menu-item (and move the mouse a little bit), does that menu-item get highlighted? Thank you!
  9. PeterPanettone

    Highlight a specific popup menu item?

    Thanks for the information. When you hover the mouse pointer over a menu-item (and move the mouse a little bit), does that menu-item get highlighted? Can you please show a screenshot?
  10. PeterPanettone

    Highlight a specific popup menu item?

    What do you want it to do? Making coffee?
  11. The MMX Find next/previous occurrence feature is VERY USEFUL! However, it should be possible to ENLARGE THE WIDTH of the dialog with the mouse: In this screenshot, you can see that you have to manually augment the Source column to see the searched identifier in the displayed source code line. Of course, the enlarged width should automatically be remembered between sessions. It would also be useful if the searched identifier would be somehow (e.g. with different font color) marked inside the displayed source code line.
  12. PeterPanettone

    Highlight a specific popup menu item?

    Here is a SO question about this matter, where one answer says to use ZeroMemory and the other answer says to use Default: https://stackoverflow.com/questions/5509394/how-can-i-quickly-clear-a-record-of-simple-types What is the PRO and CONTRA of the two alternatives?
  13. PeterPanettone

    Highlight a specific popup menu item?

    Thanks. Can you please show a short code example in the context of the above project?
  14. PeterPanettone

    Highlight a specific popup menu item?

    OK, I have optimized it, and now it works perfectly as I want it: A nice STICKY POPUP MENU! Here is the source code: StickyPopupMenuSimulation_3.zip
  15. PeterPanettone

    Highlight a specific popup menu item?

    Remy, with your hints, it is now partially working: procedure TPopupListEx.WndProc(var Message: TMessage); var mii: MENUITEMINFO; begin inherited; if (Message.Msg = WM_ENTERMENULOOP) and (Message.WParam = 1) then begin // customize pmTest items as needed... ZeroMemory(@mii, sizeof(mii)); mii.cbSize := sizeof(mii); mii.fMask := MIIM_STATE; mii.fState := MFS_HILITE; Winapi.Windows.SetMenuItemInfoW(Form1.pmTest.Handle, 1, True, mii); end; end; Now, when I show the popup menu the first time, the menu item with index 1 is highlighted: But then, when I hover the mouse over the first menu item, BOTH menu-items are highlighted: Instead, the second menu-item should become un-highlighted when the first menu-item becomes highlighted. Why this is not the case? Only when I hover the mouse over the second menu-item and then back to the first menu item, the second menu-item becomes un-highlighted: So I repost here the changed source-code, so everybody can see how the code looks in detail: StickyPopupMenuSimulation_2.zip
×