Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » How to set cursor (such as a hand) to the Hyperlink? Collapse All
Subject Author Date
M Priya Aug 11, 2007 - 10:20 PM

The example (for example "Load .." in "Compound Properties") have it, but could not find anyway of doing that. Please help.

Technical Support Aug 12, 2007 - 10:43 AM

The CExtHyperLinkButton class implements a hyperlink control. It is derived from CExtButton. That means the hyperlink is just a repainted button control. The CExtButton::SetBtnCursor() method allows you to assign a cursor to any kind of buttons in Prof-UIS (including CExtHyperLinkButton) which are derived from the CExtButton class. This method is invoked in the CExtHyperLinkButton class constructor and assigns a hand like cursor to it. So, each hyperlink control should display the hand cursor automatically.

M Priya Aug 12, 2007 - 1:07 PM

Well Is there anything specific to be done to get this?

I have declared the hyperlink like this:

CExtHyperLinkButton m_purchaseNow;

In the dialog editor, I have it as a Button and in InitDialog(), I assign a URL to it.

Any other steps besides these?

Technical Support Aug 12, 2007 - 1:23 PM

Actually it is enough to get it working. You can compare your code with that used in the Prof-UIS Controls, where you can find an example of the hyperlink. Would you also tell us what is not working?

M Priya Aug 13, 2007 - 10:23 AM

Hello,

As I mentioned, the link appears, but no cursor. How do I get this? I need this ASAP.

Regards

M Priya Aug 12, 2007 - 1:27 PM

I tried looking at a few samples and I don’t see anything that is different. I have racked by brains about this. I looked in "Compound Properties" sample which has 4 hyperlinks each of which lead to actions within the program and also nicely change over to a hand cursor when I mouse-over. But same is not available to my program!

Technical Support Aug 14, 2007 - 2:25 AM

In Prof-UIS, the resource identifiers in range of 29000 to 31000 are reserved for internal usage. We suspect some identifiers in your project may intersect this range. Please check the identifiers in resource.h of your project. In any case, you can always send us a test project so we can hep you find out what is wrong.