Re: v11.5 Tab Controls - Converted from 2004
Date: 08-02-10
From: David Dancy <david.dancy_at_gmail.com>
Tab controls can be populated from Lists as well as Text arrays
(that's how you get icons into the tab, or change the style of the
text label). A List is actually a hierarchical list once it's loaded
into a 4D program, and - you guessed it - the h-list is declared in 4D
as a C_LONGINT.
Do you have a List that corresponds to the titles of the tab control?
If so, and you want to manipulate it once it's running you'll have to
use h-list commands, not text array commands.
David Dancy
Sydney, Australia
On 7 February 2010 22:55, Walt Nelson
> Well, I figured out why the tab control was not displaying: sometime long
> ago (could have been 10 years or more), in the Compiler Directives, the tab
> control variable had been declared as a Longint variable
> C_LONGINT(Tab_Control_Var)
>
> 4D 2004 allowed that, but v11 doesn't like it. I removed that declaration,
> and in the Compiler_Arrays method declared the variable as
> ARRAY_Text(Tab_Control_Var;0). In the form method in the On Load event, I
> resize the tab control array to the desired size: 9, and it now shows up.
>
> But the ending is not happy yet. Now, the tab control works, but it shows up
> with the second tab appearing to be selected. No matter what tab I click,
> the second tab retains the apparent focus; however, 4D does respond to the
> mouse click by taking the appropriate action, based on which tab was
> clicked. This behavior remains the same, no matter what "platform" I set the
> tab control to: Mac Theme, Automatic, etc.
>
> This is on Windows Vista; I haven't tried it on XP yet, but I will tomorrow,
> at the office (it's Sunday evening here).
>
> Any ideas?
>
**********************************************************************
The New 4D Partner Program - All the tools you need to be a successful 4D Developer.
Sign up Now: http://www.4d.com/community/partner/registration.html
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:4D_Tech-Unsubscribe_at_lists.4D.com
**********************************************************************