Jump to content

GUI Designer: Koda 1.7.3.0


Lazycat
 Share

Recommended Posts

Hi all.

While Koda is not too big project, I'm decided to open simple bug tracker on my site. So, you can post bugs and suggestions there directly. It's should be easier to maintain them in one place instead searching the thread.

Sadly, I probably will have no time to fix them approximately till end of january: our company moving to new location and there now a lot of work.

but i just tried it i didn't figured how to add the code in the buttons or in the labels.... or in any element...

You have to insert your code independently from GUI, in loop or in the function.

When I attempt to add a picture, or add styles to a button and click the Run Form button, it errors saying it can't find one of the styles..

Last two or three betas should be compatable with new includes structure.

Can be implemented support forĀ GUIStartGroup()?

GUICtrlCreateGroup() - for visible group of radio items

GUIStartGroup() - for invisible group of radio items

I thinks easiest way is adding "Invisible" property for Group control, in this case invisible group code will be generated.
Link to comment
Share on other sites

Hi all.

While Koda is not too big project, I'm decided to open simple bug tracker on my site. So, you can post bugs and suggestions there directly. It's should be easier to maintain them in one place instead searching the thread.

Can you place this link also at first post of this topic (and at Koda web) please?

Link to comment
Share on other sites

  • 1 month later...

After long period of busyness I got some free time. Here is another beta, mostly bugfixes.

http://koda.darkhost.ru/koda_2009-02-10.zip

I still have no access to fileman, so homepage is not updated...

Don't forget, that Koda have a bugtracker now. It's preferable way to posting bugs.

Link to comment
Share on other sites

  • 3 weeks later...

Got idea i wish on next beta it will be ))

=========================

Make Koda & Scite work together as it in Delphi

Work in Koda and edit script in scite, trough Koda :P

ŠŸŠ¾ руссŠŗŠø Š³Š¾Š²Š¾Ń€Ń чтŠ¾Š±Ń‹ Š¼Š¾Š¶Š½Š¾ Š±Ń‹Š»Š¾ ŠæряŠ¼Š¾ Š² ŠšŠžŠ”Š Š²Š°ŃˆŠµŠ¼ рŠµŠ“Š°ŠŗтŠøрŠ¾Š²Š°Ń‚ŃŒ сŠŗрŠøŠæты

с ŠæŠ¾Š“сŠ²ŠµŃ‚ŠŗŠ¾Š¹ сŠøŠ½Ń‚Š°ŠŗсŠøсŠ°, Š½Ńƒ тŠøŠæŠ¾ ŠŗŠ°Šŗ Š² Š“ŠµŠ»Ń„Šø Š½ŠµŠ²Ń‹Ń…Š¾Š“я Š²ŃŃ‘ ŠæряŠ¼ тŠ°Š¼ Šø ŠŗŠ¾Š“Šøтся,

Š° тŠ¾ фŠøŠ³Š¾Š²Š¾ Š²Ń‹Ń…Š¾Š“Šøть ŠøŠ· ŠŗŠ¾Š“ы ŠæŠ¾Ń‚Š¾Š¼ Š² Š”чŠøтŠµ Š“Š¾ŠæŠøсыŠ²Š°Ń‚ŃŒ Š° ŠæŠ¾Ń‚Š¾Š¼ ŠµŃŠ»Šø Š·Š°Š±Ń‹Š» Š² фŠ¾Ń€Š¼Š¾Ń‡Šŗу чётŠ° Š“Š¾Š±Š°Š²Šøть Š¾Šæять Š² ŠŗŠ¾Š“у Š·Š°Ń…Š¾Š“Šøть Šø т Š“...

[RU] Zone
Link to comment
Share on other sites

In first post is in description "Current beta 1.7.0.8"

It should be "Current beta 1.7.0.9"

Trying to load a 2560 x 1280 Jpg. in a small sized box. So when I click on it opens up a large Gui of the picture. Problem is when I look at it working and showing what I want when koda is running its fine. But when I go and Run the program I don't see the default picture... ???????

Link to comment
Share on other sites

Got idea i wish on next beta it will be ))

=========================

Make Koda & Scite work together as it in Delphi

Work in Koda and edit script in scite, trough Koda :unsure:

