Ability to process messages by background texts, lines and group boxes.

forum.wishlist (1998-2005) & forum.gupta.wishlist (2005-2010)
Mahesh Ramakrishnan

Ability to process messages by background texts, lines and group boxes.

Post by Mahesh Ramakrishnan » 12 Mar 2003, 21:18

 Posted by:  Mahesh Ramakrishnan 

Ability to receive and send messages for the controls such as group boxes,
lines, background texts and frames. Only SAM_Create and user defined
messages will help.

Thanks,

Mahesh Ramakrishnan
Visit www.aimsit.com

User avatar
Charlie
Canada
Posts: 637
Joined: 07 Mar 2017, 18:52
Location: Fredericton, New Brunswick, Canada

Ability to process messages by background texts, lines and group boxes.

Post by Charlie » 13 Mar 2003, 13:31

 Posted by:  Jason Veniot 

This may sound silly to add, but they would be really useful...

messages and functions for variables, of standard SAL types and instances of
functional classes;
messages for functional classes;
functions for all child objects, not just child tables;

Michel de Becdelièvre

Ability to process messages by background texts, lines and group boxes.

Post by Michel de Becdelièvre » 13 Mar 2003, 14:16

 Posted by:  Michel de Becdelièvre 


for this this you already have General Window Classes, otherwise it's
probably not possible : to intercept a *Window* message you need to be able
to be inserted into the *Window* event queue, so you need to have a window
handle and be a graphic component.

This would be usefull, but probably hard to do.

Günther Feldzahn

Ability to process messages by background texts, lines and group boxes.

Post by Günther Feldzahn » 13 Mar 2003, 14:19

 Posted by:  Günther Feldzahn 

Hi

Use this to get the label windowhandle:
Set hWndLabel = SalGetWindowLabel(hWndItem)

There is no need to declare the called function , it's just not documented.
Of course the systemvariable bStaticsAsWindows must be set to TRUE at
SAM_AppStart.

If you want to catch messages for static item windows you can create a
custom control window with the proper window class name and style flags.
First study the Windows SDK documentation about choosing the proper class
name and windo styles.

Hop this might help
GF

Mahesh Ramakrishnan

Ability to process messages by background texts, lines and group boxes.

Post by Mahesh Ramakrishnan » 13 Mar 2003, 15:50

 Posted by:  Mahesh Ramakrishnan 

A background text class cannot be derived from a general window class at
present

Thanks,

Mahesh Ramakrishnan
Visit www.aimsit.com

Mahesh Ramakrishnan

Ability to process messages by background texts, lines and group boxes.

Post by Mahesh Ramakrishnan » 13 Mar 2003, 15:54

 Posted by:  Mahesh Ramakrishnan 

While your suggestion is good, this means a lot of hard coding in the
program. Classes will be useful for us. It would be better if I could send
messages to the class objects when the instantiate and do things based on
conditions.

The mentioned is the one currently we are doing but for a group box, I need
to check the label value = "test" and then take the handle which I do not
want to do.

Thanks,

Mahesh Ramakrishnan
Visit www.aimsit.com

User avatar
Charlie
Canada
Posts: 637
Joined: 07 Mar 2017, 18:52
Location: Fredericton, New Brunswick, Canada

Ability to process messages by background texts, lines and group boxes.

Post by Charlie » 13 Mar 2003, 16:16

 Posted by:  Jason Veniot 

I was thinking more along the lines of programmer defined messages for
"non-visual" objects.

For example, wouldn't it be nice to be able to send, from a window, a
message to all functional class instances to connect to the database:

SalSendMsgToVarChildren( hWndForm, PM_SqlConnect ...)

Maybe not the best example, but I'm just reaching.

Günther Feldzahn

Ability to process messages by background texts, lines and group boxes.

Post by Günther Feldzahn » 14 Mar 2003, 08:38

 Posted by:  Günther Feldzahn 

Hi
Attached you find the settings for a naked group box custom control class.
If you need to replace a lot of groupboxes in a large application of course
this needs some time, but it would be the cleanest solution. This is also an
idea for frame windows, special pushbuttons or even labels...
So wrap the chains around your developer's feets this weekend :-)

Another idea would be a coupled object wich does the maintenance for your
groupboxes....

GF

Attachment: cgroupbox.jpg

g.achrainer

Ability to process messages by background texts, lines and group boxes.

Post by g.achrainer » 14 Mar 2003, 09:47

 Posted by:  g.achrainer 

Hi Günther,

we use this kind of Group Box without major problems. But we recognized some
kind of "strange behaviour" if
- the "Hollow Window" property is set and
- the Control is associated with a tab.
Sometimes then the Groupbox is not hidden.

gerhard.

Return to “gupta.wishlist”

Who is online

Users browsing this forum: [Ccbot] and 0 guests