CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

IWCGJQDialog positions and dimensions

General discussion

by CristianP » 02 Oct 2012 14:25

I want to use IWCGJQDialog like MDI child forms.
For this I need to save position and dimension and restore next time the user will open the form.
On a new empty form I tested with Position=jqdopCustom.

1. Every time the dialog shows position is at top regardless of what I write in Top.
In your Demo project I do not know why this do not happens (ex. DialogDescription in MainForm) but Top is always like design time.
Left, Width and Height is OK.
3. I used DragStop event to record the position but is always old positions (before dragging)
4. I used ResizeStop event to record dimension but dimensions are missing.

Best regards,
Cristian Peța
CristianP
 
Posts: 14
Joined: 01 Aug 2012 00:52

by Jorge Sousa » 02 Oct 2012 15:12

Hi

It's working fine for me

Did you set a DocType?

It's very important for Dialogs, mainly modals

cgdevtools
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by CristianP » 02 Oct 2012 16:20

Thank You

With DocType is almost OK. I used ..!DOCTYPE html...
But now in DragStop and ResizeStop I have always old values that should be in previous event.
If I start with DragStop I do not have values (IWCGJQDialog1_Pos is missing).
In next DragStop I have old values from last DragStop.
But in the next ResizeStop I have IWCGJQDialog1_Pos from last DragStop and not IWCGJQDialog1_Size.

Best regards
CristianP
 
Posts: 14
Joined: 01 Aug 2012 00:52

by Jorge Sousa » 02 Oct 2012 18:50

Crisitian

If you know how to debug in browser, you could put a breakpoint in the euqivalent of DragStop, and check what script expression you need to send to server, using BrowserParams

if you don't feel confortable with that, send us a demo explaining what you want, and we'll take a look

Regards

cgdevtools
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Jorge Sousa » 02 Oct 2012 22:34

Hi again Cristian

We took a better look to your latest post,

The fact is the we use the dragDrop event to mark position to be sent on next event,

but is doing that after call the event OnDragDrop, and now we changed to mark before

So from version >= 1.3.1.1131, the IWCGJQDialog props Left and Top will be already updated when the event OnDragDrop is triggered.

And the same for resizeStop event, for Width and Height.

Best Regards

cgdevtools
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by CristianP » 03 Oct 2012 08:06

Thank You for your rapid answers.

I just prepared an example project but it looks you understood the problem.
I write to much and vague. Next time I will try to be more clear.

Best Regards,
Cristian Peța
CristianP
 
Posts: 14
Joined: 01 Aug 2012 00:52


Return to General - Archive

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.