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


Groups > comp.lang.clipper.visual-objects > #9312 > unrolled thread

Basic framework with TabControl

Started byGunter <g.huebner@dsh-anklam.de>
First post2016-05-03 08:36 -0700
Last post2016-05-04 05:51 -0700
Articles 8 — 4 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Basic framework with TabControl Gunter <g.huebner@dsh-anklam.de> - 2016-05-03 08:36 -0700
    Re: Basic framework with TabControl Franz Rachbauer <office@rachbauer.org> - 2016-05-04 08:56 +0200
      Re: Basic framework with TabControl "Karl-Heinz" <invalid@invalid.invalid> - 2016-05-04 14:04 +0200
        Re: Basic framework with TabControl "Karl-Heinz" <invalid@invalid.invalid> - 2016-05-04 14:56 +0200
          Re: Basic framework with TabControl Franz Rachbauer <office@rachbauer.org> - 2016-05-04 15:33 +0200
            Re: Basic framework with TabControl "Karl-Heinz" <invalid@invalid.invalid> - 2016-05-04 16:10 +0200
    Re: Basic framework with TabControl "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2016-05-04 09:11 +0200
    Re: Basic framework with TabControl Gunter <g.huebner@dsh-anklam.de> - 2016-05-04 05:51 -0700

#9312 — Basic framework with TabControl

FromGunter <g.huebner@dsh-anklam.de>
Date2016-05-03 08:36 -0700
SubjectBasic framework with TabControl
Message-ID<4832acea-bfcd-44f7-8a63-746cbd574137@googlegroups.com>
Halo, I need some help. I need a basic framework that provides a Datawindow with a TabControl with two (or more) TabPages selectable by clicking on the TabLabel or by call from the Owner.
On the TabPages I have to place some FixedText Controls creating at the first call of the TabPage. 
When clicking on a TextControl I have to do some code ( MouseButtonDown()).
I think its a 5-minutes job for a trained programmer but needs a long time for me.
I use VO 2.8 SP4 (2838).
Thanks Gunter

[toc] | [next] | [standalone]


#9313

FromFranz Rachbauer <office@rachbauer.org>
Date2016-05-04 08:56 +0200
Message-ID<ngc6f3$uo7$5@gioia.aioe.org>
In reply to#9312
Hi Gunter,
look at http://www.rachbauer.org/gunter.zip, hope this is what you want.
Regards, Franz

Am 03.05.2016 um 17:36 schrieb Gunter:
> Halo, I need some help. I need a basic framework that provides a Datawindow with a
TabControl with two (or more) TabPages selectable by clicking on the 
TabLabel or by call
from the Owner.
> On the TabPages I have to place some FixedText Controls creating at the first call of
the TabPage.
> When clicking on a TextControl I have to do some code ( MouseButtonDown()).
> I think its a 5-minutes job for a trained programmer but needs a long time for me.
> I use VO 2.8 SP4 (2838).
> Thanks Gunter
>

[toc] | [prev] | [next] | [standalone]


#9320

From"Karl-Heinz" <invalid@invalid.invalid>
Date2016-05-04 14:04 +0200
Message-ID<dou6q0Fnqf7U1@mid.individual.net>
In reply to#9313
Hi Franz,

>Hi Gunter,
>
> look at http://www.rachbauer.org/gunter.zip, hope this is what you want.
> Regards, Franz

to make a static control  mouse-sensitive it´s recommended to set the
control style SS_NOTIFY . Afterwards e.g. STN_CLICKED is send to the control
owner. The message reaches the __FormDialogwindow Dispatcher but never the
"real" Datawindow Dispatcher. Anyway, it´s no real problem to work around
that issue.

Here you´ll find a modified gunter.aef:

www.rauscher-software.de/downloads/Gunter.AEF

When you click on one of the textcontrols -  of course, except on the
newly added txtcontrol "no notify"  ;-)  -

either

METHOD OnStaticMouseClicked ( symControl ) CLASS TabPage1

or

METHOD OnStaticMouseClicked ( symControl ) CLASS TabPage2

is triggered.


regards
Karl-Heinz 

