Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: converting a Frame to a Form ?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 4 - Last Post: Feb 23, 2018 5:22 PM Last Post By: Eitan Arbel
Eitan Arbel

Posts: 508
Registered: 2/24/13
converting a Frame to a Form ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 23, 2018 6:26 AM
i need to convert 20+ Frames to Forms.
how can i do that if it's possible please?
Thanks !
Lajos Juhasz

Posts: 801
Registered: 3/14/14
Re: converting a Frame to a Form ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 23, 2018 7:41 AM   in response to: Eitan Arbel in response to: Eitan Arbel
Eitan Arbel wrote:

i need to convert 20+ Frames to Forms.
how can i do that if it's possible please?
Thanks !

1. Make a backup of the original files.
2. Open the pas files and change TFrame to TForm:

type
  TFRMyFrame = class(TFrame)


type
  TFRMyFrame = class(TForm)


3. Open the DFM files and Delete the TabOrder property for the form,
forms doesn't have taborder properties.

4. Open the files in order to check if everything is ok.

Eitan Arbel

Posts: 508
Registered: 2/24/13
Re: converting a Frame to a Form ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 23, 2018 8:09 AM   in response to: Lajos Juhasz in response to: Lajos Juhasz
that's it...? lol :D

i'll try soon
Thanks !
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: converting a Frame to a Form ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 23, 2018 10:22 AM   in response to: Eitan Arbel in response to: Eitan Arbel
Eitan Arbel wrote:

i need to convert 20+ Frames to Forms.

Why? If you want floating Forms with the same content as the Frames,
then why not simply put the Frames themselves onto blank Forms?

--
Remy Lebeau (TeamB)
Eitan Arbel

Posts: 508
Registered: 2/24/13
Re: converting a Frame to a Form ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 23, 2018 5:22 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Thank you for your reply Remy

right now i have a BaseForm with some controls, and i load the Frames in it when ever i need.
the thing is that i use intraweb, and now i need to change the design of the app when i need to show the forms in mobile devices.
plus, i need some interaction between the frames and that's where things go messy...
at least for me, it's MUCH easier to control a Form then Frames if i want to interact between them.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02