Telegram_2020-06-05T09

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2020 > 06 > 05 >

Telegram_2020-06-05T09

Telegram link

 

2020-06-05T09:15:56

 

At first I had a listbox where I could add items and remove them.

 

I can remove the buttons:

 


 

Telegram link

 

2020-06-05T09:16:04

 

CODE{var

 

i: Integer;

 

begin

 

for i := 0 to ComponentCount - 1 do

 

begin

 

if i < ComponentCount then

 

if Components[i] is TIWBS4Button then

 

if TIWBS4Region(Components[i]).Parent = R then

 

Components[i].Free;

 

end;

 

}

 


 

Telegram link

 

2020-06-05T09:16:28

 

The number of components degreases but they stay visible

 


 

Telegram link

 

2020-06-05T09:17:16

 

You need 15.2 if you want to destroy components in an Async event and see the results right away

 


 

Telegram link

 

2020-06-05T09:17:36

 

Otherwise you can do it in a regular OnClick (non-Async) event and you will see the results on PostBack

 


 

Telegram link

 

2020-06-05T09:25:45

 

what is Postback

 


 

Telegram link

 

2020-06-05T09:26:26

 

it's when the page reloads after a non-Async event

 


 

Telegram link

 

2020-06-05T09:26:43

 

The normal action of an iw app. It's the old fashion way a page was refeshed because it fully reload the page

 


 

Telegram link

 

2020-06-05T09:26:57

 

so if you have a TIWButton, and you create an OnClick event — you get a PostBack when you click the button (the page reloads)

 


 

Telegram link

 

2020-06-05T09:27:08

 

Exsctly

 


 

Telegram link

 

2020-06-05T09:27:31

 

they call it postback — because it's the same action as going to a different page — but instead it goes back to the same page

 


 

Telegram link

 

2020-06-05T09:27:44

 

All the Non async method like OnClick, on change, etc will do a postback

 


 

Telegram link

 

2020-06-05T09:31:42

 

Is a lot of work to upgrade? a refresh takes to long and too much data

 


 

Telegram link

 

2020-06-05T09:33:21

 

For many years now — AtoZed has made it simple to upgrade. Just run the new installer and it will upgrade your IW to that version. No need to uninstall or run special utilities

 


 

Telegram link

 

2020-06-05T09:33:41

 

unless you have a reeeeally old version of IW

 


 

Telegram link

 

2020-06-05T09:54:49

 

that was easy??

 


 

Telegram link

 

2020-06-05T09:55:05

 

and it works to!