Print Page | Close Window

[RE-OPENED] Form caption issue

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=10749
Printed Date: 26 April 2024 at 10:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [RE-OPENED] Form caption issue
Posted By: Aaron
Subject: [RE-OPENED] Form caption issue
Date Posted: 22 May 2008 at 1:30pm
Hi,
 
Why can I resize a form to just about 5x5 pixels when a skin is applied ? (see image 2) When no skin is applied you can resize the form as big as the min/max/close buttons plus Icon and little bit of caption (not smaller !!)
 
 
 
This is solved in V12.1.0
 
 
Thanks
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



Replies:
Posted By: satyakvv
Date Posted: 01 October 2008 at 2:51pm
No resolution for this ? It is really annoying that the window can be resized to very small size. 


Posted By: Aaron
Date Posted: 09 October 2008 at 2:00pm
Hi,
 
Answers... we would like a reply on this...
 
Thanks


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: jpbro
Date Posted: 09 October 2008 at 4:32pm
One of my pet peeves with the standard VB forms is that there is no native way to limit their size, and just about every app I write would benefit from this ability. I currently use some subclassing code (compiled into a separate DLL to prevent IDE crashes during debugging) to accomplish this task. If you are interested I can post the code here.

But really, it would be a great feature of either the SkinFramework or the CommandBars controls if they had the following properties: MinWidth, MinHeight, MaxWidth, MaxHeight. I can't imagine it would be that difficult for CJ to tack on those features into their codebase, and it would be a real benefit to their VB6 customers.

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Oleg
Date Posted: 10 October 2008 at 2:45am
Thanks, Fixed for 12.1 release.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Oleg
Date Posted: 10 October 2008 at 2:50am

Jason, seems like good idea for new control - FormExtender. we can add some Transparency propety and Vista borders here too.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jpbro
Date Posted: 10 October 2008 at 11:44am
Oleg, that would be a very welcome control! While you're thinking about it, here are some other features that would be nice:

1) CloseButton property (to enable disable the X button, this is another thing that requires the API).
2) Maybe an option to automatically remember the form position & size the last time it was closed, and restore it the next time it is open (even between sessions)?




-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Aaron
Date Posted: 10 October 2008 at 12:09pm
Originally posted by oleg oleg wrote:

Jason, seems like good idea for new control - FormExtender. we can add some Transparency propety and Vista borders here too.

 
Hi,
 
If this is going to replace standard VB Form with all (sometimes) useless properties that have to do with system menu, you have my vote too  It's really annoying when you don't want just the standard form with all buttons. Would be nice if one would have a choise which button would be visible and not in a way MS does control it's forms.
 
Thanks a lot in advance
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Oleg
Date Posted: 13 October 2008 at 6:42am
Hi,
we added FormExtender control - it will be not replacement but small control you can put to form and change some properties of this form.
 
Properties now:
 
Caption (too allow set Unicode caption for form)
Transparency;
Region (to set non rectangle region for form)
AllowDragClient;
Closable; ( to enable/disable close button in runtime)
ClientMinWidth;
ClientMinHeight;
ClientMaxWidth;
ClientMaxHeight;
 
More ideas ? :)


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Aaron
Date Posted: 13 October 2008 at 2:39pm
Hi Oleg,
 
That is great news
 
Well, it would be nice to have following:
 
  1. Option to set form to topmost form
  2. Prevent doubleclick in caption to maximize
  3. Prevent moving form
  4. Gradient background (begin + endcolor)
  5. Option to attach form to picturebox or some container (this will open a lot of possibilities) 
  6. Save size, position and properties (registry / file)
  7. Option to have an icon in caption but not the system menu (prevent dropdown system menu)
 
I know it isn't christmas yet but some features would be nice if they will be added
 
Thanks a lot
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: jpbro
Date Posted: 13 October 2008 at 2:53pm
This is great news...

I particularly agree with Aaron's additions #1 and #6.

Also, a Markup enabled Caption would be cool (although maybe more appropriate for CommandBars or SkinFramework, not sure).

Lastly, some additional events would be cool:

- Resizing (while form is resizing, not after it is resized) with a Cancel parameter
- Moving (while form is being moved) with a Cancel parameter
- Moved (after a form has been moved)
- AppGotFocus, AppLostFocus (when task switches to another app or back)


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: ijwelch
Date Posted: 13 October 2008 at 8:52pm
And how about an easy way to set a unicode caption. And maybe alpha icon?

If you're implementing form size/position saving/loading then please also include whether form is maximized or not - other 'form extender' controls seem to restore maximized forms as non-maximized but fill entire screen.


Posted By: jpbro
Date Posted: 13 October 2008 at 9:24pm
Good idea ijwelch. The ability to add alpha (48x48 for XP, and 256x256 PNG icons for Vista) would be great. Right now I have to run a batch file against my compiled EXEs to add XP & Vista icons before distribution. If we could just add an ImageManager icon, that would be perfect.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Aaron
Date Posted: 22 October 2008 at 2:16pm
Hi,
 
