Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #3285

Re: bBrowser auto column width

From "Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: bBrowser auto column width
Date 2012-04-04 23:18 +0200
Message-ID <9u3s6oFsj0U1@mid.individual.net> (permalink)
References <775dea7f-7aba-408c-8dd3-e54f1dcb024f@d4g2000vbn.googlegroups.com>

Show all headers | View raw


Hi Jan,

In some of my bBrowsers I have written a

METHOD bBrowserConfig( if necessary some parameters) CLASS dtaTabelle
..........snip
 SELF:oDCbBrowser1:Use( SELF:oServer)
 // These modifications are valid for all configurations
 // Close columns that have to be invisible 
SELF:oDCbBrowser1:CloseColumn(#SCHLUESSEL, TRUE)
 SELF:oDCbBrowser1:CloseColumn(#LAUFNUMMER, TRUE)
 SELF:oDCbBrowser1:CloseColumn(#ALTERSATZ, TRUE)
 SELF:oDCbBrowser1:CloseColumn(#KOPIE, TRUE)
..........snip
The fields are still reachable by code, but are not visible.
I think AdjustAutoWidthColumn(..) should not show closed columns.

regards
Urs


"Ian" <ithomson@mikroaid.co.uk> schrieb im Newsbeitrag 
news:775dea7f-7aba-408c-8dd3-e54f1dcb024f@d4g2000vbn.googlegroups.com...
> Hi all,
>
> I am making changes to my app so the windows resize to suit the screen
> resolution of the users pc. I have used the following value for the
> Owner Alignment of the windows and controls and bBrowsers.
>
> OA_PX_PY_PWIDTH_PHEIGHT
>
> This is working ok and the windows and controls resize perfectly to
> suit the screen resolution.
>
> Within the code for the bBrowsers that are on the windows I set a
> value like so for each column;
>
> oColumn  :=self:oDcContractBrowser:GetColumn(#USERNAME)
> oColumn:Width        :=150
> oColumn:Caption        :="Users Name"
>
>
> When the bBrowsers are resized the columns do not fill the screen as
> the sizes were set to suit the original system design for a screen
> resolution of 1024x768.
>
> To get round this I added to my default bBrowser class the following
> value;
>
> MyBrowser:AdjustAutoWidthColumn(true,true)
>
> This works ok and the columns fill the browser no matter what
> resolution the screen is in. However, there are some columns in some
> of the browsers that have a width of 0 (zero) so the user does not see
> that data but the app can access it.
>
> When I added the AdjustAutoWidthColumn(true,true) to my bbrowser class
> these columns are also resized and are then visible to the user.
>
> I have tried to set these columns with's to 0 (zero) using;
>
> oColumn:WidthMax        :=0
>
> But they are still being resized.
>
> How can I get the columns in the bBrowsers to resize themselves but
> leave the ones with a default width of 0 (zero) alone.
>
> Many Thanks
> Ian 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

bBrowser auto column width Ian <ithomson@mikroaid.co.uk> - 2012-04-04 08:54 -0700
  Re: bBrowser auto column width "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2012-04-04 23:18 +0200
  Re: bBrowser auto column width "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2012-04-05 18:34 +1000
    Re: bBrowser auto column width Ian <ithomson@mikroaid.co.uk> - 2012-04-06 07:41 -0700
      Re: bBrowser auto column width "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2012-04-07 15:31 +1000
        Re: bBrowser auto column width Ian <ithomson@mikroaid.co.uk> - 2012-04-07 07:48 -0700

csiph-web