Repaint of design window

forum.cdk (1998-2005) & forum.td.cdk (2005-2010)
Jonas Mandahl Pedersen

Repaint of design window

Post by Jonas Mandahl Pedersen » 01 Dec 2002, 03:52

 Posted by:  Jonas Mandahl Pedersen 

Hi,

I have a small piece of code for resizing child windows when you activate it
in the layout window.
The resizing is working ok, but the child windows are not repainted.
I have tried the UpdateWindow from the Form object as well as the child
object, but without result.
Any ideas ?

Regards
Jonas

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2370
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: Repaint of design window

Post by Jeff Luther » 01 Dec 2002, 19:50

 Posted by:  Jeff Luther 

I'd like to see a small test appl. showing your nonrepaint issue, Jonah. I'm
surprised SalUpdateWindow() doesn't work, esp. if you pass hWndForm as
the parameter. Even if your "small piece of code" is doing something 'outside'
CTD, a SUW() call should force a repaint.

- Jeff Luther/PC Design [TeamAssist]
email: pcdesign@pulpcards.com
info: www.pulpcards.com/Centura/

jonas

Re: Repaint of design window

Post by jonas » 02 Dec 2002, 11:10

 Posted by:  jonas 

Hi Jeff

I am not talking about runtime situations.
It is a tool i am using when developing, so SalUpdateWindow( hWndForm ),
will only update the
hidden form window from the tool and not the design window in the compiler
as wanted.
The UpdateWindow from the CDK Form object, requires a parameter
oForm.UpdateWindow( number: mItemChanged ), what to use here ?
I have tried wih the handle to the form and the hadle to the child which
atributes are altered, but no result.
It is quite hard for me to ship a sample, but if someone need it for
understanding the issue, i will

Regards
Jonas

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2370
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: Repaint of design window

Post by Jeff Luther » 02 Dec 2002, 18:56

 Posted by:  Jeff Luther 

I haven't used UpdateWindow(), but as I traced through it in CBCDK.APL, I see
that that function calls CDKItemChangeUpdate(), which is declared as:

BOOL CDKItemChangeUpdate(HOUTLINE hOutline , HITEM hItem , int nItemType)

I would guess from this that the the current context of where you are in the outline,
defined by hOutline and hItem, are used in conjunction with the nItemType value
you pass in UpdateWindow() to update it. Does this give you an additional clue
as to usage?

If not, maybe another soul here can better help you.

- Jeff

jonas

Re: Repaint of design window

Post by jonas » 03 Dec 2002, 12:12

 Posted by:  jonas 

Basically what I did wrong was to try to "do" UpdateWindow on the form, it
must be done on each child.

Thanks to Frank Boettcher

Return to “td.cdk”

Who is online

Users browsing this forum: [Ccbot] and 1 guest