telmob Posted September 22, 2011 Share Posted September 22, 2011 Hey everyone.I'm making a program for my company with all sorts of features, and i want it to look nice, basically like the one on the picture. I'm using KODA to do it, but... with tabs, it looks ugly and also with buttons, so is it possible to use columns to replace the tab function? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 22, 2011 Moderators Share Posted September 22, 2011 telmob, You could just use labels: #include <GUIConstantsEx.au3> Global $aLabel[4] $hGUI = GUICreate("Test", 500, 500) For $i = 0 To 3 $aLabel[$i] = GUICtrlCreateLabel("Page " & $i + 1, 100 * ($i + 1), 10, 100, 20) Next GUISetState() While 1 $iMsg = GUIGetMsg() Switch $iMsg Case $GUI_EVENT_CLOSE Exit Case $aLabel[0] To $aLabel[3] MsgBox(0, "Clicked", "Show controls on Page " & $iMsg - $aLabel[0] + 1) EndSwitch WEnd Any use? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
telmob Posted September 22, 2011 Author Share Posted September 22, 2011 I guess it's a way to do it, but that way i would lose the button functionality. The user would have to click on the text itself and not on the button. I suppose i could also use a graphic as a button but that would be more difficult and would slow down the program a bit to add one graphic for over effect, another for pressed and another for release. I have o think about it. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 22, 2011 Moderators Share Posted September 22, 2011 telmob, The user would have to click on the text itself and not on the buttonNo, you can click anywhere on the label: #include <GUIConstantsEx.au3> #include <StaticConstants.au3> Global $aLabel[4], $aColour[4] = [0xFF0000, 0x00FF00, 0xFFFF00, 0xCCCCFF] $hGUI = GUICreate("Test", 500, 500) For $i = 0 To 3 $aLabel[$i] = GUICtrlCreateLabel("Page " & $i + 1, 100 * ($i + 1), 10, 100, 20, BitOr($SS_CENTER, $SS_CENTERIMAGE)) GUICtrlSetBkColor(-1, $aColour[$i]) Next GUISetState() While 1 $iMsg = GUIGetMsg() Switch $iMsg Case $GUI_EVENT_CLOSE Exit Case $aLabel[0] To $aLabel[3] MsgBox(0, "Clicked", "Show controls on Page " & $iMsg - $aLabel[0] + 1) EndSwitch WEnd M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
telmob Posted September 22, 2011 Author Share Posted September 22, 2011 (edited) Sorry, i was distracted. You're right. I guess my main problem is the looks of it. But with this i can try and put a graphic behind the text and see how it works. You're the man Melba! EDIT: Ok, just found zettoButton here on the forums that seems perfect for my needs. Edited September 22, 2011 by telmob Link to comment Share on other sites More sharing options...
Valuater Posted September 22, 2011 Share Posted September 22, 2011 Here is a possible Tab Skin for you... looks ok too! 8) Link to comment Share on other sites More sharing options...
Valuater Posted September 22, 2011 Share Posted September 22, 2011 I was testing zettoButton... and I am not as impressed as the ease of use of ButtonHover() HoverButton() Then you can use the buttons and skins in EzSkin too... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now