Jump to content

GUI Designer: Koda 1.7.3.0


Lazycat
 Share

Recommended Posts

Access violation at address 00403B66 in module 'FD.EXE'. Read of address FFFFFFFF

Exception Address: 00403B66

Information about Source of Exception

Unit: System

Method: TObject.InheritsFrom

Line: 0

How to invoke this error:

- place toolbar on the form

- place imagelist on the form

- set imagelist to toolbar

- delete toolbar (or imagelist)

Edited by Zedna
Link to comment
Share on other sites

1) When you add button to toolbar from popupmenu invoked in Object TreeView then new button doesn't appear inside Object TreeView (missing refresh of Object TreeView).

2) When you Copy ToolBarButton then you

- can't paste it on the toolbar (disabled command in popup menu)

- can paste it on the form --> but this leads to bad situation/generated code

3) you can place more than one toolbar on the form

but generated code (at runtime) shows only one

Edited by Zedna
Link to comment
Share on other sites

ToolBar:

- make toolbar with button

- from popupmenu on tollbar button invoke "Tab Order"

Invalid class typecast

Exception Address: 0056F222

Information about Source of Exception

Unit: DesignerMainUnit

Method: TDesignerMain.actTabOrderExecute

Line: 2389

EDIT:

The same error occurs when you invoke "Tab Order" command from popupmenu invoked on MainMenu or PopupMenu control

Edited by Zedna
Link to comment
Share on other sites

2) When you Copy ToolBarButton then you

- can't paste it on the toolbar (disabled command in popup menu)

- can paste it on the form --> but this leads to bad situation/generated code

3) you can place more than one toolbar on the form

but generated code (at runtime) shows only one

2. I added ability to paste to toolbar. The problem that Koda not check actual clipboard content (only it's type) and no way to know what will be pasted. So now toolbuttons can be pasted on form and any control can be pasted on toolbar. That why was decided not allow copy/paste menus substitutes. So far I have no solution without parsing clipboard content.

3. I see both toolbars generated. But they are visually overlap. It's in principle ok to have multiple toolbars on one form? I'm not found in UDF functions for positioning toolbars.

ImageList:

- when I set-up ImageHeight/ImageWidtg property to too big number then after I select some EXE in imafelist editor AV occurs:

Yes, it is. Looks like problem here, that now icons loading with ExtractIconEx function, which is rely on system metrics. From other side in ImageList possible to add only images exactly the same size as ImageList have. So, when SM_CXICON and SM_CYICON in system are 32, function can not extract 48x48 icons that required for ImageList. Looks like the whole method of getting images need to rewrite.

ToolBar:

- you have code to avoid resize of toolbar in design mode but it's not 100% bullet proof, try this:

No any special code here, this is the way Delphi handle it.

EDIT:

The same error occurs when you invoke "Tab Order" command from popupmenu invoked on MainMenu or PopupMenu control

I have not this error.

ToolbarButton:

- Hint property doesn't generate any AU3 code

All properties that have no effect in result code will be removed, this one too.

Idea for improving:

For ImageList control make the same doubleclick functionality as for menu control

Added in TODO.

All other not mentioned bugs are fixed.

Link to comment
Share on other sites

ToolBar:

- make toolbar with button

- from popupmenu on tollbar button invoke "Tab Order"

EDIT:

The same error occurs when you invoke "Tab Order" command from popupmenu invoked on MainMenu or PopupMenu control

Easiest way to invoke error:

- place main menu on the empty form

- invoke popup menu (for this mainmenu control)

- run "Tab Order" command (or press Ctrl+T when mainmenu control is selected)

The same apply also for popumenu,imagelist

Edited by Zedna
Link to comment
Share on other sites

Easiest way to invoke error:

- place main menu on the empty form

- invoke popup menu (for this mainmenu control)

- run "Tab Order" command or press Ctrl+T

The same apply also for popumenu,imagelist

Still no error. I got just empty dialog, as expected.

Edit: I added condition that in theory can affect this problem, but this is blind change, not sure it will have effect.

Edited by Lazycat
Link to comment
Share on other sites

3. I see both toolbars generated. But they are visually overlap. It's in principle ok to have multiple toolbars on one form? I'm not found in UDF functions for positioning toolbars.

I think two toolbars at the same time are not supported by AutoIt/UDF for now - but I'm not sure.

Maybe you are right they are both just overlapped.

Link to comment
Share on other sites

  • 3 weeks later...

New beta is out. Here is fully rewritten method of retreiving icons (hi-color is supported), ImageList dialog rewritten as well. Format of ImageList saving changed too.

http://www.autoitscript.com/fileman/users/lookfar/koda_2008-09-24.zip

The some problem here. _GUIImageList_AddIcon UDF function still retreive icons with ExtractIconEx function, while Koda now is allow using icons of any size and for imagelists and not operate with "small" and "large" icons, but their actual size, and try to use icon with size most suitable for given imagelist. _GUIImageList_AddIcon limited to adding only "small" and "large" icons, that rely on system metrics. So, for example, under XP for you can't to add actual 48x48 icons in the 48x48 imagelist with this function.

Link to comment
Share on other sites

New beta is out. Here is fully rewritten method of retreiving icons (hi-color is supported), ImageList dialog rewritten as well. Format of ImageList saving changed too.

http://www.autoitscript.com/fileman/users/lookfar/koda_2008-09-24.zip

The some problem here. _GUIImageList_AddIcon UDF function still retreive icons with ExtractIconEx function, while Koda now is allow using icons of any size and for imagelists and not operate with "small" and "large" icons, but their actual size, and try to use icon with size most suitable for given imagelist. _GUIImageList_AddIcon limited to adding only "small" and "large" icons, that rely on system metrics. So, for example, under XP for you can't to add actual 48x48 icons in the 48x48 imagelist with this function.

Thank you Lazycat. I can now set the size of icons correctlly >_<

I loaded a design and the form name was changed from Form1 to Form1_1 and I couldn't changed the name back. Then I realised that there was another form alreday called Form1 underneath. Maybe you should give an option to not load another form with a duplicate name? But it's a small point.

I'm very happy with Koda, thanks again.

EDIT: Oh, and F10 now brings up explorer opened at the folder containg Koda. :)

Edited by martin
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
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...