For Programmers: Free Programming Magazines  


Home > Archive > PowerBuilder > November 2005 > Tabpages and Redraw









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Tabpages and Redraw
Lisa

2005-10-19, 6:59 pm

I have a tab control with multiple pages. At one point I want to be
able to access all the data - selecting each tab but have this not
shown to the user. The SelectTab function switches the display. How can
I get the tab_1.SelectTab(my_tab) not to be displayed!!! I tried
setting the SetRedraw(False) on the tab control, on the window,
everywhere but it still displays!! Suggestions?

Phillip Lemky

2005-10-29, 3:58 am

Hi Lisa,

Are the data in your tabs in datawindow controls in those tabs? And by
being able to access the data, are you just reading it or do you plan on
modifying it through code?

--
Phillip Lemky
To email me, remove "no_spam."

"Lisa" <ljstewar@vac-acc.gc.ca> wrote in message
news:1129732373.216012.239170@g47g2000cwa.googlegroups.com...
>I have a tab control with multiple pages. At one point I want to be
> able to access all the data - selecting each tab but have this not
> shown to the user. The SelectTab function switches the display. How can
> I get the tab_1.SelectTab(my_tab) not to be displayed!!! I tried
> setting the SetRedraw(False) on the tab control, on the window,
> everywhere but it still displays!! Suggestions?
>



Lisa

2005-11-03, 7:57 am

Hi Phillip

The data is in datawindow controls and I just want to read the data. My
problem is that I have various functions in the tabs which will
retrieve the data based upon the 'selected tab'. And there lies the
problem - I need to select the tab but not show it....

Lisa

Phillip Lemky wrote:[color=darkred]
> Hi Lisa,
>
> Are the data in your tabs in datawindow controls in those tabs? And by
> being able to access the data, are you just reading it or do you plan on
> modifying it through code?
>
> --
> Phillip Lemky
> To email me, remove "no_spam."
>
> "Lisa" <ljstewar@vac-acc.gc.ca> wrote in message
> news:1129732373.216012.239170@g47g2000cwa.googlegroups.com...

Phillip Lemky

2005-11-07, 10:03 pm

Hi Lisa,

Why not perform a directly datawindow retrieve where you need to without
calling the tab functions at all? Let's say you have two tabs, each one
with a datawindow control: tab_1 with dw_1 and tab_2 with dw_2. The window
has been opened as well as the tabs within the window. Let's say the
currently selected tab is tab_1. Even though tab_2 isn't selected, you
could still do:

string ls_column_1

tab_control.tab_2.dw_2.settransobject(sqlca)
tab_control.tab_2.dw_2.retrieve()

ls_column_1 = tab_control.tab_2.dw_2.object.column_1[<some row>]

"Lisa" <ljstewar@vac-acc.gc.ca> wrote in message
news:1131025557.236091.102080@g14g2000cwa.googlegroups.com...
> Hi Phillip
>
> The data is in datawindow controls and I just want to read the data. My
> problem is that I have various functions in the tabs which will
> retrieve the data based upon the 'selected tab'. And there lies the
> problem - I need to select the tab but not show it....
>
> Lisa



Lisa

2005-11-07, 10:03 pm

Hi Phillip
Because each tab is inherited from a common user object. In that user
object is my function to retrieve the data based upon the tab that is
selected (retrieves different data based upon the tab)

Lisa

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com