Where are the tooltips?

Where are the tooltips?

Postby Ollie » Tue Jan 02, 2007 6: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)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Postby Ollie » Tue Jan 02, 2007 9: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)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Postby Ollie » 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)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Postby Enrico Maria Giordano » Tue Jan 02, 2007 11:26 am

Code: Select all  Expand view
REDEFINE GET oGet VAR oDBF:TITLE ID 10 OF Dlg_CURR UPDATE

oGet:cTooltip := "My Tooltip"


Sources and samples are the best docs.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Ollie » Tue Jan 02, 2007 2: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)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Postby Enrico Maria Giordano » Tue Jan 02, 2007 2: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:

Code: Select all  Expand view
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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Ollie » Tue Jan 02, 2007 4: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)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Postby Enrico Maria Giordano » Tue Jan 02, 2007 4:43 pm

Have a look at phone.prg sample.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Ollie » Tue Jan 02, 2007 5: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)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Postby Enrico Maria Giordano » Tue Jan 02, 2007 5: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


Code: Select all  Expand view
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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Gale FORd » Tue Jan 02, 2007 5: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.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 78 guests