Sign in to follow this  
Followers 0
ileandros

Image viewer

13 posts in this topic

#1 ·  Posted (edited)

Hello,

I want to create a image viewer, Is it possible?? I was checking google and autoit for some help but i didnt find something...

This some kind of code to help me.

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Image Viewer", 615, 438, 192, 124)
$Group1 = GUICtrlCreateGroup("Image Viewer", 8, 8, 601, 385)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("Browser...", 328, 400, 75, 25)
$Input1 = GUICtrlCreateInput("", 8, 400, 265, 21)
GUISetState(@SW_SHOW)

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit
  Case $Button1
   $file = FileOpenDialog("Choose file...", @TempDir, "All (*.*)")
   GUICtrlSetData($Input1, $file)
EndSwitch
WEnd
Edited by ileandros

I feel nothing.It feels great.

Share this post


Link to post
Share on other sites



Try This!!

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Image Viewer", 615, 438, 192, 124)
$Group1 = GUICtrlCreateGroup("Image Viewer", 8, 8, 601, 385)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("Browser...", 328, 400, 75, 25)
$Input1 = GUICtrlCreateInput("", 8, 400, 265, 21)
$Image=GUICtrlCreatePic('',9,9,600,384)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit
  Case $Button1
   $file = FileOpenDialog("Choose file...", @TempDir, "All (*.*)")
   GUICtrlSetData($Input1, $file)
   _setImage($Image,$file)
EndSwitch
WEnd
Func _setImage($Control,$Image)
If GUICtrlSetImage($Control,$Image)=0 Then Return @error
Return 0
EndFunc

My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Share this post


Link to post
Share on other sites

Thanks guys. Gj PhoenixXl ;)


I feel nothing.It feels great.

Share this post


Link to post
Share on other sites

Thanks guys. Gj PhoenixXl ;)

thats nice

Ελληνας Εισαι φιλΕ...?

just asking


[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites

thats nice

Ελληνας Εισαι φιλΕ...?

just asking

Kai nai kai oxi ;)

I feel nothing.It feels great.

Share this post


Link to post
Share on other sites

Ελληνας Εισαι φιλΕ...?

Wat iz This I dont Understand


My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Share this post


Link to post
Share on other sites

It's greek and google translates it to "Net ... Are you Greek" :) ... luckily all members from Greece are obliged by policy to add a "ros" suffix to their username ;)...

Share this post


Link to post
Share on other sites

Ok!! ;)

Thnx KaFu For the Reply


My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Share this post


Link to post
Share on other sites

Phoenix the quote ur asking for translation was for me ;)

Anyway thats greek and means "Are you greek buddy?"


I feel nothing.It feels great.

Share this post


Link to post
Share on other sites

Well That means U R Greek ;)

Anyways Thnx


My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Share this post


Link to post
Share on other sites

It's greek and google translates it to "Net ... Are you Greek" :) ... luckily all members from Greece are obliged by policy to add a "ros" suffix to their username ;)...

Yes "os" or "as" :D


[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0