Similar Visual Basic .NET's "Anchor" property in Visual Objects? - Clipper
This is a discussion on Similar Visual Basic .NET's "Anchor" property in Visual Objects? - Clipper ; Hello to everybody,
I was wondering if it's posible to design a DataWindow with controls
(Single-Line Edit, Multi-Line Edit, etc) with a similar behavior that
it's seen in Visual Basic .NET when using the "Anchor" property?
What does the Anchor ...
-
Similar Visual Basic .NET's "Anchor" property in Visual Objects?
Hello to everybody,
I was wondering if it's posible to design a DataWindow with controls
(Single-Line Edit, Multi-Line Edit, etc) with a similar behavior that
it's seen in Visual Basic .NET when using the "Anchor" property?
What does the Anchor feature do?
When you set the controls in VB.NET forms, you can properly resize the
controls based on the size of the form.
For a better explanation of what this property do (because my English
is so poor), you can watch the following video:
http://www.microsoft.com/seminar/sha...est.xml&rate=1
Thanks in advance.
Best Regards,
David Desmet
-
Re: Similar Visual Basic .NET's "Anchor" property in Visual Objects?
David,
VO Owner Alignment property works similar to VS "anchor" property and
TableLayoutPpanel component.
By the way,
I cannot see this video. The screen is black. I can hear only voice. I've
noticed that problem from some time. I see all online videos black. It is
related only to videos which are started from internet link - (streaming?).
But when I download the video (WMV file) than I can view it correctly. I do
not know why. XP SP2, Windows Media Player 11, IE 7.
Marek
Uzytkownik "iDesmet" <idesmet.vom@gmail.com> napisal w wiadomosci
news:1177687124.792751.287230@t38g2000prd.googlegroups.com...
> Hello to everybody,
>
> I was wondering if it's posible to design a DataWindow with controls
> (Single-Line Edit, Multi-Line Edit, etc) with a similar behavior that
> it's seen in Visual Basic .NET when using the "Anchor" property?
>
> What does the Anchor feature do?
>
> When you set the controls in VB.NET forms, you can properly resize the
> controls based on the size of the form.
>
> For a better explanation of what this property do (because my English
> is so poor), you can watch the following video:
>
> http://www.microsoft.com/seminar/sha...est.xml&rate=1
>
> Thanks in advance.
>
> Best Regards,
> David Desmet
>
-
Re: Similar Visual Basic .NET's "Anchor" property in Visual Objects?
David,
Which version of VO are you using? This has been a feature of VO for
some time now and each version of 2.7 brought newer alignment styles
(more proportional options etc). Check the What's New files that come
with VO for details and there is one example in the gallery I think.
The only thing VO doesn't do is show you this effect in the designer,
which is not really a problem because you need to decide on a base size
anyhow. You can also easily prevent the user from going below your
minimum recommended window size.
Geoff
"iDesmet" <idesmet.vom@gmail.com> wrote in message
news:1177687124.792751.287230@t38g2000prd.googlegroups.com:
> Hello to everybody,
>
> I was wondering if it's posible to design a DataWindow with controls
> (Single-Line Edit, Multi-Line Edit, etc) with a similar behavior that
> it's seen in Visual Basic .NET when using the "Anchor" property?
>
> What does the Anchor feature do?
>
> When you set the controls in VB.NET forms, you can properly resize the
> controls based on the size of the form.
>
> For a better explanation of what this property do (because my English
> is so poor), you can watch the following video:
>
> http://www.microsoft.com/seminar/sha...est.xml&rate=1
>
> Thanks in advance.
>
> Best Regards,
> David Desmet
-
Re: Similar Visual Basic .NET's "Anchor" property in Visual Objects?
David,
I use 2 separate mechanisms for resizing.
I have a "Zoom" function built on a modified version of the VO resizing
function. With this, I magnify or shrink a whole window, including fonts and
all controls. Users use this feature instead of buying stronger glasses
)
A user will set this once for an app and _all_ windows are scaled before
being shown. The VO resizing does almost all this work - I just have to pick
a font size that all my subclassed controls inherit, and combobox
editheights have to be fixed.
Then I have a separate window resizing function that uses anchors. This is
the mechanism used when a user drags the corner or edge of a window. If the
window is resizable (and most are not), each control knows how to behave.
The aim here is to show more or less data on a screen.
Each control is anchored to a corner of the window so that the x and y
offset to the appropriate corner of the control remains constant. eg anchor
to the top right corner, and the control's top right corner always stays the
same x and y distance from it. [You could anchor one control to another, but
I have never had the need to do this.]
Each control also knows if it can stretch in the x and y dimensions. During
window design, you must decide which controls can stretch. In my case, I
design resizeable windows around a browser or grid which can stretch in both
directions. Other controls are arranged around it. I might allow a
singlelineedit, combo or button to stretch horizontally but only to fill a
gap for aethetic reasons. We have a modified Cavowed.inf with all this in
it.
And to avoid the flicker you get reacting to the Resize event, we only run
our resizing function when we see the WM_EXITSIZEMOVE message.
We all design apps differently. In my case, all windows benefit from Zooming
but very few benefit from Resizing. It will be different for others.
Someone reminded me recently that Ivo Wessel has written about this in his
book and his Colombo app demonstrates his ideas and techniques. No better
place to start than there.
HTH
Dave Francis
"iDesmet" <idesmet.vom@gmail.com> wrote in message
news:1177687124.792751.287230@t38g2000prd.googlegroups.com...
> Hello to everybody,
>
> I was wondering if it's posible to design a DataWindow with controls
> (Single-Line Edit, Multi-Line Edit, etc) with a similar behavior that
> it's seen in Visual Basic .NET when using the "Anchor" property?
>
> What does the Anchor feature do?
>
> When you set the controls in VB.NET forms, you can properly resize the
> controls based on the size of the form.
>
> For a better explanation of what this property do (because my English
> is so poor), you can watch the following video:
>
> http://www.microsoft.com/seminar/sha...est.xml&rate=1
>
> Thanks in advance.
>
> Best Regards,
> David Desmet
>
-
Re: Similar Visual Basic .NET's "Anchor" property in Visual Objects?
iDesmet wrote:
> Hello to everybody,
>
> I was wondering if it's posible to design a DataWindow with controls
> (Single-Line Edit, Multi-Line Edit, etc) with a similar behavior that
> it's seen in Visual Basic .NET when using the "Anchor" property?
>
Hi David,
if you want to see some possibilities of VO, then you could take a look
here (it's a hobby-project of mine):
http://www.scavalon.be/avalonuk/soft...reenprints.htm
If you want to download it:
http://www.scavalon.be/avalonuk/software/software.htm
It will not touch your VO or Windows environment, you can even install
it on a USB key. If you're done playing with it, just delete the entire
folder structure and that's it.
It is basically a database for caves (yes those dark, cold black holes
some people explore :-) )
no spectacular software but it does what it has to do, and it shows a
lot of possibilities of VO:
- resizeable windows & controls (as you described)
- browser showing pictures, icons etc..
- image support: preview, scanning etc..
- reporting, emailing (with RTF/PDF attachment etc)
- export/import to various formats
- multilanguage (right now some Costa Rica cavers are translating it to
Spanish)
- calling of foreign dll's
- fast text search
- saved filters
You could take a look at it and if ever some features interest you, I
can give you some info on how to do it with VO.
PS: I can also send you a small database that you can import which will
make it more 'visual' for you to explore the possibilities of it.
Paul
--
Paul
-
Re: Similar Visual Basic .NET's "Anchor" property in Visual Objects?
Hi Paul,
from this page (http://www.scavalon.be/avalonuk/software/software.htm),
The link to download the app. is not working :
http://www.scavalon.be/downloads/SB270Full.exe
because the name of the exe changed to :
http://www.scavalon.be/downloads/SB271Full.exe
HTH,
--
Phil Mermod
Crystal Reports Library for Visual Objects
http://www.pkl.ch/dev/
Paul D B wrote:
> iDesmet wrote:
> > Hello to everybody,
> >
> > I was wondering if it's posible to design a DataWindow with controls
> > (Single-Line Edit, Multi-Line Edit, etc) with a similar behavior
> > that it's seen in Visual Basic .NET when using the "Anchor"
> > property?
> >
>
>
> Hi David,
>
> if you want to see some possibilities of VO, then you could take a
> look here (it's a hobby-project of mine):
>
> http://www.scavalon.be/avalonuk/soft...reenprints.htm
>
> If you want to download it:
>
> http://www.scavalon.be/avalonuk/software/software.htm
>
> It will not touch your VO or Windows environment, you can even
> install it on a USB key. If you're done playing with it, just delete
> the entire folder structure and that's it.
>
> It is basically a database for caves (yes those dark, cold black
> holes some people explore :-) )
>
> no spectacular software but it does what it has to do, and it shows a
> lot of possibilities of VO:
>
> - resizeable windows & controls (as you described)
>
> - browser showing pictures, icons etc..
>
> - image support: preview, scanning etc..
>
> - reporting, emailing (with RTF/PDF attachment etc)
>
> - export/import to various formats
>
> - multilanguage (right now some Costa Rica cavers are translating it
> to Spanish)
>
> - calling of foreign dll's
>
> - fast text search
>
> - saved filters
>
> You could take a look at it and if ever some features interest you, I
> can give you some info on how to do it with VO.
>
> PS: I can also send you a small database that you can import which
> will make it more 'visual' for you to explore the possibilities of it.
>
> Paul
-
Re: Similar Visual Basic .NET's "Anchor" property in Visual Objects?
Thank you to everyone who took the time to answer.
To Marek,
I didn't know that the Owner Alignment property can acomplish that
job. I should read more before asking...
About your problem related to online video streaming, I don't know how
I can help you, I have in a different partition the same specs (WinXP
SP2, WMP 11 and IE7) but it works for me. Have you tried with a
different web browser?
To Geoff,
I'm using version 2.7b (2740). About the "minimum recommended windows
size" property, I was also looking for this, I'll look again at the
book.
To Dave,
Thank you, but I'm looking for something more simple, I'm still a
beginner in all this. About the Ivo Wessel's book, I've heard about it
but didn't buy it because someone told me that it's for advanced
users.
To Paul,
I've just installed your application. Looks great, congratulations! As
you had said, it shows a lot of possibilities of VO. All of them are
very interesting...
Thanks, I'm very interested in your database. Could you send a copy to
my mail if it's not too much trouble for you.
Thank you.
To Phil,
Thank you for pointing the right path to download the exe.
To Everyone,
Have a nice day!
Best Regards,
David Desmet
-
Re: Similar Visual Basic .NET's "Anchor" property in Visual Objects?
It is in the readme to one of the versions, not the book. Let me know if
you don't find it.
Geoff
-
Re: Similar Visual Basic .NET's "Anchor" property in Visual Objects?
Thank you Geoff,
I found it in the "WhatsNew27A.htm" file.
This is my Method using the MinSiZe dimension object:
METHOD Init( oWindow, iCtlID, oServer, uExtra ) CLASS
NewEmployeeWindow
SUPER:Init( oWindow, iCtlID, oServer, uExtra )
SELF:Caption := 'New Employee'
SELF:Menu := StandardShellMenu{}
SELF:IconSm := IDI_FILENEWICON32{}
SELF:MinSize := Dimension{772,386}
RETURN SELF
I needed to change the dimension because the width and height shown in
the IDE didn't match with the end result. The original dimension was
764x358 pixels.
David Desmet
-
Re: Similar Visual Basic .NET's "Anchor" property in Visual Objects?
Phil Mermod wrote:
> Hi Paul,
>
> from this page
> (http://www.scavalon.be/avalonuk/software/software.htm), The link to
> download the app. is not working :
> http://www.scavalon.be/downloads/SB270Full.exe
>
> because the name of the exe changed to :
> http://www.scavalon.be/downloads/SB271Full.exe
>
> HTH,
>
thanks, didn't notice that because I always use the Dutch pages and
there it is OK.
will change it asap
--
Paul
Similar Threads
-
By Application Development in forum Object
Replies: 5
Last Post: 08-10-2007, 12:48 PM
-
By Application Development in forum Adobe Indesign
Replies: 2
Last Post: 11-12-2006, 01:20 AM
-
By Application Development in forum Adobe Indesign
Replies: 0
Last Post: 11-05-2006, 02:08 AM
-
By Application Development in forum DOTNET
Replies: 0
Last Post: 02-21-2005, 01:25 PM
-
By Application Development in forum basic.visual
Replies: 8
Last Post: 06-11-2004, 04:39 AM