PureFORM 1.99 (yet another FORM designer)

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

Micko
Enthusiast
Enthusiast
Posts: 244
Joined: Thu May 24, 2007 7:36 pm
Location: Senegal
Contact:

Post by Micko »

Work fine i'm too stupid. I know the help file is my friend.
Sorry for took your time
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- some changes for PB4.30beta 1 compatibility
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Bisonte
Addict
Addict
Posts: 1305
Joined: Tue Oct 09, 2007 2:15 am

Post by Bisonte »

I think i found an error...

I can't add a coloumn to a ListIcon Gadget...

I click on "Update" at the Gadget propertie Window... but nothing happens...
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Bisonte wrote:I can't add a coloumn to a ListIcon Gadget...
I click on "Update" at the Gadget propertie Window... but nothing happens...
To add a column to a listicon gadget, use the (right-click on listicon) context menu item "Add column".
The "Items" tab with the "Update" button is meant to rename existing columns, not to create them.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Bisonte
Addict
Addict
Posts: 1305
Joined: Tue Oct 09, 2007 2:15 am

Post by Bisonte »

Ah... ok ... My brain sometimes very ... uh ... what i want to say ? :D
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

as I use PureFORM since now exactly 2 days I have some whishes: :-)


1.) For Vista it would be nice to have a field for SETCUEBANNER like in this thread: http://www.purebasic.fr/english/viewtopic.php?t=33970

2.) It would be also nice to have some flags for the EditorGadget. (WordWrap and so on)

And one small bug I found:

I have a Project containing two windows. The first one can be resized, the second one not. If I now open the project and click on Windows-List second Window (which can not be resized) it appears with wrong dimensions. Also I can not resize it to its right dimensions as long as the ResizeFlag on this window isn't set. In "Build mode" this flag should be ignored.

Another small issue: Sometimes the new gadget identifier constant-name in enum field is not saved. This is only saved by a lost focus evend inside the gadget properties window. If the Enum field has focus and I click inside the project window, the new constant/variable name is not saved. Maybe its better so save it on Change-Event?
Tranquil
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Tranquil wrote:For Vista it would be nice to have a field for #SETCUEBANNER
It would be also nice to have some flags for the EditorGadget. (WordWrap and so on)
These are messages, not flags, so they cannot be added easily like #ES_CENTER for example wich is a 'real' flag / style.

For these two wishes, you could already use :
1. Code Infusion (Location = Window event ; Object = gadget parent window ; Event = Window creation) to add some extra gadget messages.
or
2. Create a custom gadget, with 'Create code' field = "EditorGadget(%id%, %x%, %y%, %w%, %h%, %[flags]%) : SendMessage_(GadgetID(%id%), #MSG, wParam, lParam) : etc ..."

I will see if I can add some feature ...
Tranquil wrote:I have a Project containing two windows. The first one can be resized, the second one not. If I now open the project and click on Windows-List second Window (which can not be resized) it appears with wrong dimensions.
I am not sure what you mean.
I build this project :

Code: Select all

;{[PureFORM Project]
;PureFORM_Project_Begin
;Project¶PureFORM_Clipboard2
;Window¶1¶#Window_0¶349044736¶#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_TitleBar|#PB_Window_SizeGadget¶Window_0¶452¶67¶400¶400¶0¶10¶10¶0¶5000¶5000¶0¶-1¶0¶¶¶
;Window¶2¶#Window_1¶348782592¶#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_TitleBar¶Window_1¶424¶55¶745¶637¶0¶10¶10¶0¶5000¶5000¶0¶-1¶0¶¶¶
;PureFORM_Project_End
;}
I don't get the issue you describe : wrong dimensions ?
Tranquil wrote:Also I can not resize it to its right dimensions as long as the ResizeFlag on this window isn't set.
It's by design.
Tranquil wrote:In "Build mode" this flag should be ignored.
The problem is, if you add/remove the #WS_SIZEBOX flag with SetWindowLong_() the window size changes.
Tranquil wrote:Sometimes the new gadget identifier constant-name in enum field is not saved. This is only saved by a lost focus evend inside the gadget properties window. If the Enum field has focus and I click inside the project window, the new constant/variable name is not saved. Maybe its better so save it on Change-Event?
Like it is said in the manual, you have to validate the enum with [Enter] or the [v] button, because in some situations PureFORM doesn't catch the lost focus event (and there is so much event stuff in PureFORM...). I can't use the change event (I did, and removed it after users requests), because some tests (validation) are made before saving the enum (like ensure it is unique for example).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

okay, I see I have to read the documentation. :shock:

Thanks for you explenations!

If I can rebuild my window-size problem, I will report it here again.

Anyway, best VD Designer for VB!! Congratulations and many thanks!
Tranquil
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

@Gnozal: Using "Tab order" to sort the gadget order is a little bit slow on bigger projects. It looks like that PureFORM updates a lot in the background after every click on 'Up' or 'Down'...

Would it be possible to update the tab order listview only? And all the other updates after the 'close' click?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

dige wrote:@Gnozal: Using "Tab order" to sort the gadget order is a little bit slow on bigger projects. It looks like that PureFORM updates a lot in the background after every click on 'Up' or 'Down'...
Hi dige,
I have uploaded a new build. PureFORM should update less things in the background while using the tab-order dialog.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

It's much faster now! Thank you gnozal! :D
hjf
User
User
Posts: 21
Joined: Sun Nov 23, 2008 3:30 pm
Location: Germany

Post by hjf »

Hello Gnozal,

with the new build 354 it gives a new problem. If the Taborder-Dialog is activ and the cursor is on the dialog, the CPU-Load ist permanent 100% (or 50% on dual cores). In addition the clicked items does not correct highlight in the dialog.

Cia hjf

PB4.20, XP Sp3
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

hjf wrote:with the new build 354 it gives a new problem. If the Taborder-Dialog is activ and the cursor is on the dialog, the CPU-Load ist permanent 100% (or 50% on dual cores).
That's strange, can't reproduce this (tested on NT4sp6 and XPsp2).
Image
(Screenshot while mouse cursor is on the dialog.)
Maybe I can reproduce the issue with your form ?
hjf wrote:In addition the clicked items does not correct highlight in the dialog.
Confirmed : the selected item in the dialog is not highlighted in the form anymore. Will be fixed in the next build.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- fixed : the selected item in the tab order dialog wasn't highlighted in the form anymore
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
hjf
User
User
Posts: 21
Joined: Sun Nov 23, 2008 3:30 pm
Location: Germany

Post by hjf »

Thanks Gnozal, now its ok!

Cia hjf
Post Reply