Go to Post I miss the years when game speculation was based on an actual hint released in the form of unintelligible strings of numbers - tcallan [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-12-2003, 03:57
KLBADBOY KLBADBOY is offline
Registered User
no team
 
Join Date: Dec 2003
Location: MALAYSIA
Posts: 2
KLBADBOY has a little shameless behaviour in the past
Need Help

HI
how are u
i got a problem when i build a system
I'm using delphi 7.
I need source code for:-
link to a page when user click a treeview nodes.

+++++++++++++++++++++++++++
+++++++++++++++form+++++++++
+++++++++++++++++++++++++++
++treeview ++++++++++++++++++
+++nodes++++++++++++++++++++
+++++++++++++++++++++++++++
+++++++++++++++++++++++++++
+++++++++++++++++++++++++++
+++++++++++++++++++++++++++
+++++++++++++++++++++++++++
+++++++++++++++++++++++++++

its most like option menu.
ok
thank you.
can i anyone can help me pls
ok
bye

Last edited by KLBADBOY : 11-12-2003 at 04:20.
  #2   Spotlight this post!  
Unread 11-12-2003, 15:40
Tristan Lall's Avatar
Tristan Lall Tristan Lall is offline
Registered User
FRC #0188 (Woburn Robotics)
 
Join Date: Aug 2001
Rookie Year: 1999
Location: Toronto, ON
Posts: 2,484
Tristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond repute
Re: Need Help

FIRST of all...this is not a forum dedicated to the Delphi programming language--it is instead concerned with the FIRST robotics competition, of which ChiefDelphi is a participating team. (So posting Delphi programming questions here is generally a bad idea.) That much said, I do know something about Delphi, so you may find this useful, just this once. (There are a number of good Delphi references on the internet--search for them. Try delphibasics.co.uk, and delphi.about.com, for example.)

Now, for the programming: Is there any reason why you can't use the OnClick event to call ShellExecute with the appropriate webpage as a parameter? (You may need to include the ShellAPI unit in the uses statement.) Maybe something like this:
Code:
ShellExecute(Handle, 'open', 'http://www.chiefdelphi.com', Nil, Nil, SW_SHOWNORMAL);
Or, if you need to select a specific webpage for each node, use the OnChange event's Node parameter to identify the correct node, every time focus changes, and cross-reference it with an array of links to pages, then call ShellExecute to launch the browser.

Note that this will spawn a new default browser window. If you want to have the links open inside of your program, you'll probably have to use an ActiveX browser control (that's too hard to explain here, if you're not familiar with it), and instruct the browser control to open the page, instead of using ShellExecute.

Also note that using a TTreeView to display links to webpages is a very non-standard style, so be careful not to violate the user interface guidelines for Windows programs. Usually, a hyperlink would be blue, underlined, and obvious, instead of disguised in a TTreeView.

To reiterate--don't post Delphi programming questions here any more, it's usually not worth it!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 19:51.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi