[Gambas-user] Help creating user control

kobolds kobolds at ...2041...
Sat Jun 20 20:21:30 CEST 2009


I read how to create user control from this link
http://www.gambasdoc.org/help/dev/gambas 

but I still having some problem to get it work . 
I want to create a custom control button . 
- FButtonEX (form)
- ButtonEX (class)

on the form (FButtonEX) , I drag and drop a button . 

-----------------------------------------------
on source FButtonEx.class

public sub _new(optional bFile as boolean)
end sub


----------------------------------------------
on source ButtonEx.class

INHERITS userControl
export

private frmButton as FButtonEx

public sub _new()
  frmButton = new FButtonEx(false, me) as "frmButton"
  object.attach(frmButton, me, "frmButton")
end sub

------------------------------------------------------
I also put buttonex.png in the control folder

in project property I make sure on option tabs  "this project is component
is YES and on provide tabs ButtonEX type=control group=dialog 


compile and make . 


I create another project and on toolkits dialog tabs, anew icon show up call
buttonex . I click and drag it into the form . what it show only a rectangle
with nothing in it . a button that suppose to be there not show up . but
when I run this project the button show up .


so how do i make the button show up on the ide ? 

if I missing anything please let me know . the wiki how-to help not very
helpful . this is my first time try to create custom user control .







-- 
View this message in context: http://www.nabble.com/Help-creating-user-control-tp24127891p24127891.html
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list