Image Slideshow In PowerBuilder
Source Code
uo_photoslideshow from userobject
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 |
forward global type uo_photoslideshow from userobject end type type p_2 from picture within uo_photoslideshow end type type p_1 from picture within uo_photoslideshow end type end forward global type uo_photoslideshow from userobject integer width = 1906 integer height = 1004 long backcolor = 67108864 string text = "none" long tabtextcolor = 33554432 long picturemaskcolor = 536870912 event resize pbm_size event timer pbm_timer p_2 p_2 p_1 p_1 end type global uo_photoslideshow uo_photoslideshow type prototypes Subroutine Sleep(Long lMilliSec) Library "Kernel32.dll" end prototypes type variables String is_pic[] Boolean ib_flagtop Int ii_pic Long il_speed end variables forward prototypes public subroutine of_addphoto (string as_photo) public subroutine of_clearphoto () public subroutine of_setspeed (long al_speed) public subroutine of_slideshowtop () public subroutine of_slideshowright () public subroutine of_slideshowleft () public subroutine of_slideshowbottom () end prototypes public subroutine of_addphoto (string as_photo);//==================================================================== // Function: uo_photoslideshow.of_addphoto() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: // string as_photo //-------------------------------------------------------------------- // Returns: (none) //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2021/06/15 //-------------------------------------------------------------------- // Usage: uo_photoslideshow.of_addphoto ( string as_photo ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== If Not IsNull(as_photo) And Len(Trim(as_photo)) > 0 Then is_pic[UpperBound(is_pic) + 1] = as_photo End If end subroutine public subroutine of_clearphoto ();//==================================================================== // Function: uo_photoslideshow.of_clearphoto() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: //-------------------------------------------------------------------- // Returns: (none) //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2021/06/15 //-------------------------------------------------------------------- // Usage: uo_photoslideshow.of_clearphoto ( ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== String ls_temp[] is_pic = ls_temp end subroutine public subroutine of_setspeed (long al_speed);//==================================================================== // Function: uo_photoslideshow.of_setspeed() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: // long al_speed //-------------------------------------------------------------------- // Returns: (none) //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2021/06/15 //-------------------------------------------------------------------- // Usage: uo_photoslideshow.of_setspeed ( long al_speed ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== If al_speed > width then il_speed = width If al_speed < 1 Then il_speed = 1 il_speed = al_speed end subroutine public subroutine of_slideshowtop ();//==================================================================== // Function: uo_photoslideshow.of_slideshowtop() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: //-------------------------------------------------------------------- // Returns: (none) //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2021/06/15 //-------------------------------------------------------------------- // Usage: uo_photoslideshow.of_slideshowtop ( ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== Long ll_y, ll_ypic Boolean lb_flag If UpperBound(is_pic) <= 0 Then Return ii_pic += 1 If ii_pic > UpperBound(is_pic) Then ii_pic = 1 ll_ypic = 0 - height - 5 If ib_flagtop Then p_1.Move(1 , ll_ypic) p_1.PictureName = is_pic[ii_pic] p_1.BringToTop = True p_2.BringToTop = False //Yield() For ll_y = ll_ypic To 1 //Yield() p_1.Draw( 1 , ll_y) //Yield() If lb_flag Then Exit sleep(1) ll_y = ll_y + il_speed If ll_y > 1 Then lb_flag = True ll_y = 1 End If Next //Yield() ib_flagtop = False Else p_2.Move( 1 ,ll_ypic) p_2.PictureName = is_pic[ii_pic] p_1.BringToTop = False p_2.BringToTop = True //Yield() For ll_y = ll_ypic To 0 //Yield() p_2.Draw( 1 , ll_y) //Yield() If lb_flag Then Exit sleep(1) ll_y = ll_y + il_speed If ll_y > 1 Then lb_flag = True ll_y = 1 End If Next //Yield() ib_flagtop = True End If end subroutine public subroutine of_slideshowright ();//==================================================================== // Function: uo_photoslideshow.of_slideshowright() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: //-------------------------------------------------------------------- // Returns: (none) //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2021/06/15 //-------------------------------------------------------------------- // Usage: uo_photoslideshow.of_slideshowright ( ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== Long ll_x Boolean lb_flag If UpperBound(is_pic) <= 0 Then Return ii_pic += 1 If ii_pic > UpperBound(is_pic) Then ii_pic = 1 If ib_flagtop Then p_1.Move( Width + 10 , 1) p_1.PictureName = is_pic[ii_pic] p_1.BringToTop = True p_2.BringToTop = False //Yield() For ll_x = Width + 20 To 0 Step -1 Yield() p_1.Draw( ll_x , 1) //Yield() If lb_flag Then Exit sleep(1) ll_x = ll_x - il_speed If ll_x < 1 Then lb_flag = True ll_x = 1 End If Next //Yield() ib_flagtop = False Else p_2.Move( Width + 10 , 1) p_2.PictureName = is_pic[ii_pic] p_1.BringToTop = False p_2.BringToTop = True //Yield() For ll_x = Width + 10 To 0 Step -1 //Yield() p_2.Draw( ll_x , 1) //Yield() If lb_flag Then Exit sleep(1) ll_x = ll_x - il_speed If ll_x < 1 Then lb_flag = True ll_x = 1 End If Next //Yield() ib_flagtop = True End If end subroutine public subroutine of_slideshowleft (); //==================================================================== // Function: uo_photoslideshow.of_slideshowleft() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: //-------------------------------------------------------------------- // Returns: (none) //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2021/06/15 //-------------------------------------------------------------------- // Usage: uo_photoslideshow.of_slideshowleft ( ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== Long ll_x, ll_xpic Boolean lb_flag If UpperBound(is_pic) <= 0 Then Return ii_pic += 1 If ii_pic > UpperBound(is_pic) Then ii_pic = 1 ll_xpic = 0 - Width - 5 If ib_flagtop Then p_1.Move( ll_xpic , 1) p_1.PictureName = is_pic[ii_pic] p_1.BringToTop = True p_2.BringToTop = False //Yield() For ll_x = ll_xpic To 1 //Yield() p_1.Draw( ll_x , 1) //Yield() If lb_flag Then Exit sleep(1) ll_x = ll_x + il_speed If ll_x > 1 Then lb_flag = True ll_x = 1 End If Next //Yield() ib_flagtop = False Else p_2.Move( ll_xpic , 1) p_2.PictureName = is_pic[ii_pic] p_1.BringToTop = False p_2.BringToTop = True //Yield() For ll_x = ll_xpic To 1 //Yield() p_2.Draw( ll_x , 1) //Yield() If lb_flag Then Exit sleep(1) ll_x = ll_x + il_speed If ll_x > 1 Then lb_flag = True ll_x = 1 End If Next //Yield() ib_flagtop = True End If end subroutine public subroutine of_slideshowbottom ();//==================================================================== // Function: uo_photoslideshow.of_slideshowbottom() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: //-------------------------------------------------------------------- // Returns: (none) //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2021/06/15 //-------------------------------------------------------------------- // Usage: uo_photoslideshow.of_slideshowbottom ( ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== Long ll_y, ll_ypic Boolean lb_flag If UpperBound(is_pic) <= 0 Then Return ii_pic += 1 If ii_pic > UpperBound(is_pic) Then ii_pic = 1 ll_ypic = height + 5 If ib_flagtop Then p_1.Move(1 , ll_ypic) p_1.PictureName = is_pic[ii_pic] p_1.BringToTop = True p_2.BringToTop = False //Yield() For ll_y = ll_ypic To 0 step -1 //Yield() p_1.Draw( 1 , ll_y) //Yield() If lb_flag Then Exit sleep(1) ll_y = ll_y - il_speed If ll_y < 1 Then lb_flag = True ll_y = 1 End If Next //Yield() ib_flagtop = False Else p_2.Move( 1 ,ll_ypic) p_2.PictureName = is_pic[ii_pic] p_1.BringToTop = False p_2.BringToTop = True //Yield() For ll_y = ll_ypic To 0 step -1 //Yield() p_2.Draw( 1 , ll_y) //Yield() If lb_flag Then Exit sleep(1) ll_y = ll_y - il_speed If ll_y < 1 Then lb_flag = True ll_y = 1 End If Next //Yield() ib_flagtop = True End If end subroutine on uo_photoslideshow.create this.p_2=create p_2 this.p_1=create p_1 this.Control[]={this.p_2,& this.p_1} end on on uo_photoslideshow.destroy destroy(this.p_2) destroy(this.p_1) end on event constructor;p_1.move(1,1) p_2.move(1,1) p_1.resize( width,height) p_2.resize( width,height) p_1.bringtotop = True p_2.bringtotop = False il_speed = 10 end event type p_2 from picture within uo_photoslideshow integer x = 110 integer y = 64 integer width = 1829 integer height = 1044 string picturename = "background.bmp" boolean focusrectangle = false end type type p_1 from picture within uo_photoslideshow integer width = 1920 integer height = 1012 string picturename = "background.bmp" boolean focusrectangle = false end type |
Window Example w_main from window
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 |
forward global type w_main from window end type type rb_random from radiobutton within w_main end type type rb_right from radiobutton within w_main end type type rb_left from radiobutton within w_main end type type rb_bottom from radiobutton within w_main end type type st_4 from statictext within w_main end type type rb_top from radiobutton within w_main end type type cb_6 from commandbutton within w_main end type type cb_5 from commandbutton within w_main end type type cb_4 from commandbutton within w_main end type type cb_3 from commandbutton within w_main end type type st_3 from statictext within w_main end type type st_2 from statictext within w_main end type type cb_browser from commandbutton within w_main end type type st_1 from statictext within w_main end type type cb_1 from commandbutton within w_main end type type sle_time from singlelineedit within w_main end type type sle_speed from singlelineedit within w_main end type type sle_pic from singlelineedit within w_main end type type uo_slideshow from uo_photoslideshow within w_main end type end forward global type w_main from window integer width = 2313 integer height = 1712 boolean titlebar = true string title = "Photo Slideshow" boolean controlmenu = true boolean minbox = true boolean maxbox = true boolean resizable = true long backcolor = 67108864 string icon = "AppIcon!" boolean center = true rb_random rb_random rb_right rb_right rb_left rb_left rb_bottom rb_bottom st_4 st_4 rb_top rb_top cb_6 cb_6 cb_5 cb_5 cb_4 cb_4 cb_3 cb_3 st_3 st_3 st_2 st_2 cb_browser cb_browser st_1 st_1 cb_1 cb_1 sle_time sle_time sle_speed sle_speed sle_pic sle_pic uo_slideshow uo_slideshow end type global w_main w_main type prototypes Subroutine Sleep(Long lMilliSec) Library "Kernel32.dll" end prototypes type variables boolean ib_exit, ib_waitexit, ib_stop end variables on w_main.create this.rb_random=create rb_random this.rb_right=create rb_right this.rb_left=create rb_left this.rb_bottom=create rb_bottom this.st_4=create st_4 this.rb_top=create rb_top this.cb_6=create cb_6 this.cb_5=create cb_5 this.cb_4=create cb_4 this.cb_3=create cb_3 this.st_3=create st_3 this.st_2=create st_2 this.cb_browser=create cb_browser this.st_1=create st_1 this.cb_1=create cb_1 this.sle_time=create sle_time this.sle_speed=create sle_speed this.sle_pic=create sle_pic this.uo_slideshow=create uo_slideshow this.Control[]={this.rb_random,& this.rb_right,& this.rb_left,& this.rb_bottom,& this.st_4,& this.rb_top,& this.cb_6,& this.cb_5,& this.cb_4,& this.cb_3,& this.st_3,& this.st_2,& this.cb_browser,& this.st_1,& this.cb_1,& this.sle_time,& this.sle_speed,& this.sle_pic,& this.uo_slideshow} end on on w_main.destroy destroy(this.rb_random) destroy(this.rb_right) destroy(this.rb_left) destroy(this.rb_bottom) destroy(this.st_4) destroy(this.rb_top) destroy(this.cb_6) destroy(this.cb_5) destroy(this.cb_4) destroy(this.cb_3) destroy(this.st_3) destroy(this.st_2) destroy(this.cb_browser) destroy(this.st_1) destroy(this.cb_1) destroy(this.sle_time) destroy(this.sle_speed) destroy(this.sle_pic) destroy(this.uo_slideshow) end on event timer;Timer(0) ib_exit = True If rb_top.Checked Then uo_slideshow.of_slideshowtop( ) ElseIf rb_bottom.Checked Then uo_slideshow.of_slideshowbottom() ElseIf rb_left.Checked Then uo_slideshow.of_slideshowleft() ElseIf rb_right.Checked Then uo_slideshow.of_slideshowright( ) ElseIf rb_random.Checked Then Randomize ( 0 ) Choose Case Rand ( 4 ) Case 1 uo_slideshow.of_slideshowtop( ) Case 2 uo_slideshow.of_slideshowbottom() Case 3 uo_slideshow.of_slideshowleft() Case 4 uo_slideshow.of_slideshowright( ) End Choose End If ib_exit = False If ib_waitexit Then Close(This) Else If Not ib_stop Then Timer(Integer(sle_time.Text)) End If End If end event event closequery; If ib_exit Then ib_waitexit = True Return 1 End If end event event open;uo_slideshow.of_addphoto( "car.bmp") uo_slideshow.of_addphoto( "car2.bmp") uo_slideshow.of_addphoto( "pmit.bmp") end event type rb_random from radiobutton within w_main integer x = 1317 integer y = 1472 integer width = 334 integer height = 80 integer textsize = -10 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 long backcolor = 67108864 string text = "Random" end type type rb_right from radiobutton within w_main integer x = 1061 integer y = 1472 integer width = 229 integer height = 80 integer textsize = -10 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 long backcolor = 67108864 string text = "Right" end type type rb_left from radiobutton within w_main integer x = 841 integer y = 1472 integer width = 229 integer height = 80 integer textsize = -10 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 long backcolor = 67108864 string text = "Left" end type type rb_bottom from radiobutton within w_main integer x = 512 integer y = 1472 integer width = 302 integer height = 80 integer textsize = -10 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 long backcolor = 67108864 string text = "Bottom" end type type st_4 from statictext within w_main integer x = 37 integer y = 1472 integer width = 197 integer height = 88 integer textsize = -9 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 long backcolor = 67108864 string text = "Type:" alignment alignment = right! boolean focusrectangle = false end type type rb_top from radiobutton within w_main integer x = 256 integer y = 1472 integer width = 256 integer height = 80 integer textsize = -10 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 long backcolor = 67108864 string text = "Top" boolean checked = true end type type cb_6 from commandbutton within w_main integer x = 1975 integer y = 1212 integer width = 197 integer height = 96 integer taborder = 30 integer textsize = -10 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" string text = "clear" end type event clicked;uo_slideshow.of_clearphoto( ) end event type cb_5 from commandbutton within w_main integer x = 1975 integer y = 1340 integer width = 197 integer height = 96 integer taborder = 40 integer textsize = -9 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" string text = "Stop" end type event clicked;ib_stop = True Timer(0) end event type cb_4 from commandbutton within w_main integer x = 1755 integer y = 1340 integer width = 197 integer height = 96 integer taborder = 40 integer textsize = -9 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" string text = "Start" end type event clicked;ib_stop = False Timer(Integer(sle_time.Text)) end event type cb_3 from commandbutton within w_main integer x = 658 integer y = 1340 integer width = 206 integer height = 96 integer taborder = 40 integer textsize = -9 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" string text = "Speed" end type event clicked;uo_slideshow.of_setspeed( long(sle_speed.text)) end event type st_3 from statictext within w_main integer x = 1134 integer y = 1344 integer width = 233 integer height = 64 integer textsize = -9 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 long backcolor = 67108864 string text = "Time:" alignment alignment = right! boolean focusrectangle = false end type type st_2 from statictext within w_main integer x = 37 integer y = 1344 integer width = 197 integer height = 88 integer textsize = -9 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 long backcolor = 67108864 string text = "Speed:" alignment alignment = right! boolean focusrectangle = false end type type cb_browser from commandbutton within w_main integer x = 1609 integer y = 1212 integer width = 123 integer height = 96 integer taborder = 30 integer textsize = -9 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" string text = "..." end type event clicked;String docname, named Integer Value Value = GetFileOpenName("Select Image File", + docname, named, "Image", "BMP Files (*.bmp),*.bmp") If Value = 1 Then sle_pic.Text = docname End If end event type st_1 from statictext within w_main integer x = 37 integer y = 1216 integer width = 197 integer height = 88 integer textsize = -9 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 long backcolor = 67108864 string text = "Photo:" alignment alignment = right! boolean focusrectangle = false end type type cb_1 from commandbutton within w_main integer x = 1755 integer y = 1212 integer width = 197 integer height = 96 integer taborder = 30 integer textsize = -9 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" string text = "ADD" end type event clicked;If Len(sle_pic.Text) = 0 Then Return uo_slideshow.of_addphoto( sle_pic.Text) MessageBox("Warning","Success") end event type sle_time from singlelineedit within w_main integer x = 1390 integer y = 1344 integer width = 329 integer height = 84 integer taborder = 30 integer textsize = -9 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 string text = "5" borderstyle borderstyle = stylelowered! end type type sle_speed from singlelineedit within w_main integer x = 256 integer y = 1344 integer width = 402 integer height = 84 integer taborder = 20 integer textsize = -9 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 string text = "25" borderstyle borderstyle = stylelowered! end type type sle_pic from singlelineedit within w_main integer x = 256 integer y = 1216 integer width = 1353 integer height = 84 integer taborder = 20 integer textsize = -9 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 borderstyle borderstyle = stylelowered! end type type uo_slideshow from uo_photoslideshow within w_main integer x = 73 integer y = 64 integer width = 2126 integer height = 1068 integer taborder = 10 end type on uo_slideshow.destroy call uo_photoslideshow::destroy end on |
Find Projects On Github click here
Good Luck!
Subscribe
Login
0 Comments