Ideas are good (Jason and Ian) but a reply would be better (Oleg)
 
Thanks
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Oleg
Date Posted: 23 October 2008 at 5:55am
Yes, Thanks, all good ideas. SavePlacement/RestorePlacement also added.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Mika
Date Posted: 23 October 2008 at 7:05am

Dear Mr. Oleg,

Change request (if possible) about the visible degree (transparent function)

If we get possible to set transparency of a form, I want you to create fade-in / fade-out functions when the form is loading and unloading.
I think that we are convenient when there is an option to be able to choose fast/slow or set mili-second.

Best Regards,



Posted By: Aaron
Date Posted: 21 November 2008 at 3:43am
Hi,
 
The new FormExtender control is really great   Thank you for that !!!!!
 
There is one thing that doesn't work though. When setting a Region for FormExtender (in IDE) and loading a skin at runtime the form shows as an ordinary form would. I tried to set Region after loading skin and now the form shows with the loaded region BUT when resizing the form the Region will be destroyed  
 
Without SkinFrameWork it works as should
 
 
QUESTION: What would AllowDragClient do exactly? I would have guess this would prevent the form from being moved. But it still can be dragged...
 
Thanks a lot
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Oleg
Date Posted: 21 November 2008 at 4:26am
Hi,
 
Thanks, will check Region thing :-(
If you set AllowDragClient to  True you will be able move Form by dragging it to some point inside client.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Aaron
Date Posted: 21 November 2008 at 5:54am
Originally posted by oleg oleg wrote:

Hi,
 
[...]
If you set AllowDragClient to  True you will be able move Form by dragging it to some point inside client.

[...]

 
Hi Oleg,
 
I really don't see what it does... Is this for MDI apps? If not, could you provide an example?
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Oleg
Date Posted: 21 November 2008 at 6:16am
Hi,
Its for simple forms.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Aaron
Date Posted: 23 November 2008 at 9:23am
Originally posted by Mika Mika wrote:

 
[...]
If we get possible to set transparency of a form, I want you to create fade-in / fade-out functions when the form is loading and unloading.
I think that we are convenient when there is an option to be able to choose fast/slow or set mili-second.

 
Hi,
 
You could just create loop to set transparency of form (don't forget to add DoEvents) in loop. This will be just enough to fade in/out form
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Aaron
Date Posted: 23 November 2008 at 9:25am
Originally posted by oleg oleg wrote:

Hi,
Its for simple forms.
 
Hi Oleg,
 
I still don't understand what you mean. Can you please give me a sample?
 
Thanks a lot
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: jpbro
Date Posted: 23 November 2008 at 5:42pm
Hi Aaron,

Put the FormExtender control on a form and set the AllowDragClient property to True. Now try to drag the form by clicking the inner portion where you would place controls (but don't try to drag a control). You should be able to move the form as if you were dragging the title bar.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Aaron
Date Posted: 23 November 2008 at 11:53pm
Originally posted by jpbro jpbro wrote:

Hi Aaron,
You should be able to move the form as if you were dragging the title bar.
 
Hi Jason,
 
Thanks for explaining, now I understand  
Now only Region issue and we have a nice control hehehe
 
Thanks a lot.
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Auge_Ohr
Date Posted: 09 March 2009 at 8:32am
hi,
Originally posted by oleg oleg wrote:


we added FormExtender control - it will be not replacement but small control you can put to form and change some properties of this form.

 

Properties now:

 

Region (to set non rectangle region for form)
More ideas ? :)

any Sample for FormExtender.Region ? not Idee what it is for.thx

-------------
greetings by OHR
Jimmy


Posted By: Aaron
Date Posted: 09 March 2009 at 4:30pm
Originally posted by Auge_Ohr Auge_Ohr wrote:

 
hi
any Sample for FormExtender.Region ? not Idee what it is for.thx
 
 
Hi,
 
With region you can have irregular shaped forms. Only resizing is problem (at least last time I checked it was) so suggest using this only with no sizable form.
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Aaron
Date Posted: 31 December 2010 at 2:42am
Originally posted by Aaron Aaron wrote:

Hi,
 
Why can I resize a form to just about 5x5 pixels when a skin is applied ? (see image 2) When no skin is applied you can resize the form as big as the min/max/close buttons plus Icon and little bit of caption (not smaller !!)
 
 
 
This is solved in V12.1.0
 
 
Thanks
 
 
Hi,
 
This seems only solved when having the ControlBox property set to True. If ControlBox is invisible you are able to resize form as small as above image. But then again, "mighty" MS produces same flaw... If CJ doesn't (or can't) fix this you can always drop FormExtender control onto form and the only thing you have to do, is setting ClientMinWidth to +/- 120
 
Thanks
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net