PeterPanettone
Members-
Content Count
1318 -
Joined
-
Last visited
-
Days Won
5
Everything posted by PeterPanettone
-
I don't sell anything. Please don't insinuate anything here if I was a drug dealer. If you don't want to pay a small fee for other people's hard work you can write the code yourself. I am NOT affiliated with SVGMagic. While the opensource idea is a good concept for social collaboration, the misconception that EVERYTHING must be free is a pathological social delusion.
-
You can get the source code from Github. It is very easy to get.
-
Extract selected UI and code elements to insert them into another project
PeterPanettone posted a topic in Delphi IDE and APIs
In the IDE's FormDesigner Structure panel, when I copy a number of selected components, I get a collection of objects in the clipboard. An IDE expert would search and extract all code elements in the project's source code referring to any of the objects in the collection. This would allow us to easily copy a selection of UI elements together with their inherent code functionality and insert them into another project with minimal effort. The steps to extract the code elements would be: 1. Create a list of the object names in the clipboard collection 2. Search those object names in the project's source code 3. Automate the extraction of the code elements (procedures, functions, declarations, variables, etc.) referring objects in the object collection and put them in a code collection. 4. Insert the objects and the code-elements into another project. 5. Make the necessary adjustments and corrections -
Extract selected UI and code elements to insert them into another project
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
I know the term "orthogonal" from geometry. What do you mean with "orthogonal" in respect of code? -
Extract selected UI and code elements to insert them into another project
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
Consider this case: You have a PageControl where each page contains a number of UI-controls so that each page has a separate functionality. It is easy to re-use a specific functionality by copying the UI controls from a specific page. But how would you a priori separate just the code connected to these UI-controls so that just this code could be easily re-used? It would help if it was possible to put a TForm on a PageControl page. In this way both the UI-controls and their connected code would be confined inside this form. I diffusely remember a UI-component allowing to do this: Placing a TForm in it. -
Extract selected UI and code elements to insert them into another project
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
I have to make some more research into separating different functionalities in confined areas where they can be easily reused. It would be nice if the IDE (or an IDE expert) could help us doing this or help us refactoring existing code into clearly separated code areas. -
Structure Panel empty - how to get Embarcadero support?
PeterPanettone posted a topic in Delphi IDE and APIs
In Delphi 10.3.3 I have the Floating Form Designer, with the Form Designer and the Structure panel on the second monitor. Sometimes it happens that the Structure panel is EMPTY, regardless whether it is located on the first monitor or on the second monitor: So I decided do file a support case with Embarcadero (never done that before). In the subscription e-mail, I got from Embarcadero, I found this support URL: http://support.embarcadero.com/annual I tried any of the dropdown menu items: With "Product support" I got a new login form although I was already logged in with my correct user name and password. I entered them again but it said "Invalid...". So I clicked the "Send new password" button. But since then no message from Embarcadero. Is there a working annual support page? -
Structure Panel empty - how to get Embarcadero support?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
On the other hand, with this URL: http://supportforms.embarcadero.com ...there seems to be no option for an IDE bug support: -
Structure Panel empty - how to get Embarcadero support?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
I don't understand your answer. -
Structure Panel empty - how to get Embarcadero support?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
BTW, a much more EFFICIENT way to handle support cases would be: 1. Send 3 GUIDs (Globally Unique Identifiers) and a support email-address in the mail to the subscriber. 2. To file a support case with Embarcadero, the subscriber must only send an e-mail with one of the GUIDs in the subject field. This can be very well automated with software and subscriber databases at Embarcadero and saves a lot of manual work for the support staff. -
The most ANNOYING brake shoe in Delphi programming is the stone-age linkage of the structure panel content to the current type of editor: • In the CODE EDITOR the structure panel always shows the identifiers of the code edited in the editor. • In the FORM DESIGNER the structure panel always shows the list of object instances of the current form in a tree view. PLUS, there is a linkage between the OBJECT INSPECTOR content and the selected object in the structure panel (but only if you are in the FORM DESIGNER; the INSTANCES LIST on top of the Object Inspector is unusable because it is not displayed as a tree view and its width cannot be resized). But what if you are in the code editor and need a specific object to be displayed in the Object Inspector? There are two possibilities: 1. You switch to the Form Designer by pressing the F12 key, support the flickering of the tool windows, then select the desired object to display it in the Object Inspector. 2. Or: You click the Instances List Combobox on top of the Object Inspector and spend a lot of time finding the desired object (because it is not displayed as a tree view and the width is not resizable). All this is an unnecessary loss of time because of the mentioned stone-age linkage. So, would it be possible with a piece of software to solve these problems? For example: • Show the Structure Panel with its object instances treeview even if you are in the code editor? • Have an Object Inspector Instances List in the form of a treeview and with resizable width? Also, there is no distinction between visual and non-visual elements in the structure panel displaying the objects tree: There is no button in the Structure Panel to show only the visual objects or only the non-visual elements. Could any of these problems be solved by a GExpert?
-
Improve the Structure Panel?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
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. -
Highlight a specific popup menu item?
PeterPanettone replied to PeterPanettone's topic in Windows API
Actually I work with Delphi 3. I am glad you helped me to understand. -
Highlight a specific popup menu item?
PeterPanettone replied to PeterPanettone's topic in Windows API
And which style exactly did you add? I am still waiting for the screenshots. -
Highlight a specific popup menu item?
PeterPanettone replied to PeterPanettone's topic in Windows API
Where exactly did you add "STYLE"? -
Highlight a specific popup menu item?
PeterPanettone replied to PeterPanettone's topic in Windows API
Could you please show me a screenshot of that "bluish color but so faint that it is almost not there". -
Highlight a specific popup menu item?
PeterPanettone replied to PeterPanettone's topic in Windows API
Very impressive! -
Highlight a specific popup menu item?
PeterPanettone replied to PeterPanettone's topic in Windows API
I do not think you are a novice. -
Highlight a specific popup menu item?
PeterPanettone replied to PeterPanettone's topic in Windows API
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! -
Highlight a specific popup menu item?
PeterPanettone replied to PeterPanettone's topic in Windows API
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? -
Highlight a specific popup menu item?
PeterPanettone replied to PeterPanettone's topic in Windows API
What do you want it to do? Making coffee? -
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.
-
Highlight a specific popup menu item?
PeterPanettone replied to PeterPanettone's topic in Windows API
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? -
Highlight a specific popup menu item?
PeterPanettone replied to PeterPanettone's topic in Windows API
Thanks. Can you please show a short code example in the context of the above project? -
Highlight a specific popup menu item?
PeterPanettone replied to PeterPanettone's topic in Windows API
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