|
<< Click to Display Table of Contents >> Navigation: Telegram > 2020 > 03 > 17 > Telegram_2020-03-17T12 |
2020-03-17T12:31:28
Why not use a helper class for tiwframe?
2020-03-17T12:32:46
Helper class?
2020-03-17T12:33:59
Yes, instead of modify the class Iwframe directly, you can create helper class for Iwframe and add that method
2020-03-17T12:38:04
No I am not modifying IWFrame; i am creating a procedure with a parameter of TIWFrame and a second parameter of IWREGION type because I do not want to be repeating same codes when inserting a new frame in a form
2020-03-17T12:39:44
Ah ok
2020-03-17T12:42:14
For TIWRegion, IWRegion in uses is fine however for TIWFRAME type I have been searching for the unit to add to my interface uses but I have not been lucky
2020-03-17T12:44:17
I have seen that an tiwframe is a normal Tframe.
2020-03-17T12:45:19
So you can use Tframe as base class
2020-03-17T12:45:28
Iw will do the work
2020-03-17T12:46:20
No I do not need a class but the unit where TFrame has been implemented to add to my interface
2020-03-17T12:46:56
Interface
Uses
IWRegion, ....
2020-03-17T12:48:55
Forms.pas
2020-03-17T12:49:37
type: link http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/Forms_TFrame.html
2020-03-17T12:51:13
I did add Forms but it did not work; I will try again! Thanks Francisco; I really appreciate your time for me
2020-03-17T12:51:53
Yes, but try to use TFrame as the type of your parameter instead of TIWFrame
2020-03-17T12:52:35
Ok I see now my mistake; thanks