This is not so simple technically. Delphi used form definition separated from source and it's strictly structured, with all controls defined at the beginning of the .pas file. I'm already written about that detailed somewhere in the topic. Maybe, if this even will be possible, this will be done somewere in Koda 2.0 :P

It should be "Current beta 1.7.0.9"

Fixed.

Trying to load a 2560 x 1280 Jpg. in a small sized box. So when I click on it opens up a large Gui of the picture. Problem is when I look at it working and showing what I want when koda is running its fine. But when I go and Run the program I don't see the default picture... ???????

Sorry, I'm failed to got what you try to ask... Maybe some examples can help.
Link to comment
Share on other sites

  • 2 weeks later...

Well, until no severe bigreport will be posted, I think this beta (actually RC) will be last till release. The version will be set to 1.7.1, not 1.8 since too few new features was added in this beta cycle :D Now is only planned to update helpfile and language files, so this is a good time for language translators to revise translations. Though, language files from 1.7.0.1 should work fine, only few new strings will be untranslated.

http://koda.darkhost.ru/koda_2009-03-25.zip

Until fileman will be (probably) fixed and I can update homepage, I change all homepage links to my site.

Link to comment
Share on other sites

Hi Lazycat,

two small remarks to koda (AutoIt-koda_2009-03-25.zip):

1) TAObj : at startup of design mode the correct size (in example H:200,W:100) will not be shown (instead: H:20, W:50)

2) TADate: the font size and style will not be set in generated form code (copy to clipboard)

ex: GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") is missing

Example form definitions(.kxf file):

CODE
<?xml version="1.0" encoding="windows-1251"?>

<object type="TAForm" name="GUI_Main">

<properties>

<property name="Left" vt="Int16">202</property>

<property name="Top" vt="Int16">141</property>

<property name="Width" vt="Int16">221</property>

<property name="Height" vt="Int16">221</property>

<property name="Caption" vt="String">Testform</property>

<property name="Color" vt="Ident">clSilver</property>

<property name="Font.Charset" vt="Ident">DEFAULT_CHARSET</property>

<property name="Font.Color" vt="Ident">clWindowText</property>

<property name="Font.Height" vt="Int8">-11</property>

<property name="Font.Name" vt="String">MS Sans Serif</property>

<property name="Font.Style" vt="Set"/>

<property name="OldCreateOrder" vt="False">False</property>

<property name="Visible" vt="True">True</property>

<property name="Style" vt="Int32">-1798701056</property>

<property name="ExStyle" vt="Int16">256</property>

<property name="Version" vt="String">1.04</property>

<property name="FormOptExpVars" vt="True">True</property>

<property name="FormOptIndentCount" vt="Int8">0</property>

<property name="PixelsPerInch" vt="Int8">96</property>

<property name="TextHeight" vt="Int8">13</property>

</properties>

<components>

<object type="TADate" name="dtShowDay">

<properties>

<property name="Left" vt="Int8">5</property>

<property name="Top" vt="Int8">11</property>

<property name="Width" vt="Int16">201</property>

<property name="Height" vt="Int8">24</property>

<property name="Date" vt="String">21.01.2009</property>

<property name="Time" vt="String">21:25:28</property>

<property name="Font.Charset" vt="Ident">DEFAULT_CHARSET</property>

<property name="Font.Color" vt="Ident">clWindowText</property>

<property name="Font.Height" vt="Int8">-13</property>

<property name="Font.Name" vt="String">MS Sans Serif</property>

<property name="Font.Style" vt="Set">fsBold</property>

<property name="ParentFont" vt="False">False</property>

<property name="TabOrder" vt="Int8">0</property>

<property name="CtrlStyle" vt="Int32">1342242816</property>

<property name="CtrlExStyle" vt="Int16">512</property>

<property name="Resizing" vt="Set">DockHeight</property>

</properties>

<components/>

</object>

<object type="TAObj" name="objIE">

<properties>

<property name="Left" vt="Int8">5</property>

<property name="Top" vt="Int8">50</property>

<property name="Width" vt="Int16">200</property>

<property name="Height" vt="Int8">100</property>

<property name="Active" vt="True">True</property>

<property name="InActiveColor" vt="Ident">clWhite</property>

<property name="GUID" vt="String">{8856F961-340A-11D0-A96B-00C04FD705A2}</property>

