Board index » delphi » Dynamic controls created at runtime
dali...@laser.net (David Alison)
![]() Delphi Developer |
Mon, 16 Feb 1998 03:00:00 GMT
|
dali...@laser.net (David Alison)
![]() Delphi Developer |
Mon, 16 Feb 1998 03:00:00 GMT
Dynamic controls created at runtime
Hi Folks:
Can anyone give me a code snippet or brief summary of what I need to do in --David |
Jason J. Kacz
![]() Delphi Developer |
Mon, 16 Feb 1998 03:00:00 GMT
Re:Dynamic controls created at runtimeIn article <423a35$...@news.laser.net>, dali...@laser.net (David Alison) says: Quote
don't know where their click/mouse events get handled... In the "\DELPHI\DEMOS\DYNAINST" sub-directory you should find a basic example, Quote>--David Jason J. Kaczor DarkSpyre Solutions. FAX/VM: (604) 251-9941 mailto:jkac...@darkspyre.com mailto:jkac...@direct.ca mailto:102222....@compuserve.com CompuServe: 102222,553 Day Contact mailto:Jason_J_Kac...@email.bcse.gov.bc.ca |
Frank Hey
![]() Delphi Developer |
Mon, 16 Feb 1998 03:00:00 GMT
Re:Dynamic controls created at runtimeOn: 31.08.95 wrote: David Alison - dali...@laser.net Quote> Can anyone give me a code snippet or brief summary of what I need to Frank |
Boris Ingr
![]() Delphi Developer |
Tue, 17 Feb 1998 03:00:00 GMT
Re:Dynamic controls created at runtimeIn article <424hvs$...@grid.Direct.CA> jkac...@darkspyre.com (Jason J. Kaczor) writes: Quote>From: jkac...@darkspyre.com (Jason J. Kaczor) components on the form. Then I have a procedure that toggles the various 'visiblke' properties, depending on whatever conditions you want. just remember to call this toggler at the appropriate times, and the form changes. bit of a bind at design time though all these components sitting around. One good dodge is if you have a notebook, and a control you want on hope this helps boris |
Jason J. Kacz
![]() Delphi Developer |
Fri, 20 Feb 1998 03:00:00 GMT
Re:Dynamic controls created at runtimeIn article <5stOHv7_...@ufo.sax.de>, f...@ufo.sax.de (Frank Heyne) says: Quote
procedure TMDI_Child.FormMouseDown(Sender: TObject; Button: TMouseButton; procedure TMDI_Child.MyMouseDown(Sender: TObject; Button: TMouseButton; I finally get the mouse messages for each "circle" shape my user clicks perhaps I have to declare "Instance" at the unit level, or maybe, Quote>Frank Jason J. Kaczor DarkSpyre Solutions. FAX/VM: (604) 251-9941 mailto:jkac...@darkspyre.com mailto:jkac...@direct.ca mailto:102222....@compuserve.com CompuServe: 102222,553 Day Contact mailto:Jason_J_Kac...@email.bcse.gov.bc.ca |
Ritchie_Anna
![]() Delphi Developer |
Mon, 23 Feb 1998 03:00:00 GMT
Re:Dynamic controls created at runtimeJason J. Kaczor (jkac...@darkspyre.com) wrote: : procedure TMDI_Child.FormMouseDown(Sender: TObject; Button: TMouseButton; : Shift: TShiftState; X, Y: Integer); : var : Instance: TShape; Note above, that Instance is declared as a TShape. : procedure TMDI_Child.MyMouseDown(Sender: TObject; Button: TMouseButton; Note above, that Sender is declared as a TObject, which is a base if Sender is TShape then You can actually also go: with Sender as TShape do by itself, but if Sender is not a TShape, this throws a silent If you just wanted to do something with components (which have the if Sender is TComponent then Or, if you feel silly, you can treat the sender as simply a if Sender is TShape then It's a common bit of confusion, tho'. This is the third time I've --=- Ritchie Annand |
1. How to create a TMainMenu and its items at runtime on a dynamic form
2. Dynamic Control Creating Notebook...
3. drag/drop runtime created labels on runtime created pagecontrol
4. Build works with dynamic runtime packages, but not static runtime packages
5. Creating Controls at Runtime
6. Accessing functions of controls that have been created at runtime
7. Help: Creating Page Control Pages at runtime
8. Q: Creating controls at runtime.