Skip to content

Commit

Permalink
fix #37
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Wald committed Apr 30, 2018
1 parent 846c574 commit 2a4aa8e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BBjGridExWidget.bbj
Expand Up @@ -360,7 +360,7 @@ class public BBjGridExWidget extends BBjWidget
rem * @param BBjInt w: width
rem * @param BBjInt h: height
rem */
method public BBjGridExWidget(BBjWindow wnd!, BBjInt id!, BBjInt x!, BBjInt y!, BBjInt w!, BBjInt h!)
method public BBjGridExWidget(BBjWindow wnd!, BBjNumber id!, BBjNumber x!, BBjNumber y!, BBjNumber w!, BBjNumber h!)
#super!.create(wnd!,id!,x!,y!,w!,h!)
methodend
rem /**
Expand Down
11 changes: 9 additions & 2 deletions Demo/CD-Store.bbj
Expand Up @@ -10,8 +10,13 @@ declare auto BBjListButton lb_tbl!
declare auto BBjToolButton btn_fit!
declare BBjGridExWidget grid!

x=0
y=0
w=800
h=600

wnd! = BBjAPI().openSysGui("X0").addWindow(10,10,800,600,"BBj Grid Ex Demo")
grid! = new BBjGridExWidget(wnd!,100,0,0,800,600)
grid! = new BBjGridExWidget(wnd!,100,x,y,w,h)
wnd! .setCallback(BBjAPI.ON_CLOSE,"byebye")
wnd! .setCallback(BBjAPI.ON_RESIZE,"resize")

Expand All @@ -33,5 +38,7 @@ bye

resize:
ev! = BBjAPI().getLastEvent()
grid!.setSize(ev!.getWidth(),ev!.getHeight())
w=ev!.getWidth()
h=ev!.getHeight()
grid!.setSize(w,h)
return

0 comments on commit 2a4aa8e

Please sign in to comment.