Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using custom image in mes?
#1
Hi i was wondering how to use a custom icon/image in "mes" command.
I saw it was posible to get a QM icon using "q" as style, but i like to use my own.
ShowSplash is called from init2.
Im trying to mimic the behaviour of this using custom dialog, but im too new at useing that.
Plus it does not automaticaly resize width or have timer, or same font...
Any help is welcome.
This is what i use atm:
Code:
Copy      Help
;*******************************************
;,ShowSplash v1.0
;*******************************************
;This is to show our Splash Screen
;*******************************************

opt waitmsg 1
MES m
m.style = "i"
m.timeout = 120
sText = "  [9]All initialisations are done, and system is up and running."
sText + _s.getmacro("Readme.License")
sText + _s.getmacro("Readme.Introduction")
;mes(sText "Welcome to the JobSystem for DragonRaja" m)

;\Dialog_Editor
str dd=
;BEGIN DIALOG
;0 "" 0x90C00A44 0x80 0 0 300 140 "Welcome to the JobSystem for DragonRaja"
;1 Button 0x54030001 0x4 126 124 48 14 "OK"
;2 Button 0x44030000 0x4 250 124 48 14 "Cancel"
;3 Static 0x5400100E 0x20000 12 12 37 70 ""
;4 Static 0x54000000 0x0 48 0 300 140 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2010806 "" ""


str controls = "3 4"
str sb3my.expandpath("$my qm$\DragonRaja\images\Tri-Moon.gif")
str st4 = "  [9]All initialisations are done, and system is up and running."
st4 + _s.getmacro("Readme.License")
st4 + _s.getmacro("Readme.Introduction")
if(!ShowDialog(dd 0 &controls 0 2)) ret

opt waitmsg -1
[Image: SplashScreen.gif]

As you can see there is also a problem with transparancy of that image...
(How to use transparent images in dialogs?)
Well thats all for now, 3M


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)