Page 2 of 4 <1234>
Topic Options
#171243 - 2006-12-08 06:13 PM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Gargoyle]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
When it comes to the '.Dock' property, the sequence that the controls are created in decides the position of the controls on the form.

To understand what I am trying to say, using KFD.Net create two Panels on a blank form, then create a splitter on the form. Set the splitter.dock = bottom, set one panel.dock = bottom, and the other panel.dock = fill. In the object treeview (top right corner of KFD) select one of the controls (left click on the name of the control in the object treeview) then click the up or down arrow button (to the left of the object treeview). As you rearrange the control sequence in the object treeview the controls on the form will rearrange as well as the sequence that the controls are created on the code page (use the code/form button {top left corner of KFD} to switch from the form to the code and back).

_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#171245 - 2006-12-08 06:21 PM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesso [Re: Benny69]
Arend_ Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1895
Loc: Hilversum, The Netherlands
I'm in the middle of a company reinstall, all servers had to be reinstalled and we're working on perfectioning the RIS images and logonscripts.
We should be done this weekend so that'll help me free up some time for next week in which I'll do my best to complete the form request.

Top
#171246 - 2006-12-08 06:26 PM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesso [Re: Arend_]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
not a problem apronk, i think we all understand how work work is and hope to see your code next week.
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#171264 - 2006-12-08 10:04 PM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesso [Re: Benny69]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
It also helps if you are using the Beta version of KFD \:\(
_________________________
Today is the tomorrow you worried about yesterday.

Top
#171269 - 2006-12-08 11:28 PM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Gargoyle]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
I also had a problem working with panels and splitters. The objects ended always where I did not want them. But in the KFD help file is a good explanation titled "Splitter". Maybe take a look there.
Top
#171275 - 2006-12-09 02:19 AM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Witto]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
- How do I know the size of the form after the size changed?
- Can I add an icon in the menu (for Exit)?


Attachments
10-LearningSeriesKiXformsProject01Lesson01.PNG
Description:



Top
#171276 - 2006-12-09 02:40 AM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Witto]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
How do I know the size of the form after the size changed?

Look into the '.SizeChanged' event for the form.
In the function that you define for this event, look into the '.Width' and '.Height' property for the form.


Can I add an icon in the menu (for Exit)?

I have not done that myself and I don't think Shawn has built that in as of yet. If you can figure out how that would be great and others can learn from your example.
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#171323 - 2006-12-11 06:34 PM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Benny69]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Quote:
The minimum size of the form should not be allowed to be smaller than 600,400 (Width, Height) if it is resized.


In KFD there is the Form property "MinimumSize" - Of course this sounded like the perfect solution to the requirement...

However it appears that this is not implemented at this time. Or am I missing something?

When looking at the TypeLibrary it does not show this property. So is the only solution to watch the SizeChanged event?
_________________________
Today is the tomorrow you worried about yesterday.

Top
#171329 - 2006-12-11 09:24 PM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Gargoyle]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
SizeChanged event, yes or i supose you could use a timer.
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#171338 - 2006-12-12 01:42 AM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Gargoyle]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Well I almost have it, And Benny can I say .... Gee thanks... I thought it was going to be easy \:\)
_________________________
Today is the tomorrow you worried about yesterday.

Top
#171340 - 2006-12-12 02:04 AM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Gargoyle]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
The next lesson sould be a little harder, but I don't think it will be anything that everyone can't handle. I do think there will be some questions though, and that's ok.
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#171371 - 2006-12-12 05:47 PM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Benny69]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Ok, I have mine ready... I will await the open coding section now.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#171375 - 2006-12-12 05:55 PM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Gargoyle]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Nice going Garg,

I still struggle with letting the form remember last position and Splitter distances which was soooo easy with classic kf... I will try to get a form by the end of the week but I might give in before and stick with the tools I know


Edited by Jochen (2006-12-12 05:55 PM)
_________________________



Top
#171398 - 2006-12-12 11:05 PM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Jochen]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
Jochen, splitter distance http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=170867&page=1#Post171243

remember form size (there is more than one way to Dim a variable).
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#171399 - 2006-12-12 11:12 PM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Benny69]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
there is?
_________________________
!

download KiXnet

Top
#171400 - 2006-12-12 11:34 PM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Lonkero]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
I don't know if the way that I came up with is the "proper way", but it seems to maintain position upon a resize.

I am sure that once we post, there will be lots of comments on how things are done.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#171401 - 2006-12-12 11:38 PM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Gargoyle]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, once it's public, I shall take the code by benny so can participate in part2 ;\)
_________________________
!

download KiXnet

Top
#171402 - 2006-12-13 12:13 AM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Lonkero]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
Jooel, I know you can come up with a better way than I have. I know you hate dealing with the GUI but heck KFD does the hard part for you. I will be disapointed if you don't post your own code ;\)
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#171405 - 2006-12-13 12:56 AM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Benny69]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
uhm.
look at your task.

it would take me a day with my belowed notepad and lots of beer to be able to accomplish that many gui objects.

I'm afraid I must skip this one, skippy.
_________________________
!

download KiXnet

Top
#171425 - 2006-12-13 01:05 PM Re: KiXforms.Net Learning Series - Windows Registry Run Project 01 - Lesson 01 [Re: Benny69]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Question:

does $system.Icon.FromBase64String() handle strings that are converted from bmp files ?

I can't beat this to work :

Code:
break on

$system = createobject('Kixforms.System')

$form = $system.Form()
$form.Icon = $system.Icon.FromBase64String(String_FormIcon())


$form.Show


while $form.Visible
    $_ = execute($system.Application.DoEvents)
loop

function String_FormIcon()
    $String_FormIcon = "
    Qk02AwAAAAAAADYAAAAoAAAAEAAAABAAAAABABgAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////
    ////////////////////////////////wMDAwMDAwMDA////////AAAAAAAA////////////
    ////////////wMDAwMDAAAAAAAAAAAAAwMDA////////AAAAAAAA////////////////////
    AAAAAAAAAAAAAAAAAAD/AAAAwMDA////////AAAAAAAA////////////////////AAAAwMDA
    ////AAAAAAAAAAAA////////////AAAAAAAA////////////////////AAAAwMDA////////
    wMDAwMDAwMDA////////AAAAAAAA////////////////////AAAAwMDAwMDAAAAAAAAAAAAA
    wMDA////////AAAAAAAA////////////////////AAAAAAAAAAAAAAAAAP8AAAAAwMDA////
    ////AAAAAAAA////////////////////AAAAwMDAwMDAAAAAAAAAAAAA////////////AAAA
    ////wMDAwMDAwMDAwMDAAAAAAAAAAAAAwMDA////////////////////////AAAA////AAAA
    AAAAAAAAAAAAAAAAAP//AAAAwMDA////////////////////////AAAA////AAAAwMDA////
    ////AAAAAAAAAAAA////////////////////////////AAAA////AAAAwMDA////////////
    ////////////////////////////////////AAAAAAAAAAAAAAAAwMDAAAD/AAD/AAD/AAD/
    AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAAAAAAA//8AAAAAwMDAAAD/AAD/AAD/AAD/AAD/AAD/
    AAD/AAD/AAD/AAD/AAD/AAAAAAAAAAAAAAAAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAA
    "
endfunction


the string results from 6-FormIcon.png you attached earlier converted to (saved as) bitmap.
_________________________



Top
Page 2 of 4 <1234>


Moderator:  NTDOC, ShaneEP, Mart, Radimus, Glenn Barnas, Jochen, Allen 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 457 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.076 seconds in which 0.027 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org