<property name="ServerOptions.TransferType" vt="Ident">ttFileServer</property>

<property name="ServerOptions.ConnectType" vt="Ident">ctDirect</property>

<property name="FileOptions.DefaultExt" vt="String">ocx</property>

<property name="FileOptions.FileName" vt="String">ieframe.dll</property>

<property name="FileOptions.Folder" vt="String">C:\WINDOWS\system32\</property>

<property name="AutoRegister" vt="True">True</property>

<property name="AXName" vt="String">Microsoft Web Browser</property>

<property name="AXID" vt="String">Shell.Explorer.2</property>

<property name="TabOrder" vt="Int8">1</property>

</properties>

<components/>

</object>

<object type="TALabel" name="lblViewData">

<properties>

<property name="Left" vt="Int8">4</property>

<property name="Top" vt="Int16">156</property>

<property name="Width" vt="Int16">200</property>

<property name="Height" vt="Int8">18</property>

<property name="AutoSize" vt="False">False</property>

<property name="Caption" vt="String">Obj-Size should be 200 x 100</property>

<property name="Color" vt="Ident">clWhite</property>

<property name="Font.Charset" vt="Ident">DEFAULT_CHARSET</property>

<property name="Font.Color" vt="Ident">clWindowText</property>

<property name="Font.Height" vt="Int8">-13</property>

<property name="Font.Name" vt="String">MS Sans Serif</property>

<property name="Font.Style" vt="Set">fsBold</property>

<property name="ParentColor" vt="False">False</property>

<property name="ParentFont" vt="False">False</property>

<property name="TabOrder" vt="Int8">2</property>

<property name="HaveVariable" vt="False">False</property>

<property name="CtrlStyle" vt="Int32">1342177536</property>

<property name="CtrlExStyle" vt="Int8">0</property>

<property name="Resizing" vt="Set"/>

</properties>

<components/>

</object>

</components>

</object>

Generated form code:

#include <DateTimeConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\AutoIt3\SciTE\Koda\Forms\Koda-Test_01.kxf
$GUI_Main = GUICreate("Testform", 214, 188, 202, 141)
GUISetBkColor(0xC0C0C0)
$dtShowDay = GUICtrlCreateDate("2009/01/21 21:25:28", 5, 11, 201, 24, $WS_TABSTOP)
;  -----> GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") is missing <-----
$objIE = ObjCreate("Shell.Explorer.2")
$objIE_ctrl = GUICtrlCreateObj($objIE, 5, 50, 200, 100)
$lblViewData = GUICtrlCreateLabel("Obj-Size should be 200 x 100", 4, 156, 200, 18)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
GUICtrlSetBkColor(-1, 0xFFFFFF)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd

-------------------------------------------

thanks for your very good job with koda

BaKaMu

Link to comment
Share on other sites

1) TAObj : at startup of design mode the correct size (in example H:200,W:100) will not be shown (instead: H:20, W:50)

Yes, seems default dimensions of inner (embedded) control are overriding dimensions of host control. I'm not frequently use this control, but wonder why someone not found this before :o I'll try to fix.

2) TADate: the font size and style will not be set in generated form code (copy to clipboard)

ex: GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") is missing

Confirm. Don't sure why this control missed font generation - maybe once this was unapplicable? :D
Link to comment
Share on other sites

  • 3 weeks later...

Hi Lazycat,

TAObj size and font definition for TADate are working fine now.

(a big applause for your work)

One late request:

A TAButton have the hotkey-property which works very fine with GUISetAccelerators.

Is there any chance to get the same hotkey-property for TADummy Objects?

I know, there is a workaround (invisible TAButton with hotkey), but a hotkey for TADummy will be more elegant.

CODE
<?xml version="1.0" encoding="windows-1251"?>

<object type="TAForm" name="Form1_1">

<properties>

<property name="Left" vt="Int16">192</property>

<property name="Top" vt="Int8">124</property>

<property name="Width" vt="Int16">314</property>

<property name="Height" vt="Int16">217</property>

<property name="Caption" vt="String">Form1</property>

<property name="Color" vt="Ident">clBtnFace</property>

<property name="Font.Charset" vt="Ident">DEFAULT_CHARSET</property>

<property name="Font.Color" vt="Ident">clWindowText</property>

