tscrollbox

Show form from DLL in TScrollBox

ⅰ亾dé卋堺 提交于 2019-12-22 09:41:09
问题 I posted this online: Show form from DLL in TScrollBox What i am trying to do is call and show a form in a Delphi TScrollBox . Not as Show or ShowModal Example but not with any DLL: Form1.Parent:= ScrollBox; Form1.Show; How do i use this example from a DLL with a form inside Can anyone provide an example? Regards, 回答1: You cannot pass a Delphi object between a DLL and a host executable. That's because objects can only be operated on in the module in which they are created. Now, if you were

TScrollbox MouseDown override

纵然是瞬间 提交于 2019-12-18 02:57:13
问题 I created a Custom scrollbox derives from TScrollbox that works the same except that it will scrolls when dragging in the client area aside from its scrollbars. My problem now is i cannot Drag To Scroll when mouse is on a button or panel inside my CustomScrollbox. the MouseDown, MouseUp, MouseMove override will not trigger because it hovers into different controls. How can I keep tracking the MouseDown, MouseUp, MouseMove and prevent Button/Panels events from firing(inside my CustomScrollbox)

Scrolling Programmatically THorzScrollBox Firemonkey XE6

不羁岁月 提交于 2019-12-11 11:48:10
问题 I have a THorzScrollBox in a form, and some TStyledControls inside. Each StyledControl has a Tag to identify. Using an TEdit to inform a value, I can find inside the ScrollBox an specific Control by his tag . If the control that I searched is not on the screen, I want to scroll the ScrollBox to show it. How can I do this programmatically? 回答1: I found a way to do this. I have to use ScrollBy . But the detail is that if I want to scroll the controls to right I have to use a negative value.

How to track scrolling of TScrollBox in Delphi

自闭症网瘾萝莉.ら 提交于 2019-12-05 00:37:11
问题 Is there any simple way to track scrolling of TScrollbox content with his scrollbars ? I have several TScrollBox components (each of them has some components inside) and would like to keep them synchronous. If one of scrollboxes scrolled (vertically or horizontally) i need to scroll other scrollboxes synchronously. That is why i need to know when scrollbars positions are changed. It is strange, but Delphi's TScrollbox component doesn't have such events. 回答1: This can be done by adding own

How to track scrolling of TScrollBox in Delphi

偶尔善良 提交于 2019-12-03 15:26:11
Is there any simple way to track scrolling of TScrollbox content with his scrollbars ? I have several TScrollBox components (each of them has some components inside) and would like to keep them synchronous. If one of scrollboxes scrolled (vertically or horizontally) i need to scroll other scrollboxes synchronously. That is why i need to know when scrollbars positions are changed. It is strange, but Delphi's TScrollbox component doesn't have such events. bummi This can be done by adding own Events for the messages WM_HSCROLL and WM_HSCROLL . The example is using a interposer class, this could