[toc] | [prev] | [next] | [standalone]


#9322

From"Karl-Heinz" <invalid@invalid.invalid>
Date2016-05-04 14:56 +0200
Message-ID<dou9svFoem9U1@mid.individual.net>
In reply to#9320
Hi Franz,

>
>Here you´ll find a modified gunter.aef:
>
> www.rauscher-software.de/downloads/Gunter.AEF
>

Another option is - which doesn´t require the __FormDialog Dispatcher


1. Sublass the TextControl

2. still set the style SS_NOTIFY

   oTxtControl:SetStyle ( SS_NOTIFY , TRUE )

3. Define a MouseButtonDown Textcontrol-Eventhandler

METHOD MouseButtonDown(oEvent) CLASS MyTextControl

but i doubt one can do something meaningful on that level. So it´s still
necessary to forward what happened to the owner...


regards
Karl-Heinz 

[toc] | [prev] | [next] | [standalone]


#9323

FromFranz Rachbauer <office@rachbauer.org>
Date2016-05-04 15:33 +0200
Message-ID<ngcto0$ach$1@gioia.aioe.org>
In reply to#9322
Hi Karl-Heinz,
thanks for these infos, 3 ways with same result!
Franz

Am 04.05.2016 um 14:56 schrieb Karl-Heinz:
> Hi Franz,
>
>>
>> Here you´ll find a modified gunter.aef:
>>
>> www.rauscher-software.de/downloads/Gunter.AEF
>>
>
> Another option is - which doesn´t require the __FormDialog Dispatcher
>
>
> 1. Sublass the TextControl
>
> 2. still set the style SS_NOTIFY
>
>    oTxtControl:SetStyle ( SS_NOTIFY , TRUE )
>
> 3. Define a MouseButtonDown Textcontrol-Eventhandler
>
> METHOD MouseButtonDown(oEvent) CLASS MyTextControl
>
> but i doubt one can do something meaningful on that level. So it´s still
> necessary to forward what happened to the owner...
>
>
> regards
> Karl-Heinz

[toc] | [prev] | [next] | [standalone]


#9324

From"Karl-Heinz" <invalid@invalid.invalid>
Date2016-05-04 16:10 +0200
Message-ID<doueaqFpbkrU1@mid.individual.net>
In reply to#9323
Hi Franz,

>
> thanks for these infos, 3 ways with same result!
<

Nope, not realy:  There are only 2 ways  ;-)


regards
Karl-Heinz

[toc] | [prev] | [next] | [standalone]


#9315

From"Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it>
Date2016-05-04 09:11 +0200
Message-ID<ngc74n$61b$1@dont-email.me>
In reply to#9312
Hello Gunter,

I can't believe that this is a 5-minute job. To my experience the use of tab 
windows needs always quite a lot of overhead that is adapted to the own 
needs (adding the correct validations for example switching to the correct 
tab with the missing control value).

Then if you need windows that are data driven then there is also much basic 
work needed.

Arne Ortlinghaus
ACS Data Systems

"Gunter" <g.huebner@dsh-anklam.de> schrieb im Newsbeitrag 
news:4832acea-bfcd-44f7-8a63-746cbd574137@googlegroups.com...
> Halo, I need some help. I need a basic framework that provides a 
> Datawindow with a TabControl with two (or more) TabPages selectable by 
> clicking on the TabLabel or by call from the Owner.
> On the TabPages I have to place some FixedText Controls creating at the 
> first call of the TabPage.
> When clicking on a TextControl I have to do some code ( 
> MouseButtonDown()).
> I think its a 5-minutes job for a trained programmer but needs a long time 
> for me.
> I use VO 2.8 SP4 (2838).
> Thanks Gunter 

[toc] | [prev] | [next] | [standalone]


#9321

FromGunter <g.huebner@dsh-anklam.de>
Date2016-05-04 05:51 -0700
Message-ID<5f185a82-909f-464e-8e7b-d15bf1be9fde@googlegroups.com>
In reply to#9312
Halo Franz, halo Karl-Heiz, thanks for your help. I shall try it.
Gunter

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web