FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Ttabctrl class add() error
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Ttabctrl class add() error
Posted: Wed Jan 09, 2008 02:53 AM

Antonio,
Ttabcltrl class , add() method not add to data aprompts.
Best regard!
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Ttabctrl class add() error
Posted: Wed Jan 09, 2008 07:44 AM

wich version you have ?

On 7.12 run ok

Best Regards, Saludos



Falconi Silvio
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Ttabctrl class add() error
Posted: Thu Jan 10, 2008 12:37 AM

Silvio,
harbour 1.1 rc +fwh712

otabs:=TTabControl():Redefine( 200, oDlg )
otabs:baction:={||plan0105(otabs:noption)}
activate dialog odlg on init a1()
return

function a1()
otabs:add("aaa")
otabs:add("bbb")
?valtype(otabs:aprompts)
// nil

return

Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Ttabctrl class add() error
Posted: Thu Jan 10, 2008 01:03 AM

can you send me a mini test please

Best Regards, Saludos



Falconi Silvio
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Ttabctrl class add() error
Posted: Fri Jan 11, 2008 08:22 AM

Silvio,
You can see the prompts on dialog work, but you can't get ?(otabs:aprompts[2])

Regards !
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Ttabctrl class add() error
Posted: Fri Jan 11, 2008 08:35 AM

If you look at the Add method, the new prompt, cPrompt, is being added to the Windows tab control, but not to the aPrompts array of the FW Tab object. Apparently, aPrompts is not being used anywhere, so it doesn't really matter that it is not being updated in the Add() method.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion