Leaderboard
Popular Content
Showing content with the highest reputation on 10/29/18 in Posts
-
Another blog post about coming language changes in 10.3: "Introducing Inline Variables in the Delphi Language" http://blog.marcocantu.com/blog/2018-october-inline-variables-delphi.html
-
userName above or below profilepicture and not in Header?
Memnarch posted a topic in Community Management
So one thing that is a bit irritating for me, because most forums don't do that, is that a Username is not above/below the profilepicture. Because the names are in this blue header, they're kind of invisible to me đ -
Inline Variables Coming in 10.3
Marco Cantu replied to Marco Cantu's topic in RTL and Delphi Object Pascal
Well not really guessing. The compiler uses the expression type, which is deterministic. And you can still add a type cast if you are not certain... -
How to make a component available to all platforms
pyscripter replied to John Kouraklis's topic in FMX
From the documentation: http://docwiki.embarcadero.com/RADStudio/Tokyo/en/64-bit_Windows_Application_Development. The RAD Studio build system automatically embeds an RC_DATA resource in the Win32 package binary named PLATFORMTARGETS, which is a bitmask of the pidXXX constants in System.Classes.pas and reflects the package project's targeted platforms. The IDE reads this resource when the package is loaded and uses the resource data to decide, for example, whether or not to disable the component(s) in the palette when an unsupported platform is active. Targeting multiple platforms with a component package implies a contract between the component developer and the IDE. The IDE assumes that if a component package project targets multiple platforms and the developer distributes the Win32 run-time package to customers (and all the associated compilable and linkable files), the developer will also distribute all the necessary compilable, linkable, and run-time bits for the other targeted platforms as well. Individual components can use the ComponentPlatformsAttribute class attribute to override the data in PLATFORMTARGETS, using a bitmask of the same constants in the Classes unit. For example: type [ComponentPlatformsAttribute(pidWin32 or pidWin64)] // Only supported on Win32 and Win64 TMyComponent = class(TComponent) private ... end; So to get the components to be usable with other plagorms, all you need to do is before you compile the Design package to add the other platform to it. They won't be used but just being there makes the build system to include the appropriate resource flagging the package as usable for the platforms. I have tested this and it works! -
Is there already a statistic about the new registrations?
Sherlock replied to sh17's topic in Community Management
đ Nice eastern Frisia diagram. Similar to their national flag (white eagle on white background). -
Is there already a statistic about the new registrations?
Markus Kinzler replied to sh17's topic in Community Management
-
Is there already a statistic about the new registrations?
sh17 replied to sh17's topic in Community Management
I shared a post about this forum in the two largest Delphi groups on Facebook today. Let's see how it affects the statistics. -
Is there already a statistic about the new registrations?
Daniel replied to sh17's topic in Community Management
Yes, there will be some sort of statistics. But to be honest, this has no top-priority for me. -
This is mentioned in the book: http://www.omnithreadlibrary.com/book/chap10.html#howto-com P.S. Make sure that you don't call any VCL code from your background threads!
- 13 replies
-
- omnithread
- how to
-
(and 1 more)
Tagged with:
-
Berlin and Tokyo slow compared to Seattle
Fred Ahrens replied to Richard_Stevens's topic in Delphi IDE and APIs
We had the same problem with very slow opening of forms. At the end we tracked it down to a problem with LiveBindings. Disabling LiveBindings (removing the related component packages in the IDE) accelerated the opening of forms dramatically. That's of course a solution only for projects where you don't rely on LiveBindings. -
Directions for ARC Memory Management
Dalija Prasnikar replied to Marco Cantu's topic in RTL and Delphi Object Pascal
@Marco Cantu No matter how you turn it something is not quite right. I can certainly see why you made the choice you made. Both now, and back then when ARC was introduced. I hope that for the sake of present we (saying we because non-ARC is clearly what your customers want) didn't sacrifice the future. -
ANN: StyleControls VCL v. 4.15 just released!
Almediadev Support posted a topic in Delphi Third-Party
Fellow Delphi Developers!StyleControls VCL 4.15 just released!http://www.almdev.comWhat's new:* added: TscGPPageViewer control - transparent page control with pages, which inherited from TscGPPanel (see new CustomGPUWP_MultiView demo)* added: new shape styles for TscGPButton, TscGPGlyphButton and TscGPCharGlyphButton controls (scgpLeftLine, scgpRightLine, scgpTopLine, scgpBottomLine)* added: ScaleInt, ScaleDouble methods to the TscStyledForm component (scale values unsing scale factor of current form)* added: TscGPPanel.BlurBackgorund and TscGPPanel.BlurBackgorundAmount properties (now background of the panel can be with blur effect)* added: High-DPI UWP MultiView Demo (UWP demo template, which helps you to create Modern Application with MultiView UI)Regards,Almediadev -
Strange, works fine for me now. Anyways, posting a new topic was broke, so here is another fix. đ // ==UserScript== // @name [DPE] CSS Overrides // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://en.delphipraxis.net/ // @match https://en.delphipraxis.net/?* // @match https://en.delphipraxis.net/topic/* // @match https://en.delphipraxis.net/discover/* // @grant none // ==/UserScript== (function() { try{ 'use strict'; // Header const enable_compact_banner = true; const enable_compact_searchbar = true; // thread overview const enable_modified_topic_banner = true; const enable_compact_fluidlist = true; const enable_additional_highlight = true; // Threads/Posts const enable_small_userinfo = true; const enable_compact_comment = true; const enable_compact_pre = true; const enable_compact_code = true; const enable_compact_survey = true; // Other const enable_goto_latest_post = true; const enable_scroll_to_content = true; const enable_compactDiscover = true; const isDiscover = location.href.indexOf('delphipraxis.net/discover') > 0; const $ = jQuery; const stylesheet = document.styleSheets[document.styleSheets.length - 1]; if (enable_compact_banner) { $('HEADER .logo').attr('style', 'height: auto;'); $('HEADER .logo IMG').attr('style', 'margin-bottom: -30px;'); } // fluid list if (enable_compact_fluidlist && !isDiscover) { $('LI.ipsDataItem').attr('style', 'padding: 2px 0'); $('DIV.ipsDataItem_icon').attr('style', 'padding: 0 10px;'); $('DIV.ipsDataItem_main').attr('style', 'padding: 0;'); $('UL.ipsDataItem_stats').attr('style', 'padding: 0 10px 0 0;'); } if (enable_goto_latest_post) { $('LI.ipsDataItem_unread DIV.ipsDataItem_main A[href*=topic]').each(function() { const href = $(this).attr('href'); if (href.indexOf('?') < 0) $(this).attr('href', href + '?do=getNewComment'); }); } if (enable_modified_topic_banner) { const ipsPageHeader = $('DIV.ipsPageHeader'); ipsPageHeader.attr('style', 'padding: 5px;'); if (!isDiscover) { const topicControls = ipsPageHeader.next(); const topicControlsLinks = topicControls.find('A'); for (var idx = 0, link; link = topicControlsLinks[idx]; idx++) { if ($(link).closest('FORM').length > 0) continue; const div = $('<div class="ipsPos_right ipsResponsive_noFloat ipsResponsive_hidePhone" style="margin-left: 5px;"></div>'); link.style = 'padding: 5px; line-height: 1.5em;'; div.append(link); ipsPageHeader.prepend(div); } } } if (enable_small_userinfo) { $('UL.cAuthorPane_info').attr('style', 'transform: scale(0.6); padding: 0; margin: -40px;'); } if (enable_compact_comment && !isDiscover) { $('DIV[data-role="commentContent"]').attr('style', 'padding: 0; font-size: small;'); } // Code if (enable_compact_code && !isDiscover) { $('PRE.ipsCode').attr('style', 'padding: 5px !important; font-size: small;'); } if (enable_compact_pre) { stylesheet.insertRule('PRE.ipsCode { max-height: 15em; }'); stylesheet.insertRule('PRE.ipsCode.viewAll { max-height: inherit; }'); stylesheet.insertRule('.codefold { right: 0; position: absolute !important; margin-right: 3em; }'); const a = $('<a href="javascript:void(0);" class="codefold" onclick="$(this).parent().toggleClass(\'viewAll\');">open/close</a>'); $('PRE.ipsCode').prepend(a); } // Survey if (enable_compact_survey && !isDiscover) { $(':root').attr('style', '--grid-gap: 0px;'); $('span.ipsFaded').attr('style', 'margin-left: 5px;'); } if (enable_additional_highlight) { // Highlight subforum in post listing (fluid list) $('.ipsDataItem_meta > a[href*="?forumId="]').css({ color: '#4D7395' }); // Highlight user in post listing (fluid list) $('.ipsDataItem_meta > span > a[href*="/profile/"]').css({ color: '#4D7395' }); } // Compact search bar if (enable_compact_searchbar && !isDiscover) { $('.nav-bar').attr('style', 'height: 30px;'); $('.secondary-header-align').attr('style', 'height: 30px;'); $('.ipsNavBar_primary > ul > li > a').attr('style', 'line-height: 30px;'); $('.ipsfocus-search').attr('style', 'height: 30px; line-height: 30px;'); } stylesheet.insertRule('.ipsDataList.ipsDataList_zebra > .ipsDataItem { height: 45px; }'); if (enable_compactDiscover && isDiscover) { $('LI.ipsStreamItem').attr('style', 'padding: 2px 10px !important; margin: 0 0 2px 30px !important;'); $('LI.ipsStreamItem UL.ipsTags').each(function () { $(this).closest('DIV').find('H2').append($(this)); }); } // scroll to start of content if (enable_scroll_to_content) { if ((window.location.href.indexOf('?do') < 0) && window.location.href.indexOf('#') < 0) { $('html,body').animate({scrollTop: $('#elContent').offset().top},'slow'); } } } catch(e) { // I don't wanna hear about it } })();
-
Now it does: // ==UserScript== // @name [DPE] CSS Overrides // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://en.delphipraxis.net/ // @match https://en.delphipraxis.net/?* // @match https://en.delphipraxis.net/topic/* // @match https://en.delphipraxis.net/discover/* // @grant none // ==/UserScript== (function() { try{ 'use strict'; // Header const enable_compact_banner = true; const enable_compact_searchbar = true; // thread overview const enable_modified_topic_banner = true; const enable_compact_fluidlist = true; const enable_additional_highlight = true; // Threads/Posts const enable_small_userinfo = true; const enable_compact_comment = true; const enable_compact_pre = true; const enable_compact_code = true; const enable_compact_survey = true; // Other const enable_goto_latest_post = true; const enable_scroll_to_content = true; const enable_compactDiscover = true; const isDiscover = location.href.indexOf('delphipraxis.net/discover') > 0; const $ = jQuery; const stylesheet = document.styleSheets[document.styleSheets.length - 1]; if (enable_compact_banner) { $('HEADER .logo').attr('style', 'height: auto;'); $('HEADER .logo IMG').attr('style', 'margin-bottom: -30px;'); } // fluid list if (enable_compact_fluidlist && !isDiscover) { $('LI.ipsDataItem').attr('style', 'padding: 2px 0'); $('DIV.ipsDataItem_icon').attr('style', 'padding: 0 10px;'); $('DIV.ipsDataItem_main').attr('style', 'padding: 0;'); $('UL.ipsDataItem_stats').attr('style', 'padding: 0 10px 0 0;'); } if (enable_goto_latest_post) { $('LI.ipsDataItem_unread DIV.ipsDataItem_main A[href*=topic]').each(function() { const href = $(this).attr('href'); if (href.indexOf('?') < 0) $(this).attr('href', href + '?do=getNewComment'); }); } if (enable_modified_topic_banner) { const ipsPageHeader = $('DIV.ipsPageHeader'); ipsPageHeader.attr('style', 'padding: 5px;'); if (!isDiscover) { const topicControls = ipsPageHeader.next(); const topicControlsLinks = topicControls.find('A'); for (var idx = 0, link; link = topicControlsLinks[idx]; idx++) { const div = $('<div class="ipsPos_right ipsResponsive_noFloat ipsResponsive_hidePhone" style="margin-left: 5px;"></div>'); link.style = 'padding: 5px; line-height: 1.5em;'; div.append(link); ipsPageHeader.prepend(div); } topicControls.remove(); } } if (enable_small_userinfo) { $('UL.cAuthorPane_info').attr('style', 'transform: scale(0.6); padding: 0; margin: -40px;'); } if (enable_compact_comment && !isDiscover) { $('DIV[data-role="commentContent"]').attr('style', 'padding: 0; font-size: small;'); } // Code if (enable_compact_code && !isDiscover) { $('PRE.ipsCode').attr('style', 'padding: 5px !important; font-size: small;'); } if (enable_compact_pre) { stylesheet.insertRule('PRE.ipsCode { max-height: 15em; }'); stylesheet.insertRule('PRE.ipsCode.viewAll { max-height: inherit; }'); stylesheet.insertRule('.codefold { right: 0; position: absolute !important; margin-right: 3em; }'); const a = $('<a href="javascript:void(0);" class="codefold" onclick="$(this).parent().toggleClass(\'viewAll\');">open/close</a>'); $('PRE.ipsCode').prepend(a); } // Survey if (enable_compact_survey && !isDiscover) { $(':root').attr('style', '--grid-gap: 0px;'); $('span.ipsFaded').attr('style', 'margin-left: 5px;'); } if (enable_additional_highlight) { // Highlight subforum in post listing (fluid list) $('.ipsDataItem_meta > a[href*="?forumId="]').css({ color: '#4D7395' }); // Highlight user in post listing (fluid list) $('.ipsDataItem_meta > span > a[href*="/profile/"]').css({ color: '#4D7395' }); } // Compact search bar if (enable_compact_searchbar && !isDiscover) { $('.nav-bar').attr('style', 'height: 30px;'); $('.secondary-header-align').attr('style', 'height: 30px;'); $('.ipsNavBar_primary > ul > li > a').attr('style', 'line-height: 30px;'); $('.ipsfocus-search').attr('style', 'height: 30px; line-height: 30px;'); } stylesheet.insertRule('.ipsDataList.ipsDataList_zebra > .ipsDataItem { height: 45px; }'); if (enable_compactDiscover && isDiscover) { $('LI.ipsStreamItem').attr('style', 'padding: 2px 10px !important; margin: 0 0 2px 30px !important;'); $('LI.ipsStreamItem UL.ipsTags').each(function () { $(this).closest('DIV').find('H2').append($(this)); }); } // scroll to start of content if (enable_scroll_to_content) { if ((window.location.href.indexOf('?do') < 0) && window.location.href.indexOf('#') < 0) { $('html,body').animate({scrollTop: $('#elContent').offset().top},'slow'); } } } catch(e) { // I don't wanna hear about it } })();
-
You already have this option. It is called "follow content". You can decide if you want notifications on new posts for those topics or not. (see attachment).
-
Modify my own Threads Title doesnt work anymore.
Daniel replied to KodeZwerg's topic in Community Management
First of all: Prefixes like âimportantâ, ârequestâ, âquestionâ, etc. in the subject are superfluous. If you do not use them, there is no need to change them. And whatâs the problem with the editor? It is compatible to all major browsers. If you only would invest a similar amount of time in correctly formatting your posts as you invested in getting a black theme to work... -
Install that plugin (Dark Reader) and press on its button. You see the germanized Version below.
-
dark theme Solved: Dark Theme for DP
David Hoyle replied to KodeZwerg's topic in Community Management
I donât know if this helps anyone but Iâm currently viewing this with Firefox on my iPad with Firefox in Dark theme mode and Nighttime mode enabled and it looks pretty good. Iâll look to see if the desktop version can do this tomorrow. -
dark theme Solved: Dark Theme for DP
Attila Kovacs replied to KodeZwerg's topic in Community Management
https://darkreader.org -
You are welcome, have done so much f****ing CSS in the last months, this was a easy one đ ... đ ...
-
Delphi SOAP response is always nil
Attila Kovacs replied to ertank's topic in Network, Cloud and Web
Without hacking me into the sources or reading through the thread, did you format the imported wsdl unit in the IDE? Ctrl-D, or 3rd party? Because this wrapper unit is case sensitive and formatting can corrupt it. -
Hi David. What RAD versions are supported in your tool? -- Alex
-
He even talks about it right here:
-
Directions for ARC Memory Management
Marco Cantu replied to Marco Cantu's topic in RTL and Delphi Object Pascal
That is part of the plan... we have some experimental demos, could evolve into a full feature -
Modify my own Threads Title doesnt work anymore.
KodeZwerg replied to KodeZwerg's topic in Community Management
Problem with Editor: Browser Opera don't let me collapse the Color or Size buttons = if I paste text, it is like it is. End of story. (If there would be tags visible it would not be a issue to me) Okay, will remember that no prefix thing, I thought when creating it is better readable for visitors/members. What I do with my Browser and how much time I invest to whatever I do should not concern you at all, am I wrong? Since you wrote me that you will not work on Dark Theme as a setting (what i dislike) and kinda forbid to talk on german site about issues here, I started a thread, If you do not like me or that thread, that's okay to kick/ban/remove/delete. You are Boss. Have a good day.