Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

TPropertySheet as TFrameWindow client

Posted on 1998-01-14
3
Medium Priority
?
247 Views
Last Modified: 2013-12-26
I am trying to determine 2 things about the TPropertySheet class:

1. Is it possible to use a TPropertySheet as the client window of TFrameWindow? My program bombs if I try to do it.

2. Is there any way to override the window type characteristics of TPropertySheet? I can't seem to be able to have a TPropertySheet that is sizable or that stays within it's parent window. I wish to have a TPropertySheet window that is maximized within the TFrameWindow - is this possible? Please provide a detailed explanation if possible.

Thanks.
0
Comment
Question by:memoody
3 Comments
 

Expert Comment

by:eppsman
ID: 1299542
I don't have a complete answer, so I'll only put this in a comment. :-) I've tried using the property sheet as the client of a TFrameWindow, and it didn't work for me either. I've seen an example of somebody who has worked around it. They created a frame window, then in the SetupWindow() function, the window sent a message to itself to create the property sheet. A response function was then written to create the property sheet, almost as if it were a dialog box. Hope this helps a bit.

0
 
LVL 2

Accepted Solution

by:
JensUniweb earned 300 total points
ID: 1299543
As I understand the TPropertySheet class it uses the Windows property sheet under Windows 95/NT4. This may cause some problem when you want to use it as your TFrameWindow. This is because the windows API function for property sheets is called. And this does not function the same way as creating a window. You don't get a windows handle, you have no way to set attributes like sizable. But there may be a way to send info to the main window from the callback function supplied to PropertySheet(). So may guess is to studdy the Windows API function PropertySheet() and see if there is a way to 'hook' this window into you main windows. Another way is to build your own TPropertySheet class that uses TTabControl to get the look of a property sheet.

 Jens Yllmna
 (http://www.uniweb.se/~jens/)
0
 

Author Comment

by:memoody
ID: 1299544
It wasn't the answer I was hoping for, but it cleared up my confusion about my questions. Thanks.
0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question