Telegram_2019-07-01T12

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2019 > 07 > 01 >

Telegram_2019-07-01T12

Telegram link

 

2019-07-01T12:46:21

 

hi

 


 

Telegram link

 

2019-07-01T12:47:10

 

I´m having a few problems creating IWControls descendents

 


 

Telegram link

 

2019-07-01T12:49:09

 

type: link https://www.atozed.com/forums/showthread.php?tid=1118

 


 

Telegram link

 

2019-07-01T12:51:50

 

I asked Alexandre to respond, but the design time painting has to do with paint handlers. You need to register a paint handler for your new class. You can just use the same one that your ancestor class uses.

 


 

Telegram link

 

2019-07-01T12:52:26

 

trhanx chad

 


 

Telegram link

 

2019-07-01T12:52:52

 

what about the setter for the boolean property?

 


 

Telegram link

 

2019-07-01T12:52:58

 

initialization

 

IWRegisterPaintHandler('TIWTabControl', TIWPaintHandlerTabControl);

 

IWRegisterPaintHandler('TIWTabPage', TIWPaintHandlerTabPage);

 

IWRegisterPaintHandler('TIWApplet', TIWPaintHandlerComponent);

 

IWRegisterPaintHandler('TIWFlash', TIWPaintHandlerComponent);

 

IWRegisterPaintHandler('TIWHTMLFlash', TIWPaintHandlerComponent);

 

IWRegisterPaintHandler('TIWGrid', TIWPaintHandlerComponent);

 

IWRegisterPaintHandler('TIWTimer', TIWPaintHandlerComponent);

 

IWRegisterPaintHandler('TIWTreeView', TIWPaintHandlerComponent);

 

IWRegisterPaintHandler('TIWRadioGroup', TIWPaintHandlerRadioGroup);

 

IWRegisterPaintHandler('TIWRectangle', TIWPaintHandlerRectangle);

 

IWRegisterPaintHandler('TIWHTMLRectangle', TIWPaintHandlerRectangle);

 

// IWRegisterPaintHandler('TIWMenu', TIWPaintHandlerMenu);

 

IWRegisterPaintHandler('TIWLabel', TIWPaintHandlerLabel);

 

IWRegisterPaintHandler('TIWButton', TIWPaintHandlerButton);

 

IWRegisterPaintHandler('TIWEdit', TIWPaintHandlerEdit);

 

IWRegisterPaintHandler('TIWTimeEdit', TIWPaintHandlerEdit);

 

IWRegisterPaintHandler('TIWMemo', TIWPaintHandlerMemo);

 

IWRegisterPaintHandler('TIWLink', TIWPaintHandlerLink);

 

IWRegisterPaintHandler('TIWURL', TIWPaintHandlerLink);

 

IWRegisterPaintHandler('TIWText', TIWPaintHandlerText);

 

IWRegisterPaintHandler('TIWList', TIWPaintHandlerList);

 

IWRegisterPaintHandler('TIWHRule', TIWPaintHandlerHRule);

 

IWRegisterPaintHandler('TIWImage', TIWPaintHandlerImage);

 

IWRegisterPaintHandler('TIWImageFile', TIWPaintHandlerImage);

 

IWRegisterPaintHandler('TIWImageButton', TIWPaintHandlerImage);

 

IWRegisterPaintHandler('TIWRadioButton', TIWPaintHandlerRadioButton);

 

IWRegisterPaintHandler('TIWComboBox', TIWPaintHandlerComboBox);

 

IWRegisterPaintHandler('TIWListBox', TIWPaintHandlerListBox);

 

IWRegisterPaintHandler('TIWCheckBox', TIWPaintHandlerCheckBox);

 

IWRegisterPaintHandler('TIWProgressBar', TIWPaintHandlerProgressBar);

 

IWRegisterPaintHandler('TIWDBGrid', TIWPaintHandlerComponent);

 

IWRegisterPaintHandler('TIWDBEdit', TIWPaintHandlerEdit);

 

IWRegisterPaintHandler('TIWDBLabel', TIWPaintHandlerLabel);

 

IWRegisterPaintHandler('TIWDBCheckBox', TIWPaintHandlerCheckBox);

 

IWRegisterPaintHandler('TIWDBComboBox', TIWPaintHandlerComboBox);

 

IWRegisterPaintHandler('TIWDBLookupComboBox', TIWPaintHandlerComboBox);

 

IWRegisterPaintHandler('TIWDBListBox', TIWPaintHandlerListBox);

 

IWRegisterPaintHandler('TIWDBLookupListBox', TIWPaintHandlerListBox);

 

IWRegisterPaintHandler('TIWDBText', TIWPaintHandlerText);

 

IWRegisterPaintHandler('TIWDBMemo', TIWPaintHandlerMemo);

 

IWRegisterPaintHandler('TIWDBImage', TIWPaintHandlerImage);

 

IWRegisterPaintHandler('TIWDBImage', TIWPaintHandlerComponent);

 

IWRegisterPaintHandler('TIWDBNavigator', TIWPaintHandlerDBNavigator);

 

IWRegisterPaintHandler('TIWRegion', TIWPaintHandlerRegion);

 

IWRegisterPaintHandler('TIWGradButton', TIWPaintHandlerGradButton);

 

IWRegisterPaintHandler('TIWAudio', TIWPaintHandlerAudioControl);

 

end.

 


 

Telegram link

 

2019-07-01T12:54:22

 

as I see, i´m calling the correct scriptevens add method, but in designtime i keep getting -1 index trying to obtain the script index, passing the eventname as parameter

 


 

Telegram link

 

2019-07-01T12:54:34

 

removing script events I dont think is supported \as is\. you'd likely have to implement that yourself and that is not easy as JS does not support unloading code. Even if you unload the JS file, the code remains in the browser. You have to manually remove any references to the code and let it clean it up. 17 does it and its a real mess to do.

 


 

Telegram link

 

2019-07-01T12:54:46

 

switching to text, I can see the event loaded in the dfm file

 


 

Telegram link

 

2019-07-01T12:54:56

 

so... i might need to call something

 


 

Telegram link

 

2019-07-01T12:55:24

 

and script events have to be loaded before a certain point in the IW code. type: mention @Alex7691 is the best one to provide details.

 


 

Telegram link

 

2019-07-01T12:55:41

 

i see

 


 

Telegram link

 

2019-07-01T12:55:58

 

i´m not tring to change script events at runtime

 


 

Telegram link

 

2019-07-01T12:56:10

 

you can emit scripts inline a control too which might be easier in your case. if its only for an event and never referenced in other code you can remove the even reference.

 


 

Telegram link

 

2019-07-01T12:56:12

 

i just need a different script event load at designtime

 


 

Telegram link

 

2019-07-01T12:56:21

 

bases os the values of some properties

 


 

Telegram link

 

2019-07-01T12:56:37

 

so, if i change the value of that property at design time

 


 

Telegram link

 

2019-07-01T12:56:51

 

i need to set a new script event in design time

 


 

Telegram link

 

2019-07-01T12:56:54

 

got it?

 


 

Telegram link

 

2019-07-01T12:57:06

 

my english is not very good

 


 

Telegram link

 

2019-07-01T12:57:09

 

beg your pardon