Page 1 of 1
Where are the tooltips?
Posted: Tue Jan 02, 2007 6:39 am
by Ollie
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')
Posted: Tue Jan 02, 2007 9:22 am
by Ollie
But I get a Syntax error:
REDEFINE GET oDBF:TITLE ID 10 OF Dlg_CURR UPDATE ;
TOOLTIP "Enter the Salutation here"
Posted: Tue Jan 02, 2007 11:03 am
by Ollie
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?
Posted: Tue Jan 02, 2007 11:26 am
by Enrico Maria Giordano
Code: Select all
REDEFINE GET oGet VAR oDBF:TITLE ID 10 OF Dlg_CURR UPDATE
oGet:cTooltip := "My Tooltip"
Sources and samples are the best docs.
EMG
Posted: Tue Jan 02, 2007 2:08 pm
by Ollie
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
Posted: Tue Jan 02, 2007 2:40 pm
by Enrico Maria Giordano
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:
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
Posted: Tue Jan 02, 2007 4:41 pm
by Ollie
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?
Posted: Tue Jan 02, 2007 4:43 pm
by Enrico Maria Giordano
Have a look at phone.prg sample.
EMG
Posted: Tue Jan 02, 2007 5:00 pm
by Ollie
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?
Posted: Tue Jan 02, 2007 5:25 pm
by Enrico Maria Giordano
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
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
Posted: Tue Jan 02, 2007 5:29 pm
by Gale FORd
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.