Page 32 of 45
Re: Form Designer 5.00 beta 3
Posted: Sat Sep 22, 2012 4:04 pm
by luciano
I have found a strange bug with the Designer 5.00 beta3 (as supplied with PB beta3 download):
If I open this pbf file with the option "generate event loop" in preferences, the last part of
Code: Select all
; Form Designer for Purebasic - 5.0
; Warning: this file uses a strict syntax, if you edit it, make sure to respect the Form Designer limitation or it won't be opened again.
Global ButtonImage_0
Global Img_0
Enumeration #PB_Compiler_EnumerationValue
#Window_secret
EndEnumeration
Enumeration #PB_Compiler_EnumerationValue
#String_primo
#String_secondo
#Editor_Messaggio
EndEnumeration
UsePNGImageDecoder()
Img_0 = CatchImage(#PB_Any,?img_0)
Enumeration #PB_Compiler_EnumerationValue
#Font_0
EndEnumeration
LoadFont(#Font_0,"Arial", 8)
Procedure InitWindow_secret()
OpenWindow(#Window_secret, 0, 0, 350, 270, "", #PB_Window_SystemMenu | #PB_Window_Tool)
StringGadget(#String_primo, 10, 230, 60, 30, "", #PB_String_Numeric)
SetGadgetColor(#String_primo, #PB_Gadget_BackColor,RGB(255,255,128))
SetGadgetFont(#String_primo, FontID(#Font_0))
StringGadget(#String_secondo, 90, 230, 60, 30, "", #PB_String_Numeric)
SetGadgetColor(#String_secondo, #PB_Gadget_BackColor,RGB(255,255,128))
SetGadgetFont(#String_secondo, FontID(#Font_0))
ButtonImage_0 = ButtonImageGadget(#PB_Any, 170, 210, 48, 48, ImageID(Img_0))
EditorGadget(#Editor_Messaggio, 10, 10, 330, 190, #PB_Editor_ReadOnly)
EndProcedure
Procedure Window_secret_Events(event)
Select event
Case #PB_Event_Gadget
Select EventGadget()
EndSelect
EndSelect
EndProcedure
DataSection
img_0: IncludeBinary "C:\ZZZZ_Ardi_Go\Explorer\check48.png"
EndDataSection
becomes:
Code: Select all
EndDataSection
img_0: IncludeBinary "C:\ZZZZ_Ardi_Go\Explorer\check48.png"
EndDataSection
i.e. two "enddatasection" statements.
Re: Form Designer 5.00 beta 3
Posted: Sat Sep 22, 2012 4:09 pm
by Polo
Fixed, thanks

Re: Form Designer 5.00 beta 3
Posted: Sun Sep 23, 2012 12:39 am
by Kwai chang caine
Excuse me but i have not the courage to read the 32 pages.
I have try your splendid works.
Have have two questions perhaps already answered
1/ Have you thinking to purpose the choice of the number of tabulation ?
Personaly i use only one tabulation
Code: Select all
Enumeration #PB_Compiler_EnumerationValue
#Container_0
#Button_0
#Text_0
#Panel_0
#Button_1
EndEnumeration
not two
Code: Select all
Enumeration #PB_Compiler_EnumerationValue
#Container_0
#Button_0
#Text_0
#Panel_0
#Button_1
EndEnumeration
2/ I have not find how adding a panel in panelgadget, is it possible ?
And if it's not possible, have you thinking to create it, and is it possible to see each panel by clic on it ?? (Difficult to explain

)
Re: Form Designer 5.00 beta 3
Posted: Sun Sep 23, 2012 10:42 am
by Polo
To add a panel item, just do a right click on the panel.
About the tabulation, I will use the preference value in the IDE when the designer will be included in it, meanwhile it will stay to 2 spaces

Re: Form Designer 5.00 beta 3
Posted: Sun Sep 23, 2012 4:01 pm
by Kwai chang caine
To add a panel item, just do a right click on the panel.
Strange i have try that also

Perhaps i have not enough see
Code: Select all
About the tabulation, I will use the preference value in the IDE web the designer will be included in it, meanwhile it will stay to 2 spaces
It's the reason why, i have tested your program directly without installing the V5
Thanks POLO, and again congratulation for your great works.

Re: Form Designer 5.00 beta 3
Posted: Sun Sep 23, 2012 4:05 pm
by Polo
Once it is integrated in the IDE I'll probably write a bunch of help files so that those kind of options are easier to find

Re: Form Designer 5.00 beta 3
Posted: Sun Sep 23, 2012 4:15 pm
by Kwai chang caine
I have found for the TAB..
Really a great job you have do.
In the old IDE this option lacked
Thanks to you it's easy to create a TabGadget
Once it is integrated in the IDE I'll probably write a bunch of help files so that those kind of options are easier to find
Yes, but perhaps you can also give the choice to the user to modify it ?
Take by default the IDE value, if there is an IDE (like in my case no IDE detected else choose 2 like value), and if the user modify the field, take the choice of the Designer.
Like this your application can to be independant
It's just my advice

Re: Form Designer 5.00 beta 3
Posted: Sun Sep 23, 2012 7:43 pm
by VB6_to_PBx
Beta 5.00 2.3
TabGadget
after adding a Command Button to TabGadget
the "Edit Items" choice disappears on the TabGadget ,
to add another Tab on the TabGadget ,
you then need to use mouse to right-click on
one of the resizing squares on the TabGadget , and the "Edit Items" choice re-appears in the popup Menu
if you right-click on the main body of the TabGadget , the "Edit Items" choice is not there.
Re: Form Designer 5.00 beta 3
Posted: Sun Sep 23, 2012 7:51 pm
by Polo
VB6_to_PBx wrote:Beta 5.00 2.3
TabGadget
after adding a Command Button to TabGadget
the "Edit Items" choice disappears on the TabGadget ,
to add another Tab on the TabGadget ,
you then need to use mouse to right-click on
one of the resizing squares on the TabGadget , and the "Edit Items" choice re-appears in the popup Menu
if you right-click on the main body of the TabGadget , the "Edit Items" choice is not there.
Well spotted! Thanks, fixed for next version

Re: Form Designer 5.00 beta 3
Posted: Sun Sep 23, 2012 8:09 pm
by Kwai chang caine
if you right-click on the main body of the TabGadget , the "Edit Items" choice is not there.
Aaaaahh i know i'm not crazy

I don't remember how i do that, but i'm sure a moment the edit menu not here
Thanks VB6_to_PBx

Re: Form Designer 5.00 beta 3
Posted: Mon Sep 24, 2012 3:58 pm
by RomanR
Hi Polo,
great work so far

!!!
But I've found some Bugs (Version 5.00 beta 3 - Windows):
1. It is not possible to place a Checkbox-Gadget on a Panel-Gadget when there is a Frame3D Container there! I usually group multiple Checkbox-Gadgets with a Frame/Container ...
2. The Caption of a Frame3D is not readable - black background blue distorted text ... (Windows Version - didn't test any other ...).
3. Text in String-Gadget very low - with Gadget-Height 20 (normal height for Windows) only the upper half of the text is visible ...
4. Under WindowsXP there is no Ribbon-Gadget - therefore I can't reach some Functions (Z-Order ...)
Best whishes from Austria

Re: Form Designer 5.00 beta 3
Posted: Mon Sep 24, 2012 4:08 pm
by Polo
Thanks ill have a look - are you using the my version or the one from the PB package? I understand it's not the last one there!
Re: Form Designer 5.00 beta 3
Posted: Mon Sep 24, 2012 5:24 pm
by luciano
Hi Gaetan,
I think I don't know then which one is the latest
beta 3.00 or beta 2.3 from your site?
Beta 3.00 has more options in preferences (event loop, etc?); I thought it was the latest one.
Re: Form Designer 5.00 beta 3
Posted: Mon Sep 24, 2012 5:27 pm
by Polo
I though the one from my website was the latest as I've heard on at least one OS the PB Package has an old version. Sorry it's a bit confusing

Re: Form Designer 5.00 beta 3
Posted: Mon Sep 24, 2012 5:33 pm
by Golfy
Hi Polo,
By the way, why don't still use enum for object creation ? I'm thinking about localization