473,770 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Themed Tab Control work-around

It seems that the only way to make themed AND classic Windows GUIs look okay
with tab controls and subforms, due to the color issue, is to place a one
page-no button tab control on each subform that will be displayed as part of
a main form's tab control, completely covering the subform's detail, and
then pasting all the controls onto it. However, this is major cosmetic
surgery.

1. Is there some secret way to re-attach event procedures to controls after
cutting from a form and pasting on a tab control?

2. How much overhead will 16 extra tab controls on 16 subforms create, and
will it matter on a fast machine?

--
Darryl Kerkeslager

Power corrupts.
Absolute power corrupts absolutely.
Knowledge is power.
See www.adcritic.com/interactive/view.php?id=5927
Nov 13 '05 #1
2 2093
A1. Not really.
In A2003, you could try cutting all the text from the form's module, and
pasting it back in. You may find that Access enters the [Event Procedure]
for you beside the appropriate properties. (MZTools claims to do
cut'n'paste-with-event-procedures, but I haven't verified that. Download
from www.mztools.com.)

A2. 16 subforms
If you don't need all these loaded at once, another option is to place a tab
control on a form, and make it not very tall (<1 inch.) Below the tab
control, add a single subform control so it sits directly on the form. Use
the tab control's Change event to load the desired subform into the single
generic subform control. Example below. The form loads very fast (one one
subform), and it's very memory efficient.

You may find you have to set the LinkMasterField s and LinkChildFields after
changing the SourceObject, as Access is likely to set these to whatever if
feels like.

Private Sub tabMain_Change( )
On Error GoTo Err_tabMain_Cha nge
Dim prp As Property

Set prp = Me.frmsubGeneri c.Properties("S ourceObject")

Select Case Me.tabMain.Valu e
Case Me.pgeUnit.Page Index
prp = "frmUnit"
Case Me.pgeVehicleTy pe.PageIndex
prp = "frmVehicleType "
Case Else
MsgBox "I don't know what to do with tab " & Me.tabMain.Valu e & "."
End Select

Exit_tabMain_Ch ange:
Set prp = Nothing
Exit Sub

Err_tabMain_Cha nge:
MsgBox "Error " & Err.Number & " - " & Err.Description
Resume Exit_tabMain_Ch ange
End Sub
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Darryl Kerkeslager" <ke*********@co mcast.net> wrote in message
news:sd******** ************@co mcast.com...
It seems that the only way to make themed AND classic Windows GUIs look
okay with tab controls and subforms, due to the color issue, is to place a
one page-no button tab control on each subform that will be displayed as
part of a main form's tab control, completely covering the subform's
detail, and then pasting all the controls onto it. However, this is major
cosmetic surgery.

1. Is there some secret way to re-attach event procedures to controls
after cutting from a form and pasting on a tab control?

2. How much overhead will 16 extra tab controls on 16 subforms create, and
will it matter on a fast machine?

Nov 13 '05 #2
"Allen Browne" <Al*********@Se eSig.Invalid> wrote
A2. 16 subforms
If you don't need all these loaded at once, another option is to place a
tab control on a form, and make it not very tall (<1 inch.) Below the tab
control, add a single subform control so it sits directly on the form. Use
the tab control's Change event to load the desired subform into the single
generic subform control. Example below. The form loads very fast (one one
subform), and it's very memory efficient.


Hmmmmm ... wish I had known this six months ago. This would be more like a
sex change than "cosmetic surgery". Still, it may be worth it.

Thanks

--
Darryl Kerkeslager

Power corrupts.
Absolute power corrupts absolutely.
Knowledge is power.
See www.adcritic.com/interactive/view.php?id=5927

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1175
by: Tom | last post by:
Hi friends my question is is it possible to export the xp theme so that even when app is eventually deployed on win98 or 2000 the UI will be consistent to that of XP ? Thanks Tom
3
2606
by: Tim Marshall | last post by:
I would swear that when I developed in A97, I could change the back colour of a form. However, in Windows XP, on both A97 and A2003, there no longer is a property showing in the format tab for form properties for a back colour. I think the themed control idea is pretty good in that a developer can really go out on a limb if s/he chooses all kinds of fancy background colours for his/her app since colours selection is a very subjective...
0
1150
by: Wayne | last post by:
I've been to the MS website but can't find a resolution to either of the following. When using themed controls, command buttons have a one pixel light colored dot just outside each corner. It is most noticable if the form has a dark colored background. Has anyone else noticed this? The other problem which I've seen mentioned on this group before is the fact that triple state check boxes don't show the Null state when themed controls...
3
1579
by: MattGood | last post by:
Hi! I can't show a ascx-control in a correct manner when the ascx-control uses another ascx-control, the IsPostBack and ViewState's etc. don't seems to work, problably because there can only be one form that runs at server per page. When I have this first control as an aspx-page instead, the DropDownLists in the ascx-control I use in the aspx-page are filled with correct data and everything works just fine, but as I tried to explain,...
6
1544
by: Terry Olsen | last post by:
I decided to use a tab control for my latest project. On Windows XP, the tab control itself is themed (tabs are themed), but the tab pages and any controls I put on them are not themed (except for textboxes). Done a bit of googling on this subject and I found a lot of people with the same problem, but no real solution. Has anyone come up with a good way to get controls to appear themed on a tab page?
5
15030
by: samuelberthelot | last post by:
Hi, I get this exception when I use a themed css file. In my web.config file I have: <pages theme="dRise"> and the trouble page is a master page : <% Response.Write(Header)%> <form id="form1" runat="server"> <div class="FormContent">
1
1319
by: Trapulo | last post by:
Hello, I've this problem. I need to create a web app, where some text are localized in many languages. That's ok: I can use "App_Localresources" and related features, and all works. Now, I need also to create different "skins" of this application. This is also ok: I can use themes and all works, so I have logos, etc. that change based on active skin. The problem is that now I need to create personal messages for each skin, in each...
0
1770
by: Tim Marshall | last post by:
A2003. I rather like the appearance I get with windows themed controls turned on, but I'm running into an odd problem with tab controls. When I set the back style to transparent, it really isn't transparent. I'm finding instead of one text box or a button that I'd like to have on the form "shining through" and displaying with all pages, it's as if the tab control keeps the odd colour background it generates. I originally developed the...
0
853
by: =?Utf-8?B?UGF0cmljayBG?= | last post by:
Hello, problem is simple. I have a website with atm 2 themes. Now i have both themes placed in diffrent directories in the asp.net Themes folder Themes -Red --CSS --Images -Blue --CSS
0
1096
by: Wayne | last post by:
This is probably trivial, but annoying just the same. Has anyone noticed in Access 2003 when using themed controls that the mouseover color fringing does not seem to work properly on command buttons that have an image displayed instead of text? Or is this just happening on my machine?
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.