FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Where are the tooltips?
Posts: 233
Joined: Sat Dec 30, 2006 06:10 AM
Where are the tooltips?
Posted: Tue Jan 02, 2007 06:39 AM

I think tooltips are cool, but I have noticed an absence in FW - am I looking in the wrong place?

(I know about MESSAGE - buts its just not as 'cool')

Many thanks

Ollie.



Using:

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)

Borland C++ 5.5.1

FWH 9.04 (2009 Apr)
Posts: 233
Joined: Sat Dec 30, 2006 06:10 AM
Where are the tooltips?
Posted: Tue Jan 02, 2007 09:22 AM

But I get a Syntax error:

REDEFINE GET oDBF:TITLE ID 10 OF Dlg_CURR UPDATE ;
TOOLTIP "Enter the Salutation here"

Many thanks

Ollie.



Using:

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)

Borland C++ 5.5.1

FWH 9.04 (2009 Apr)
Posts: 233
Joined: Sat Dec 30, 2006 06:10 AM
Where are the tooltips?
Posted: Tue Jan 02, 2007 11:03 AM

Thanks for the reply Fernando - But that didn't work either.

I'm not sure what I should be looking for in the FIVEWIN.CH

I assume I'm looking to see if a oGET object has a tooltip property? What am I looking for exactly?

Many thanks

Ollie.



Using:

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)

Borland C++ 5.5.1

FWH 9.04 (2009 Apr)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Where are the tooltips?
Posted: Tue Jan 02, 2007 11:26 AM
REDEFINE GET oGet VAR oDBF:TITLE ID 10 OF Dlg_CURR UPDATE 

oGet:cTooltip := "My Tooltip"


Sources and samples are the best docs.

EMG
Posts: 233
Joined: Sat Dec 30, 2006 06:10 AM
Where are the tooltips?
Posted: Tue Jan 02, 2007 02:08 PM
Thanks EMG. That works, a bit of a schlep though, because now one needs to define oGets, where oDBF was nice as it doesn't need the gets.

Thanks for all the help anyway.

Sources and samples are the best docs.

Say EMG, any chance you can guide me on getting a TABCONTROL to work with resource files. Or and example / sample. Please man. Thanks
Many thanks

Ollie.



Using:

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)

Borland C++ 5.5.1

FWH 9.04 (2009 Apr)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Where are the tooltips?
Posted: Tue Jan 02, 2007 02:40 PM
Ollie wrote:Thanks EMG. That works, a bit of a schlep though, because now one needs to define oGets, where oDBF was nice as it doesn't need the gets.


You can also iterate through the controls using the array:

oDlg:aControls


Ollie wrote:Say EMG, any chance you can guide me on getting a TABCONTROL to work with resource files. Or and example / sample. Please man. Thanks


Are you referring to TFolder class? If yes, just search for all the *.PRG containing the word 'folder'.

EMG
Posts: 233
Joined: Sat Dec 30, 2006 06:10 AM
Where are the tooltips?
Posted: Tue Jan 02, 2007 04:41 PM

I don't think its the TFOLDER class I'm after.

I want to create TABS on thescreen using a resource file (DLL or RC)

Creating a tab from resources

REDEFINE TABS [<oTabs>] ;

[ ID <nId> ] ;

[ OF | WINDOW | DIALOG <oWnd> ] ;

[ PROMPT | PROMPTS | ITEMS <cPrompt,...> ] ;

[ ACTION | EXECUTE <uAction> ] ;

[ COLOR | COLORS <nClrFore> [,<nClrBack>] ] ;

[ OPTION <nOption> ]

Does that make it clearer?

Many thanks

Ollie.



Using:

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)

Borland C++ 5.5.1

FWH 9.04 (2009 Apr)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Where are the tooltips?
Posted: Tue Jan 02, 2007 04:43 PM

Have a look at phone.prg sample.

EMG

Posts: 233
Joined: Sat Dec 30, 2006 06:10 AM
Where are the tooltips?
Posted: Tue Jan 02, 2007 05:00 PM

compiles, but doesn't run - cannot initialize modem
( forced the initialise function to return .t. so that it could work)

I see the REDEFINE TAB COMMAND in the source code, but I can't see what it refers to when I open the RC file with Pelles C

When the app runs, I can't see the Name, phone address section at the bottom of the screen that I can see from Pelles C

What I need to know is - am I supposed to be able to see the TAB Pages in Pelles C (I see it reads as a custom control not a tab control in properties) and can I change it from Pelles C, or must the rest be done in source code. Can I visually design the tab pages or not?

Many thanks

Ollie.



Using:

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)

Borland C++ 5.5.1

FWH 9.04 (2009 Apr)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Where are the tooltips?
Posted: Tue Jan 02, 2007 05:25 PM
Ollie wrote:I see the REDEFINE TAB COMMAND in the source code, but I can't see what it refers to when I open the RC file with Pelles C


CONTROL "", ID_SECTIONS, "TTabs", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER, 5, 216, 149, 14


Ollie wrote:What I need to know is - am I supposed to be able to see the TAB Pages in Pelles C (I see it reads as a custom control not a tab control in properties) and can I change it from Pelles C, or must the rest be done in source code. Can I visually design the tab pages or not?


No, TTabs is a custom control not a standard Windows control.

EMG
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Where are the tooltips?
Posted: Tue Jan 02, 2007 05:29 PM

Look at insptest.prg in sample directory.

You cannot visually design folders or tabs in those resource editors.

I prefer folders if there are multiple dialog screens to manipulate.

Continue the discussion