Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pageframe and Class Designer issue

Status
Not open for further replies.

Scott24x7

Programmer
Jul 12, 2001
2,826
JP
I had decided to rebuild my Pageframe class because when I built it originally (probably around 1996) I didn't sub-class the pages within it, and that's been a source of annoyance for me.
In the process I decided to get rid of the border created by the frame, in favor of a more flexible style, but I discovered that in the base and sub-class of PageFrame the properties for BoderColor and BorderWidth are not editable?! I find that very odd.
Am I doing something wrong? Is there some way to change these properties? What I ultimately want is no border on the Pageframe.
I had thought that setting the BorderWidth to 0 would make it not appear, or at least setting the border color to be equal to my background color, so it's not visible, but I can't change either (at least at the properly level). I assume if you can't change them at design time, you can't change them at runtime either?


Best Regards,
Scott
ATS, CDCE, CTIA, CTDC

"Everything should be made as simple as possible, and no simpler."[hammer]
 
Just to see what happened: Turn off themes - either via _screen.themes = .f. or sys(2700,0)

Many layout/style related things are taken care of by the OS to have a general style for windows applications.

There was and is a simple trick to get rid of the 3d border of a pageframe, resize it to be larger than the form and be clipped by the form borders And if the pageframe shouldn't go from form border to border, clip it by putting it into a container. Same can be done with several 3d look ole controls like the webbrowser control to have todays normal flat look. No need to turn off themes fully.

Bye, Olaf.
 
Olaf,
Hahaha, thanks, I tried this and the results were a riot. (Setting _SCREEN.THEMES = .F.)
Made the application look like Windows 95 called and asked for its chiseled 3D text boxes back. It was a neat effect though, that I wasn't aware, so thanks for pointing that out. I tried the other method, and pushed it just past edge of the form boundary, and that actually works as a kind of "trick" I just had to bring my navigation and command buttons to the forgeground, and not actually IN the pageframe, and it's the result I was looking for.

Best Regards,
Scott
ATS, CDCE, CTIA, CTDC

"Everything should be made as simple as possible, and no simpler."[hammer]
 
Yes, everything looks from the eighties without themes. Anyway, some coloring, eg page tab colors, only come through with themes off.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top