XP look & feel in TD 2005

forum.sourcecode (2000-2005) & forum.td.sourcecode (2005-2010)
Gary Teichrow

XP look & feel in TD 2005

Post by Gary Teichrow » 27 Jun 2006, 19:04

 Posted by:  Gary Teichrow 

I had seen an older "teatalk" article about making your TD app have XP
controls. I was unable to get it to work by following the articles
directions. It involved apparently only creating a .manifest file for a
given .exe (e.g., myapp.exe would have a myapp.exe.manifest) and 'magic'
woudl happen. Can someone point me to an example application that does
this? I have an older TD1.5 application, circa 1998-1999 and I'd like to
put a little lipstick on this pig, as it were ;) Any other L&F type
suggestions are welcomed, but they have to be $free as we are going to open
source the application soon.

Thx in advance!!!

micky_moretti

Re: XP look & feel in TD 2005

Post by micky_moretti » 28 Jun 2006, 04:45

 Posted by:  micky_moretti@hotmail.com 

Hi All
I would be very interested in this too, anyone have any suggestions?
Cheers
Mike

Ingo Pohl

Re: XP look & feel in TD 2005

Post by Ingo Pohl » 28 Jun 2006, 09:50

 Posted by:  Ingo Pohl 

Hi,

Im not sure if TD 1.5 is able to do so... but have you compiled the exe file
new?
Also try to put first the manifestfile into the same Directory where you
want to build the exe, then compile the exe.
Then if you want to run the exe from another Directory put the manifest into
the same Directory...

HTH
Ingo

Thomas Lauzi

Re: XP look & feel in TD 2005

Post by Thomas Lauzi » 28 Jun 2006, 10:05

 Posted by:  Thomas Lauzi 

Hi, Gary,
where was your problem? The article (from g.achrainer) pointed everything
out...
Yes, there will happen "magic" if you put only a manifest file at the .EXE,
when you have WinXP with enabled XP style.

Some rules should be considered:
- No custom colors should be set on the controls
- On WM_ENABLE on disbled or controls without border
Return 0
- Remove WS_BORDER on child table/multiline/datafiled, listbox,...

I attached the sample, just run the .EXE.

To make your UI more modern, just look at WinXP. Use highcolor icons instead
of 16 color icons. Some icons from WinXP are free and can be used. See
attached icons......

Regards,
Thomas L.


You do not have the required permissions to view the files attached to this post.

Stephen Wells

Re: XP look & feel in TD 2005

Post by Stephen Wells » 29 Jun 2006, 00:56

 Posted by:  Stephen Wells 

Here's mine, should work ok, just rename trackit to cbi15 or whatever.

You also have to have the XP theme active, not the windows 2000 one, and
it is possible it does not work with such an old version of TD as I have
never used it.

You do not have the required permissions to view the files attached to this post.

Gary Teichrow

Re: XP look & feel in TD 2005

Post by Gary Teichrow » 29 Jun 2006, 01:52

 Posted by:  Gary Teichrow 

Thomas, Yes, I was able to get your example from another source and thanks
for the attachment.

I have it working, although I have a slight snag now with a message conflict
between two two parent classes implementing the same message
cListBoxExtension.VTM_Create and my own frameworks child control baseclass
__wnd_bs_ChiControl.WM_NCCREATE. VTM_Create and WM_NCCREATE are the same
message really and I have a class that inherits from both base classes...
Been a while on TD so trying to remember what to do in this situation...

Thanks for your help though!!

Gary Teichrow

Re: XP look & feel in TD 2005

Post by Gary Teichrow » 29 Jun 2006, 01:54

 Posted by:  Gary Teichrow 

Thx Stephen!

--------------------------------------------------------------------------------

micky_moretti

Re: XP look & feel in TD 2005

Post by micky_moretti » 29 Jun 2006, 02:13

 Posted by:  micky_moretti@hotmail.com 

The manifest file certainly does the trick, but is there anything you can
do about the push buttons? Apart from the obvious painfull task of
manually changing everything?

