Jump to content


copy tabsheet on another tabsheet


  • Please log in to reply
5 replies to this topic

#1 user22

user22
  • Members
  • 172 posts
  • Gender:Male
  • Location:Linz / Austria

Posted 25 June 2011 - 02:11 PM

Hello Boki,

TNxPagecontrol: i noticed that it is possible to copy one tabsheet on another tabsheet. I think this should make a new tabpage or give an error message. Deleting this copied tabsheet gives in the best way only an access violation, in the worst case it crashes the IDE.

regards,
Helmut

[edit]: just found out that if you have one tabsheet copied on aonother one and you run the program it gives unexplainable exceptions which stops the program and you have to use taskmanager to kill it!

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 6,685 posts
  • Gender:Male

Posted 25 June 2011 - 07:40 PM

Hi Helmut,

Can you please send me a code that you use for copying tabsheets.

Thank you
boki@bergsoft.net
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 user22

user22
  • Members
  • 172 posts
  • Gender:Male
  • Location:Linz / Austria

Posted 26 June 2011 - 02:37 PM

Hello Boki,

start IDE, take a form, put a pagecontrol on it with two tabsheets, go the first tabsheet, put a button on it (it happens only if you have at least one component on the tabsheet you copy) and then click on the tabsheet so that it is marked and press <Ctrl><C>, change to second tabsheet, click on it and then press <Ctrl><V>, you should see the button copied on the second tabsheet.
Now run the program, it will give you an errormessage when you close it.
Or change to "view form as text", you will get an error message. Trying to go back not possible, you have to close IDE.
And after that if you reopen the project again you will not see this form any more and you get also error messages when trying to close the IDE. The only change is to edit the .pas and .dfm manually and remove this copied tabsheet.

I use windows 7 home and Delphi XE prof.

bye,
Helmut

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 6,685 posts
  • Gender:Male

Posted 30 June 2011 - 03:41 AM

Hello Helmut,

Hm, this is a tricky situation. I will need to somehow enable having TabSheet outside PageControl, but this will open more situations. I will need to do some testings, then I will have a answer.

Best regards
boki@bergsoft.net
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 user22

user22
  • Members
  • 172 posts
  • Gender:Male
  • Location:Linz / Austria

Posted 01 July 2011 - 08:08 PM

Hello Boki,

maybe you do it like the standard pagecontrol:
when a tabpage is selected, then <Ctrl><C> and also entry "copy" in the menu is disabled / not working.

regards,
Helmut

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 6,685 posts
  • Gender:Male

Posted 02 July 2011 - 01:58 AM

Hello Helmut,

I only hope that Borland didn't add a hard-coded support for their PageControl in IDE :) But, maybe there is a option to control this.

Best regards
boki@bergsoft.net
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users