Telegram_2020-03-17T12

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2020 > 03 > 17 >

Telegram_2020-03-17T12

Telegram link

 

2020-03-17T12:31:28

 

Why not use a helper class for tiwframe?

 


 

Telegram link

 

2020-03-17T12:32:46

 

Helper class?

 


 

Telegram link

 

2020-03-17T12:33:59

 

Yes, instead of modify the class Iwframe directly, you can create helper class for Iwframe and add that method

 


 

Telegram link

 

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

 


 

Telegram link

 

2020-03-17T12:39:44

 

Ah ok

 


 

Telegram link

 

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

 


 

Telegram link

 

2020-03-17T12:44:17

 

I have seen that an tiwframe is a normal Tframe.

 


 

Telegram link

 

2020-03-17T12:45:19

 

So you can use Tframe as base class

 


 

Telegram link

 

2020-03-17T12:45:28

 

Iw will do the work

 


 

Telegram link

 

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

 


 

Telegram link

 

2020-03-17T12:46:56

 

Interface

 

Uses

 

IWRegion, ....

 


 

Telegram link

 

2020-03-17T12:48:55

 

Forms.pas

 


 

Telegram link

 

2020-03-17T12:49:37

 

type: link http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/Forms_TFrame.html

 


 

Telegram link

 

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

 


 

Telegram link

 

2020-03-17T12:51:53

 

Yes, but try to use TFrame as the type of your parameter instead of TIWFrame

 


 

Telegram link

 

2020-03-17T12:52:35

 

Ok I see now my mistake; thanks