<property name="Font.Height" vt="Int8">-11</property>

<property name="Font.Name" vt="String">MS Sans Serif</property>

<property name="Font.Style" vt="Set"/>

<property name="OldCreateOrder" vt="False">False</property>

<property name="Visible" vt="True">True</property>

<property name="Style" vt="Int32">-1798701056</property>

<property name="ExStyle" vt="Int16">256</property>

<property name="Version" vt="String">1.04</property>

<property name="FormOptExpVars" vt="True">True</property>

<property name="PixelsPerInch" vt="Int8">96</property>

<property name="TextHeight" vt="Int8">13</property>

</properties>

<components>

<object type="TADummy" name="Dummy1">

<properties>

<property name="Left" vt="Int8">70</property>

<property name="Top" vt="Int8">115</property>

<property name="Width" vt="Int8">28</property>

<property name="Height" vt="Int8">28</property>

</properties>

<components/>

</object>

<object type="TAButton" name="Button1">

<properties>

<property name="Left" vt="Int8">30</property>

<property name="Top" vt="Int8">20</property>

<property name="Width" vt="Int8">111</property>

<property name="Height" vt="Int8">61</property>

<property name="Caption" vt="String">Button1</property>

<property name="TabOrder" vt="Int8">0</property>

<property name="Color" vt="Ident">clBtnFace</property>

<property name="CtrlStyle" vt="Int32">1342390272</property>

<property name="CtrlExStyle" vt="Int8">0</property>

<property name="Resizing" vt="Set">DockWidth, DockHeight</property>

<property name="HotKey" vt="Int16">8305</property>

</properties>

<components/>

</object>

<object type="TAButton" name="Button2">

<properties>

<property name="Left" vt="Int16">160</property>

<property name="Top" vt="Int8">20</property>

<property name="Width" vt="Int8">111</property>

<property name="Height" vt="Int8">61</property>

<property name="Caption" vt="String">Button2</property>

<property name="TabOrder" vt="Int8">1</property>

<property name="Color" vt="Ident">clBtnFace</property>

<property name="CtrlStyle" vt="Int32">1342390272</property>

<property name="CtrlExStyle" vt="Int8">0</property>

<property name="Resizing" vt="Set">DockWidth, DockHeight</property>

<property name="HotKey" vt="Int16">8306</property>

</properties>

<components/>

</object>

<object type="TAButton" name="Dummy2">

<properties>

<property name="Left" vt="Int16">185</property>

<property name="Top" vt="Int8">120</property>

<property name="Width" vt="Int8">51</property>

<property name="Height" vt="Int8">26</property>

<property name="Caption" vt="String">Dummy2</property>

<property name="TabOrder" vt="Int8">2</property>

<property name="Visible" vt="False">False</property>

<property name="Color" vt="Ident">clBtnFace</property>

<property name="CtrlStyle" vt="Int32">1342390272</property>

<property name="CtrlExStyle" vt="Int8">0</property>

<property name="Resizing" vt="Set">DockWidth, DockHeight</property>

<property name="HotKey" vt="Int16">16500</property>

</properties>

<components/>

</object>

</components>

</object>

Best wishes and additional Happy Easter!

BaKaMu

Link to comment
Share on other sites

Is there any chance to get the same hotkey-property for TADummy Objects?

I know, there is a workaround (invisible TAButton with hotkey), but a hotkey for TADummy will be more elegant.

Why not? It's work, it can be useful for accelerators, not assigned to any visible control. And it's only 3 lines of code.
Link to comment
Share on other sites

Here is link to my post with this functionality:

http://www.autoitscript.com/forum/index.php?showtopic=66650

Yeah, missed this thread. Anyway, I think this useful, and this already added.

Here is Czech language file for latest Koda 1.7.0.11:

Thanks, updated.
Link to comment
Share on other sites

Yeah, missed this thread. Anyway, I think this useful, and this already added.

Thanks, updated.

Hello lazycat, first of all, thanks for this amazing tool. It made everything so much simpler.

I was wondering, would it be possible to add some sort of SCITE integration, f.ex, you design a GUI in Koda, when you double click a button, it will open up Scite with GUI code and the CASE code so you can immediatly write code for the case of that button.

Like VS.

Would be awesome.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...