[5.10] Form Designer : bugs and improvements

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Maitre_Kanter
User
User
Posts: 84
Joined: Mon Sep 06, 2010 3:05 pm

[5.10] Form Designer : bugs and improvements

Post 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
Joris
Addict
Addict
Posts: 890
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: [5.10] Form Designer : bugs and improvements

Post 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.
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [5.10] Form Designer : bugs and improvements

Post 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.
Joris
Addict
Addict
Posts: 890
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: [5.10] Form Designer : bugs and improvements

Post 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.)
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [5.10] Form Designer : bugs and improvements

Post by Fred »

You need to use SetGadgetItemAttribute() to change the column width, as you need to specify the column to act on.
Maitre_Kanter
User
User
Posts: 84
Joined: Mon Sep 06, 2010 3:05 pm

Re: [5.10] Form Designer : bugs and improvements

Post by Maitre_Kanter »

Nobody takes into account my post ?
The original one...
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [5.10] Form Designer : bugs and improvements

Post by Fred »

Your post is not about bugs but enhancement requests, so i move it to the correct forum section.
Post Reply