Page 1 of 1

[5.10] Form Designer : bugs and improvements

Posted: Tue Feb 19, 2013 6:16 am
by Maitre_Kanter
Hello Everybody,

first of all, thank you for Purebasic and Form Designer.

Is it possible :
- to improve the behavior of the mouse wheel in form view ? The scrolling is too slow
- to add the possibility to select a group of gadget with the Mouse
- to manage correctly in a multi-windows project, the font constant name (*)
- to improve the behavior of the color deletion (right clic and delete color doesn't work)

(*) : some Windows with the same font name constant (#Font_0)

Arnaud
a French User

Re: [5.10] Form Designer : bugs and improvements

Posted: Tue Feb 19, 2013 2:14 pm
by Joris
To set the columnwidth of a ListIconGadget only the api style works, the PB command doesn't.
(I tested with both at the same place in the code.)

Code: Select all

With *Fn
    If \Iml_hnd:ImageList_Destroy_(\Iml_hnd) : EndIf
    \Iml_hnd=Create_Img_List(\ic_w,\ic_h,Siz,Flags)
    SendMessage_(GadgetID(\Lvw_hnd), #LVM_SETIMAGELIST, #LVSIL_SMALL,\Iml_hnd)
    SendMessage_(GadgetID(\Lvw_hnd), #LVM_SETCOLUMNWIDTH, 0,\ic_w)  
    ;SetGadgetAttribute(GadgetID(\Lvw_hnd),#PB_ListIcon_ColumnWidth, \ic_w) 
  EndWith
See also here for the rest of the sample source :
http://www.purebasic.fr/english/viewtop ... 13&t=53535

[14:09:46] [ERROR] Test Listview setup 2.pb (Line: 67)
[14:09:46] [ERROR] The specified #Gadget is not initialised.
[14:09:51] The Program was killed.

Re: [5.10] Form Designer : bugs and improvements

Posted: Tue Feb 19, 2013 2:17 pm
by Fred
Well, your code looks wrong, you shouldn't use GadgetID() with SetGadgetAttribute(). And please open a new thread if it's a new bug.

Re: [5.10] Form Designer : bugs and improvements

Posted: Tue Feb 19, 2013 3:11 pm
by Joris
Wel I also tried this (see source sample for line position), but then it doesn't change anything :

Code: Select all

SetGadgetAttribute(\Lvw_hnd, #PB_ListIcon_DisplayMode, #PB_ListIcon_List)
SetGadgetAttribute(\Lvw_hnd,#PB_ListIcon_ColumnWidth,\ic_w) ;<<<
I thougt all gadget related things would come in this thread. (But next time a new topic for every thing. Now I know.)

Re: [5.10] Form Designer : bugs and improvements

Posted: Tue Feb 19, 2013 3:16 pm
by Fred
You need to use SetGadgetItemAttribute() to change the column width, as you need to specify the column to act on.

Re: [5.10] Form Designer : bugs and improvements

Posted: Fri Feb 22, 2013 6:23 am
by Maitre_Kanter
Nobody takes into account my post ?
The original one...

Re: [5.10] Form Designer : bugs and improvements

Posted: Fri Feb 22, 2013 9:58 am
by Fred
Your post is not about bugs but enhancement requests, so i move it to the correct forum section.