PureFORM 1.99 (yet another FORM designer)

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

Moderator: gnozal

michel
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

PureFORM ComboBox

Post by michel »

Hello Gnozal,

Why did you fix the height of the ComboBoxGadget to 100, it would be better if the user could decide by himself how heigh he wants his Com Box be?

Michel
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM ComboBox

Post by gnozal »

michel wrote:Why did you fix the height of the ComboBoxGadget to 100
To avoid problems like no list visible because of insufficient gadget height, and I always use 100 :wink:
michel wrote:it would be better if the user could decide by himself how heigh he wants his Com Box be?
The problem is that after you move / resize a gadget, PureFORM stores it's new dimensions, and the gadget height for a combobox is not really the gadget height, but the list height. Because of this PureFORM don't allow the user to resize a combobox vertically. But I guess I could allow the user to modify the height via the spingadgets in the gadget properties.
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 :
- you can now set the ComboBox/ExplorerCombo height via the spingadgets in the gadget properties window
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Feature request, auto-update ;) hehehe
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

GeoTrail wrote:Feature request, auto-update ;) hehehe
It's already (almost) there : http://www.purebasic.fr/english/viewtopic.php?t=26187
My library updater also checks for jaPBe V3 and PureFORM. The only thing it doesn't do (yet ?) for PureFORM is installing.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Yeah I've seen that. Just ment a small built-in function. but hey, I'm VERY impressed with PureForm ;)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
michel
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

PureFORM Code infusion

Post by michel »

Hello Gnozal,

Thank you for build 133. :D

Could you imagine to offer a sorted object list in the code infusion window. So all buttons, strings and so on could be better found?

Michel
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM Code infusion

Post by gnozal »

michel wrote:Could you imagine to offer a sorted object list in the code infusion window. So all buttons, strings and so on could be better found?
I have so much imagination and so little time ... :wink:
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
yrreti
Enthusiast
Enthusiast
Posts: 546
Joined: Tue Oct 31, 2006 4:34 am

Post by yrreti »

Hello Gnozal,

Would it be possible to add the following button in your Gadget Bar Menu
to add a ToolBar list if needed?

ToolBar

Code: Select all

      hWndPanel = PanelGadget(15,1,1,300,25);this way displays panel icons without box
      ;PanelGadget(15,1,1,300,25);this way displays panel icons in a panel box
      
      ;Result = CreateToolBar(#ToolBar, WindowID)
      hWndTB = CreateToolBar(1,WindowID(#Window_0));// win = Source of events
      ToolBarStandardButton(100,#PB_ToolBarIcon_New)
      ToolBarStandardButton(101,#PB_ToolBarIcon_Open)
      ToolBarStandardButton(102,#PB_ToolBarIcon_Save)
      ToolBarStandardButton(103,#PB_ToolBarIcon_Print)
      
      ToolBarStandardButton(104,#PB_ToolBarIcon_Find)   
      ToolBarStandardButton(105,#PB_ToolBarIcon_Replace)
        
      ToolBarStandardButton(106,#PB_ToolBarIcon_Cut)
      ToolBarStandardButton(107,#PB_ToolBarIcon_Copy)
      ToolBarStandardButton(108,#PB_ToolBarIcon_Paste)
      ToolBarStandardButton(109,#PB_ToolBarIcon_Delete)   
      ToolBarStandardButton(110,#PB_ToolBarIcon_Undo)
    
      ToolBarStandardButton(111,#PB_ToolBarIcon_Properties)
      ToolBarStandardButton(112,#PB_ToolBarIcon_Help) 
    
      ToolBarToolTip(1, 100, "New document")
      ToolBarToolTip(1, 101, "Open file")
      ToolBarToolTip(1, 102, "Save file")
      ToolBarToolTip(1, 103, "Print document")
      ToolBarToolTip(1, 104, "Find")
      ToolBarToolTip(1, 105, "Replace")
      ToolBarToolTip(1, 106, "Cut")
      ToolBarToolTip(1, 107, "Copy")
      ToolBarToolTip(1, 108, "Paste")
      ToolBarToolTip(1, 109, "Delete")
      ToolBarToolTip(1, 110, "Undo")
      ToolBarToolTip(1, 111, "Properties")
      ToolBarToolTip(1, 112, "Help")    
       
      SetParent_(hWndTB,hWndPanel);//move into panel.  This way displays panel icons without box
      ;SetParent_(1,15);this way displays panel icons in a panel box
Note: There are some others that could be added too, but this is just an example.

Thank you for your nice program.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

yrreti wrote:Hello Gnozal,
Would it be possible to add the following button in your Gadget Bar Menu
to add a ToolBar list if needed?
A toolbar list ?
You mean change the parent of the toolbar ? I guess you can do it already with the code infusion feature, adding this line

Code: Select all

SetParent_(PeekL(IsToolBar(#Toolbar)), GadgetID(#Panel))
in CodeInfusion::WindowEvent/#Window_0/Window creation.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
michel
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

PureForm ideas and proposals

Post by michel »

Hello Gnozal,

You decide whenever you want to invest time in your software; the ideas which I suggested to you are to improve this wonderful editor but I do not want to stress you :)

michel
yrreti
Enthusiast
Enthusiast
Posts: 546
Joined: Tue Oct 31, 2006 4:34 am

Post by yrreti »

Hello Gnozal,
A toolbar list ?
You mean change the parent of the toolbar ? I guess you can do it already with the code infusion feature, adding this line
What I meant regarding the tool bar was something like this:
[img][img]http://i2.turboimagehost.com/t/285610_toolbar_example.PNG[/img]<img
The toolbar images are just a faster way instead of using the menu's if a
person wants.

Also, I've heard this code infusion feature mentioned before.
What is this feature exactly, and how would I be able to use it?

Thank you for your help.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

@yrreti : there already is a toolbar builder in PureFORM (right-click on window, select 'Add Toolbar' menu item).
With the code infusion feature, you can add code to your form (F8 shortcut). Please have a look at PureFORM.chm.
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 :
- fix : 'Include file as hexadecimal data' was broken
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
yrreti
Enthusiast
Enthusiast
Posts: 546
Joined: Tue Oct 31, 2006 4:34 am

Post by yrreti »

Woops! :oops: :oops: Sorry Gnozal

I guess I was just used to using your Gadget bar menu for selecting.
And I never used the mouse right click over an unused area where
that feature does show. I always used it over a created gadget where
it doesn't show, and therefore never noticed it.
As for the code infusion, thanks for the explanation.
Thank you for both of these features. They both are some great
features, especially the code infusion part. :D :D

Sorry for the confusion. :oops: I guess I do need to look your help file
over a lot better first.
Post Reply