RainerE
Germany
Posts: 2245
Joined: 27 Apr 2021, 12:40
Location: Germany

Re: XP look & feel in TD 2005

Post by RainerE » 29 Jun 2006, 09:46

 Posted by:  Rainer Ebert 

There are some articles from Gerhard Achrainer and Christian Schubert (www.cschubert.net) regarding Luna style. You can get them here or in the old newsgroups (don't know where they are) and from iceteagroup (www.iceteagroup.com).

Rainer

Gerhard Achrainer

Re: XP look & feel in TD 2005

Post by Gerhard Achrainer » 29 Jun 2006, 10:20

 Posted by:  g.achrainer 

SalSendClassMessageNamed?

Scott
Australia
Posts: 414
Joined: 13 Mar 2017, 23:31
Location: Sydney, Australia

Re: XP look & feel in TD 2005

Post by Scott » 30 Jun 2006, 00:36

 Posted by:  Scott Booth 

I'm getting an "Visual Toolchest" error box with the message "An error has
occurred in your application" and two buttons: "Retry" and "Halt
Application". This occurs when an explorer style listview control is used.

Stephen Wells

Re: XP look & feel in TD 2005

Post by Stephen Wells » 30 Jun 2006, 04:02

 Posted by:  Stephen Wells 

I got no idea, never used that control

Stefan Knappitsch

Re: XP look & feel in TD 2005

Post by Stefan Knappitsch » 10 Aug 2006, 11:13

 Posted by:  Stefan Knappitsch 

Hello, maybe this will help!

I had the same problem, with the same error message:

After changing the deriving parameter it did work...

old Listbox -> don't work
List Box Class: cOutlineListBoxError
Derived From
Class: cOutline
Class: cListBoxExtension

new Listbox -> work fine;
List Box Class: cOutlineListBox
Derived From
Class: cListBoxExtension
Class: cOutline

you have to delete the derived parameters and add them again to the list;
If in the Layout tap there is a scrollbar visible it should work.

I hope this will help :), sorry for my bad english.

Stefan Knappitsch, Austria

Scott
Australia
Posts: 414
Joined: 13 Mar 2017, 23:31
Location: Sydney, Australia

Re: XP look & feel in TD 2005

Post by Scott » 11 Aug 2006, 02:57

 Posted by:  Scott Booth 

Thanks for the reply - no luck though. I traced through with and without
the manifest and it seems that the call to VisListGetItemHandle is failing
in the On VTM_OutlineCornerClick processing.

On VTM_OutlineCornerClick
! The actions for this message are exactly the same as those in
cExplorerTree,
except that for the case where we need to enumerate subdirectories and
insert
as children of the selected item, we do nothing in the class and send a
message
instead so the specific enumeration can be done in the instance. This
makes a
more flexible explorer control class.
Also, an extra flag was added: ITEM_HasChildren. This means the same
thing
as ITEM_CanExpand, except that ITEM_CanExpand is used by cExplorerTree to
determine which items have a "corner" (plus or minus symbol) to the left
of the
icon. An item might have children which are not folders; thus a corner
is
inappropriate, but the behavior to load the children should be the same.
!
! ***** Get item flags for selected item

Code: Select all

 Set nIndex = wParam
 Set hItem = VisListGetItemHandle( hWndItem, nIndex )
 Set nLevel = VisListGetLevel( hItem )
 Loop
  Set nItemFlags = VisListGetFlags( hWndItem, nIndex )
  If nItemFlags != LB_Err
   Break
  If VisErrorRecovery( CAPTION_ErrorHandler ) = ACTION_Abort
   Call SalQuit()

Gerhard Achrainer

Re: XP look & feel in TD 2005

Post by Gerhard Achrainer » 11 Aug 2006, 07:43

 Posted by:  g.achrainer 

Hi,

would you mind providing a small test case?

Thanks,

Gerhard

Return to “td.sourcecode”

Who is online

Users browsing this forum: [Ccbot] and 1 guest